https://sourceware.org/bugzilla/show_bug.cgi?id=25882
Bug ID: 25882 Summary: .gnu.attributes are not checked for shared libraries Product: binutils Version: 2.35 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: amodra at gmail dot com Target Milestone: --- ld/ldlang.c lang_check calls bfd_merge_private_bfd_data from within a block conditional on bfd_count_sections (input_bfd). It makes sense to exclude relocatable objects without contents, but since shared libraries do not have sections loaded by the ELF linker (see elflink.c:4337 bfd_section_list_clear call), the condition stops .gnu.attributes processing for shared libraries. gold on the other hand does process .gnu.attributes for shared libraries. -- You are receiving this mail because: You are on the CC list for the bug.