[2.46 PATCHES] Fix build under glibc 2.43

Project / Subsystem

binutils / binutils

Date

2026-05-04

Proposer

"H.J. Lu" <hjl.tools@gmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • Backporting the patches adds complexity to maintaining the 2.46 branch.
  • Not backporting the patches means that binutils 2.46 cannot be built with glibc 2.43.

All attributes

project
binutils
subsystem
binutils
patch_id
discussion_id
CAMe9rOqx910Ha3=3rcULpL7iGPqp7CEWi5N6Q+NTCkJDZvt2AA@mail.gmail.com
source_type
public_inbox
title
[2.46 PATCHES] Fix build under glibc 2.43
headline
Fix build under glibc 2.43
tldr
H.J. Lu proposes backporting patches to binutils 2.46 to fix build issues with glibc 2.43 due to stricter const checking.
proposer
"H.J. Lu" <hjl.tools@gmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Backporting the patches adds complexity to maintaining the 2.46 branch.
  • Not backporting the patches means that binutils 2.46 cannot be built with glibc 2.43.
series_id
series_role
standalone
series_parts
[]
tags
  • build
  • glibc
  • const
  • backport
bugzilla_url
date
2026-05-04T00:00:00.000Z

[2.46 PATCHES] Fix build under glibc 2.43

H.J. Lu proposes backporting several patches from the master branch to binutils 2.46 to address build failures encountered with glibc 2.43. The failures are due to stricter const qualifier checks in glibc’s string.h when compiling code against the C23 standard. The patches fix -Wdiscarded-qualifiers errors in ldlang.c, ld.c, binutils, and gprof.