binutils Newspaper
NOVEMBER 30, 2026
include — Proposed — Sentiment 5 / 10

include: sync with GCC

Binutils include directory synchronized with GCC, incorporating updates from several GCC commits.

This patch synchronizes the include/ directory of binutils with that of GCC. It pulls in changes from multiple GCC commits, including updates to libiberty, macro parameter handling, typo fixes, and architecture-specific code for LoongArch and RISC-V. The author notes that this patch is being sent for testing before direct commitment. A subsequent reply indicates this was a resend due to a typo in the original mailing list address.

In the Thread 2 participants
  1. Pietro Monteiro proposer

    Submits a patch to synchronize binutils' include directory with GCC's, and later retracts it due to a mailing list address typo, indicating a resend.

    “I copied from include in the gcc tree all common files, except for btf.h. I did some git archeology to get the list of commits the changes came from. I'm sending the patch rather than just committing to give folks time to test.”
  2. Pietro Monteiro proposer

    Acknowledges a mistake in the original submission (wrong mailing list) and states the patch will be resent.

    “Please disregard, I typo-ed the gdb-patches mailing list address and will resend. sorry, pietro”

Technical Tradeoffs

  • Ensuring binutils and GCC use consistent definitions for internal utilities and types can prevent subtle build and runtime issues.
  • Keeping the include directories synchronized requires ongoing effort and potential merge conflicts.

In Details

This patch updates the common header files in binutils' include/ directory to match those in GCC's include/ directory. This synchronization ensures that binutils uses the same definitions and declarations for various internal functions and macros as GCC, which is important for build system consistency and avoiding subtle incompatibilities. The updates span across various components and architectures, reflecting recent developments in GCC's header files. The author initially sent this to the wrong mailing list and intended to resend.

For Context
libiberty
A collection of utility routines used by GCC and GNU Binutils, providing common functions like string manipulation and memory allocation.
LoongArch
A RISC-V-like instruction set architecture developed in China.
RISC-V
An open-source instruction set architecture (ISA) that is modular and extensible.
CTF
Compact Type Format, a debugging data format used to describe type information.
header files
Files in C/C++ that contain declarations of functions, variables, and macros, typically included using the #include directive.
Filed Under: binutilsgccincludesynchronizationheaders