Commit 598125eb authored by Ömer Sinan Ağacan's avatar Ömer Sinan Ağacan

ELF linker: increment curSymbol after filling in fields of current entry

The bug was introduced in a8b7cef4 which added a field to the
`symbols` array elements and then updated this code incorrectly:

    - oc->symbols[curSymbol++] = nm;
    + oc->symbols[curSymbol++].name = nm;
    + oc->symbols[curSymbol].addr = symbol->addr;
parent 0bf640b1
Pipeline #18918 passed with stages
in 501 minutes and 5 seconds
......@@ -944,8 +944,9 @@ ocGetNames_ELF ( ObjectCode* oc )
) {
goto fail;
}
oc->symbols[curSymbol++].name = nm;
oc->symbols[curSymbol].name = nm;
oc->symbols[curSymbol].addr = symbol->addr;
curSymbol++;
}
} else {
/* Skip. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment