[PATCH] binutils: Don't complain plugin with all LTO sections removed
H.J. Lu
hjl.tools@gmail.com
Wed May 14 23:36:34 GMT 2025
When all LTO sections have been removed, the BFD lto_type is set to
lto_non_ir_object by bfd_set_lto_type. In this case, don't complain
needing a plugin when seeing a LTO slim symbol.
bfd/
PR binutils/32967
* archive.c (_bfd_compute_and_write_armap): Call
bfd_lto_slim_symbol_p to check LTO slim symbol.
* bfd-in2.h: Generated.
* bfd.c (bfd_lto_slim_symbol_p): New.
binutils/
PR binutils/32967
* nm.c (filter_symbols): Call bfd_lto_slim_symbol_p to check
LTO slim symbol.
ld/
PR binutils/32967
* testsuite/ld-plugin/lto-binutils.exp: Run PR binutils/32967
tests.
* testsuite/ld-plugin/strip-1a-s-all.nd: New file.
OK for master?
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-binutils-Don-t-complain-plugin-with-all-LTO-sections.patch
Type: text/x-patch
Size: 4616 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250515/9c118c6c/attachment-0001.bin>
More information about the Binutils
mailing list