binutils Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/ld

ELF linker creates stub bfd for dynamic sections

ELF targets now set the dynobj field early when creating stub bfds for dynamic sections.

ELF targets now set the dynobj field when creating a stub bfd, which is used for dynamic sections. This change allows for earlier setting of the dynamic object information. An adjustment is made for the frv target to avoid an assertion failure in _bfd_elf_link_dynobj, as the function is no longer strictly needed.

In Details

ELF targets using elf.em create a stub bfd for dynamic sections. This change sets the dynobj field of the elf_backend_data early in the process. A specific fix is included for frvelf.em to prevent an assertion in _bfd_elf_link_dynobj which now expects dynobj to be pre-populated.

For Context
bfd
The Binary File Descriptor library, which provides a common interface for handling various executable file formats.
dynobj
Refers to the dynamic object information within a binary, related to shared libraries and dynamic linking.
stub bfd
A temporary or placeholder Binary File Descriptor used by the linker to manage or attach dynamic sections.
ELF
Executable and Linkable Format, a common standard file format for executables, object code, shared libraries, and core dumps.
Filed Under: linkerELFdynamic linking