Skip to content

ELF linker: Increment curSymbol after filling in the fields of the current entry

Ömer Sinan Ağacan requested to merge osa1/ghc:elf_linker_bug into master

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;
Edited by Ömer Sinan Ağacan

Merge request reports