Landing: 34ca322d8a2b
Project / Subsystem
binutils / ld
Date
2026-05-03
Author
Mark Wielaard <mark@sourceware.org>
Commit
34ca322d8a2b55e4ee193492a489aaa68195cffb
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- commit_hash
- 34ca322d8a2b55e4ee193492a489aaa68195cffb
- source_type
- public_inbox
- headline
- Ld: Fixes Calls to strchr That Discard or Use Wrong Const Qualifiers
- tldr
- The linker now correctly uses const qualifiers when calling strchr to avoid warnings and potential errors.
- author
- Mark Wielaard <mark@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ld
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-03T00:00:00.000Z
The linker now correctly uses const qualifiers when calling strchr. This avoids warnings and potential errors related to discarding qualifiers or using the wrong qualifiers. The affected files are ld/emultempl/pe.em, ld/emultempl/pep.em, ld/emultempl/spuelf.em, and ld/ldelf.c.