binutils Newspaper
NOVEMBER 30, 2026
ia64 — Proposed

ia64: Fix .rela.got sizing during relaxation

Patch fixes a BFD assertion failure in ia64 linking related to .rela.got sizing during relaxation.

Frank Scheiner submitted a patch to fix an assertion failure in ld.bfd on the IA-64 architecture when linking musl’s dynamic libc.so. The issue stems from a mismatch in symbol states during different sizing passes, particularly concerning the __ehdr_start symbol and relaxation. The patch, tested on real hardware, resolves this by adjusting how the linker handles these sizing variations.

In the Thread 2 participants
  1. Jan Beulich contributor

    Acknowledges the patch and its description.

    “On 21.11.2026 15:52, Frank Scheiner wrote: > Noticed during porting musl to ia64 ([1]). Trying to link the dynamic > libc.so fails an assertion in ld.bfd (BFD version 2.46-slack151): > > ``` > /usr/bin/ld.bfd: BFD version 2.46-slack151 assertion fail elfnn-ia64.c:3238 > ``` > > [1]: https://github.com/johnny-mnemonic/epic-musl > > The reason is a mismatch between the symbol state seen by diffe…”
  2. Frank Scheiner proposer

    Proposes a patch to fix a linker assertion failure related to .rela.got sizing on IA-64.

    “The reason is a mismatch between the symbol state seen by different sizing passes. The attached patch solves that and allows for a successful dynamic build of musl for ia64.”

In Details

This patch addresses a specific linker assertion failure on the IA-64 architecture when building musl's dynamic linker. The root cause identified is a discrepancy in how the linker's BFD backend handles symbol states across multiple sizing passes, particularly involving the __ehdr_start symbol during relaxation. The fix likely involves synchronizing or adjusting the information available to the BFD backend during these passes to ensure consistent state for correct relocation processing.

For Context
ia64
Intel Itanium architecture, a 64-bit Itanium processor family.
BFD
The Binary File Descriptor library, a low-level library used by GNU Binutils to parse and manipulate object file formats.
relaxation
A linker optimization technique where the linker adjusts branch offsets and other relative addressing information to produce smaller or more efficient code.
.rela.got
A section in an ELF object file containing relocation entries for the Global Offset Table (GOT), used for dynamic linking.
__ehdr_start
A linker-defined symbol that typically points to the beginning of the ELF header in an object file or executable.
musl libc
A lightweight, standard C library designed for embedded systems and resource-constrained environments, often used in conjunction with the Linux kernel.
Filed Under: binutilsia64linkerrelaxationmusl