[PATCH 0/2] bfd/x86: Fix handling of secondary relocations on objcopy/strip

Antoine Damhet adamhet@scaleway.com
Fri Nov 13 15:54:11 GMT 2026


On Fri, Nov 13, 2026 at 11:40:45AM +0100, Jan Beulich wrote:
> On 09.11.2026 13:31, Antoine Damhet wrote:
> > As outlined in the bug[1], relocations of '.klp.rela.*' sections would
> > be silently corrupted by both strip and objcopy. This series restore the
> > original behavior for both regressions.
> > 
> > [1]: https://sourceware.org/bugzilla/show_bug.cgi?id=34970

[...]

> Of course to prevent this regressing again, a testcase would have been nice.

Would it be OK to ship the stripped kernel module binary (3.8K once
bzipped) and check that `objcopy` doesn't change the binary ?

I am not sure how I should check-in binary files, git-format-patch +
send-email is OK on this list ?

> 
> Jan

Thanks for looking,

-- 
Antoine 'xdbob' Damhet
Engineer @scaleway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20261113/21e110aa/attachment-0001.sig>


More information about the Binutils mailing list