bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/31106] New: strip --strip-debug breaks relocations


From: stsp at users dot sourceforge.net
Subject: [Bug binutils/31106] New: strip --strip-debug breaks relocations
Date: Fri, 01 Dec 2023 06:13:33 +0000

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

            Bug ID: 31106
           Summary: strip --strip-debug breaks relocations
           Product: binutils
           Version: 2.41
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

Created attachment 15232
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15232&action=edit
test case

Attached is a test-case.
It is an elf file fdppkrnl.35.10.elf
with debug info.

Please do:

```
$ readelf -r fdppkrnl.35.10.elf | grep ':s8:' | wc -l
65
$ strip --strip-debug fdppkrnl.35.10.elf
$ readelf -r fdppkrnl.35.10.elf | grep ':s8:' | wc -l
1
```

As we can see, strip removed relocations
to a particular symbol (1 reloc left from 65).
This renders the object disfunctional.

llvm-strip works properly and doesn't break
anything.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]