makeelf
makeelf copied to clipboard
sh_info is set improperly on sym table section header
According to the ELF spec, sh_info is supposed to be set to the total number of local-bound symbols + 1. However, the current implementation sets this to the total number of all symbols + 1. This causes issues with the ld
linker, as any global symbols will not be discoverable.