[PATCH] ld: Don't ignore bfd_gc_sections failure

H.J. Lu hjl.tools@gmail.com
Thu Jul 30 06:34:16 GMT 2026


If bfd_gc_sections fails, issue a fatal error and change fatal to pass
false as the is_warning argument to vfinfo so that the fatal isn't
treated as a warning by vfinfo.

PR ld/34448
* ldlang.c (lang_gc_sections): If bfd_gc_sections fails, issue
a fatal error.
* ldmisc.c (fatal): Pass false as the is_warning argument to
vfinfo.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-Don-t-ignore-bfd_gc_sections-failure.patch
Type: text/x-patch
Size: 1478 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260730/3e4299c6/attachment.bin>


More information about the Binutils mailing list