binutils Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/testsuite

Exclude kfreebsd targets from STB_GNU_UNIQUE tests

Adds kfreebsd targets to the exclusion list for STB_GNU_UNIQUE symbol tests.

The test suite now excludes *-*-kfreebsd*-gnu targets from tests involving STB_GNU_UNIQUE symbols. This aligns them with *-*-freebsd* targets, which use the same BFD vectors and ELFOSABI, resolving multiple regressions related to symbol visibility and GNU OSABI handling.

In Details

Adds *-*-kfreebsd*-gnu to the istarget check in supports_gnu_unique within binutils/testsuite/lib/binutils-common.exp. This ensures that these targets, which share BFD vectors and ELFOSABI with FreeBSD targets, are correctly excluded from STB_GNU_UNIQUE symbol tests, fixing PR10549 and other visibility-related regressions.

For Context
STB_GNU_UNIQUE
A symbol binding type in ELF, used for unique symbols that are resolved at runtime. It's primarily supported by GNU toolchains.
ELFOSABI_FREEBSD
An Application Binary Interface (ABI) identifier indicating that the ELF object file adheres to the FreeBSD ABI.
BFD vectors
Internal structures within the Binary File Descriptor (BFD) library that define how to handle specific object file formats and target architectures.
PR10549
A specific bug report number in the Binutils project tracker, indicating a reported issue with linker settings and GNU OSABI for STB_GNU_UNIQUE symbols on kfreebsd targets.