[PATCH] ld: Don't ignore bfd_gc_sections failure

Jan Beulich jbeulich@suse.com
Thu Jul 30 07:00:32 GMT 2026


On 30.07.2026 08:34, H.J. Lu wrote:
> 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.

Okay, albeit I think the two would better have been separate changes.

Jan


More information about the Binutils mailing list