Clarification on Backporting Fix for Bug 32603 (ld -w SEGV) to binutils-2.44

Alan Modra amodra@gmail.com
Wed Apr 23 00:05:41 GMT 2025


On Mon, Apr 21, 2025 at 04:46:27AM +0000, Dora, Sunil Kumar wrote:
> I’ve been working on backporting the fix for Bug 32603<https://sourceware.org/bugzilla/show_bug.cgi?id=32603> (ld segv with -w -o and permission issues) to the binutils-2_44-branch for our product.
> 
> I noticed that the initial fix in commit 8d97c1a53f3d<https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8d97c1a53f3dc9fd8e1ccdb039b8a33d50133150> addressed the issue in the ld/ directory, while the follow-up commit d26161914cf2<https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d26161914cf286171b29767916a212685f9aadf3> extended the fix to bfd/.
> 
> To ensure the backport is complete, I wanted to confirm:
> Should both commits be combined for the 2.44 backport, or is the ld/ fix sufficient for the issue as reported?
> 
> If both are needed, would you recommend squashing them into a single backport commit? Thank you for your time.

I think generally it is better to keep backport patches separate,
unless there was something badly wrong with an earlier patch
(eg. it caused a build error).

I've done the backport myself.

-- 
Alan Modra


More information about the Binutils mailing list