https://sourceware.org/bugzilla/show_bug.cgi?id=33119
Bug ID: 33119 Summary: strip: broken symbol indices Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: martin.liska at hey dot com Target Milestone: --- Created attachment 16154 --> https://sourceware.org/bugzilla/attachment.cgi?id=16154&action=edit Shared library I noticed the following strip bug for the attached shared library: ❯ strip --version GNU strip (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-7 ❯ cp x.so y.so && strip -R .comment y.so && readelf -sW y.so 2>&1 | grep gpm_data 59: 0000000000007a88 8 OBJECT GLOBAL DEFAULT BAD[0x17] gpm_data ❯ readelf -SW y.so There are 23 section headers, starting at offset 0x5b28: ... As seen, the section index for gpm_data points to an invalid section index. llvm-strip works fine: ❯ cp x.so y.so && llvm-strip -R .comment y.so && readelf -sW y.so 2>&1 | grep gpm_data 59: 0000000000007a88 8 OBJECT GLOBAL DEFAULT 23 gpm_data -- You are receiving this mail because: You are on the CC list for the bug.