binutils Newspaper
JUNE 15, 2026
binutils Proposed

PR 34062: Fix type confusion in elf64_ia64_hash_copy_indirect

The output BFD should determine the linker hash table and symbol entry types, fixing a type confusion issue.

Alan Modra proposes a patch to fix a type confusion issue in the linker. The patch ensures that the output BFD (Binary File Descriptor) determines the linker hash table type and symbol entry type, and that output BFD functions are used when manipulating hash table symbols. This avoids using potentially incorrect types from the input BFD.

In Details

BFD is the Binary File Descriptor library, providing a uniform interface to different object file formats. The linker uses BFD to read and write object files. This patch addresses a type confusion in the ELF backend, specifically related to symbol merging and hash table manipulation.

For Context

The Binary File Descriptor (BFD) library provides a generic interface for working with different object file formats, such as ELF. The linker uses this library to manipulate object files during the linking process. This patch fixes a bug in how the linker handles symbols, ensuring that the correct data types are used when merging symbols from different object files. This can prevent crashes or incorrect linking behavior.

Filed Under: binutilslinkerbfdelftype confusion