https://sourceware.org/bugzilla/show_bug.cgi?id=23850
Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-11-02 Assignee|unassigned at sourceware dot org |amodra at gmail dot com Ever confirmed|0 |1 --- Comment #2 from Alan Modra <amodra at gmail dot com> --- .rela.plt in a static executable can only contain IRELATIVE relocations that must have a zero symbol index. Thus it is not necessary for that particular SHT_RELA section to have sh_link index .symtab. As you recognize, it is also inconsistent to have a SHF_ALLOC SHT_RELA section sh_link point at a non-SHF_ALLOC symbol table. You should probably report this problem as an lld bug. That said, objcopy can be fixed without too much trouble, I think. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils