[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.
- [Bug binutils/31106] New: strip --strip-debug breaks relocations, stsp at users dot sourceforge.net, 2023/12/01
- [Bug binutils/31106] strip --strip-debug breaks relocations, sam at gentoo dot org, 2023/12/01
- [Bug binutils/31106] strip --strip-debug breaks relocations, nickc at redhat dot com, 2023/12/04
- [Bug binutils/31106] strip --strip-debug breaks relocations, stsp at users dot sourceforge.net, 2023/12/04
- [Bug binutils/31106] strip --strip-debug breaks relocations, stsp at users dot sourceforge.net, 2023/12/04
- [Bug binutils/31106] strip --strip-debug breaks relocations, nickc at redhat dot com, 2023/12/04
- [Bug binutils/31106] strip --strip-debug breaks relocations, nickc at redhat dot com, 2023/12/04
- [Bug binutils/31106] strip --strip-debug breaks relocations, stsp at users dot sourceforge.net, 2023/12/04
- [Bug binutils/31106] strip --strip-debug breaks relocations,
nickc at redhat dot com <=
- [Bug binutils/31106] strip --strip-debug breaks relocations, stsp at users dot sourceforge.net, 2023/12/05
- [Bug binutils/31106] strip --strip-debug breaks relocations, nickc at redhat dot com, 2023/12/05
- [Bug binutils/31106] strip --strip-debug breaks relocations, nickc at redhat dot com, 2023/12/05
- [Bug binutils/31106] strip --strip-debug breaks relocations, stsp at users dot sourceforge.net, 2023/12/05
- [Bug binutils/31106] strip --strip-debug breaks relocations, nickc at redhat dot com, 2023/12/05
- [Bug binutils/31106] strip --strip-debug breaks relocations, cvs-commit at gcc dot gnu.org, 2023/12/05