https://sourceware.org/bugzilla/show_bug.cgi?id=33153
Bug ID: 33153 Summary: [2.45 regression] Linking fails with unknown attributes version on Solaris Product: binutils Version: 2.45 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: ro at gcc dot gnu.org Target Milestone: --- Target: *-*-solaris2.11 binutils 2.45 ld (tested with current 2.44.90) completely broke linking on Solaris: $ gcc -o m m.c /vol/gcc/bin/gld-2.44.90: /lib/libc.so: error: unknown attributes version ''(1) - expecting 'A' The same error is produced for most Solaris system libraries. The error was introduced in commit c5f3649c8887ea30f3472e266ef88fe1b7522a84 Author: Matthieu Longo <matthieu.lo...@arm.com> Date: Thu Jan 30 19:09:12 2025 +0000 clean-up bfd/elf-attrs.c: move specific-code to parse object attributes v1 i nto a new function The problem is that this code is invoked for hdr->sh_type == SHT_GNU_ATTRIBUTES in elf.c (bfd_section_from_shdr), but SHT_GNU_ATTRIBUTES is in the SHT_LOOS (0x60000000) to SHT_HIOS (0x6fffffff) range and Solaris correctly uses the same value for a completely different section type: <sys/elf.h> has #define SHT_SUNW_cap 0x6ffffff5 -- You are receiving this mail because: You are on the CC list for the bug.