https://sourceware.org/bugzilla/show_bug.cgi?id=22909
Bug ID: 22909 Summary: Expand --warn-shared-textrel support to all executables, not only PIC objects Product: binutils Version: 2.30 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Gentoo enables --warn-shared-textrel by default for and extends warning to all dynamic executables (PIE or not): https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/binutils/2.17/66_all_binutils-2.17.50.0.2-warn-textrel.patch?revision=1.1&view=markup What do you think of extending this option (or adding new one) to cover executables in upstream binutils? Something like --warn-textrel. Lack of TEXTREL warning came up recently in gcc where gcc was built with TEXTRELs due to a platform-specific gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84553 The warning would be complementary to '-Wl,-z,-text' which converts problems of this kind to errors. Related bug: https://sourceware.org/bugzilla/show_bug.cgi?id=20824 : "enable warn-shared-textrel by default". -- 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