https://sourceware.org/bugzilla/show_bug.cgi?id=22587
Bug ID: 22587 Summary: Bogus readelf warning Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: rafael.espindola at gmail dot com Target Milestone: --- Relocations in non relocatable ELF files use virtual addresses, not section offsets. Given that, lld currently produces .rela.plt sections with a sh_info of 0. When processing such a file readelf prints readelf: Warning: [ 5]: Info field (0) should index a relocatable section. readelf special cases rela.dyn as the only section that is allowed to have a sh_info of 0. It should probably allow it on any relocation section in ET_EXEC and ET_DYN files. -- 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