commit | 6b958fe36b765f70878e8d3d002864967c4bc3a4 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Thu Mar 30 12:10:16 2023 +1030 |
committer | Alan Modra <amodra@gmail.com> | Thu Mar 30 15:18:02 2023 +1030 |
tree | e2e0d906f2a3f079e8ee0deb7785569dd7e4de50 | |
parent | ea7672c10e0b762c02fd40ce94d490b56bc14675 [diff] |
Setting sh_link for SHT_REL/SHT_RELA It's wrong to have an alloc reloc section trying to use a non-alloc symbol table. * elf.c (assign_section_numbers <SHT_REL, SHT_RELA>): Correct comment. Always set sh_link to .dynsym for alloc reloc sections and to .symtab for non-alloc.