https://sourceware.org/bugzilla/show_bug.cgi?id=22451

            Bug ID: 22451
           Summary: strip no longer works on older object files
           Product: binutils
           Version: 2.30 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: amodra at gmail dot com
  Target Milestone: ---

Created attachment 10610
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10610&action=edit
A testcase

Since:

commit db4677b8bd90b49f826807352c6c3c7eb0d57814
Author: Alan Modra <amo...@gmail.com>
Date:   Wed Oct 4 09:53:53 2017 +1030

    PR21167, relocation sections not included in groups

    This fixes a wart I've known about for years, but haven't done
    anything about because BFD treats relocation sections as an adjunct to
    the section they relocate.  SHF_GROUP on the section thus implicitly
    applies to its relocation section(s), but it is an error that the
    reloc sections aren't part of the group.

on older object files, we get

[hjl@gnu-tools-1 tmp]$
/export/build/gnu/binutils/build-x86_64-linux/binutils/strip-new -g
vterminate.o 
/export/build/gnu/binutils/build-x86_64-linux/binutils/strip-new: vterminate.o:
no group info for section '.data.DW.ref._ZTISt9exception'
/export/build/gnu/binutils/build-x86_64-linux/binutils/strip-new: vterminate.o:
no group info for section '.data.DW.ref._ZTISt9exception'
/export/build/gnu/binutils/build-x86_64-linux/binutils/strip-new:vterminate.o:
Bad value
[hjl@gnu-tools-1 tmp]$

-- 
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

Reply via email to