binutils Newspaper
OCTOBER 6, 2026
ld — Proposed

ld: Don't ignore bfd_gc_sections failure

The author withdraws a patch that would make bfd_gc_sections failures fatal, planning a different fix.

H.J. Lu withdraws a patch intended to make failures in bfd_gc_sections fatal for the linker. He states that he will post a different fix for the underlying issue (PR ld/34448), without elaborating on the reasons for withdrawal or the nature of the new fix.

In the Thread 1 participant
  1. H.J. Lu <hjl.tools@gmail.com> proposer

    Withdraws a previously submitted patch that aimed to make `bfd_gc_sections` failures fatal, indicating a new approach will be taken.

    “I withdrew this patch. I will post a different fix.”

In Details

A patch was proposed to change the behavior of the ld linker: instead of ignoring failures from bfd_gc_sections (a function related to garbage collection of sections), it would issue a fatal error. This was intended to address PR ld/34448. However, the author has withdrawn this specific patch and intends to submit an alternative fix.

For Context
bfd_gc_sections
A function within the BFD (Binary Descriptor Format) library that performs garbage collection on sections, removing unused ones.
ld
The GNU linker, responsible for combining object files and libraries into an executable or shared library.
fatal error
An error that causes the program (in this case, the linker) to terminate immediately.
PR ld/34448
Problem Report number 34448 filed against the GNU linker (ld), indicating a specific bug or issue that needs to be addressed.
Filed Under: binutilsldlinkerbugfixpatch