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: stsp at users dot sourceforge.net
Subject: [Bug binutils/31106] strip --strip-debug breaks relocations
Date: Tue, 05 Dec 2023 14:02:53 +0000

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

--- Comment #8 from Stas Sergeev <stsp at users dot sourceforge.net> ---
(In reply to Nick Clifton from comment #7)
> Created attachment 15236 [details]
> Proposed patch
> 
> Hi Stas,
> 
>   Please can you try out this patch ?

Hi, it would be easier if you just
provide the newly stripped binary.
I'll see if it works.
But I can as well try the path.
However:

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

Have you considered to spare the
'--strip-debug' case from any possible
heuristic, so that it only  strips debug
sections?
I think your check should only apply to
the normal strip process, but '--strip-debug'
remains broken. It needs to keep any relocs,
regardless of how safe is that.
What do you think?

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