http://sourceware.org/bugzilla/show_bug.cgi?id=16178
Bug ID: 16178 Summary: Sort reloc_class_ifunc doesn't work Product: binutils Version: 2.25 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com CC: amodra at gmail dot com reloc_class_ifunc is added to put the IRELATIVE relocations at the end of dynamic relocation table. There are 2 problems: 1. elf_link_sort_relocs is called with if (dynamic && info->combreloc && dynobj != NULL) relativecount = elf_link_sort_relocs (abfd, info, &reldyn); If -z comreloc isn't used, sorting is off. 2. elf_link_sort_relocs only deals with .rel.dyn and .rela.dyn. But some backends put IRELATIVE relocations in .rel.plt or .rela.plt, regardless if -z comreloc is used. So reloc_class_ifunc does nothing. -- 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