bug-binutils
[Top][All Lists]
Advanced

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

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


From: nickc at redhat dot com
Subject: [Bug binutils/31106] strip --strip-debug breaks relocations
Date: Tue, 05 Dec 2023 13:48:26 +0000

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

--- Comment #7 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 15236
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15236&action=edit
Proposed patch

Hi Stas,

  Please can you try out this patch ?

  The issue is that the relocation processing code is noticing that
  the symbols involved in the problematic relocations are absolute
  and have a value of zero.  So in theory they can just be discarded.
  For normal relocations this is OK, but for complex relocations it
  is not safe, since the symbol itself might be significant.

  So the patch tweaks the reloc processing code so that it will not
  drop the symbol in complex relocs.

Cheers
  Nick

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