Landing: 1d74be61a502

Project / Subsystem

binutils / ld

Date

2026-05-07

Author

H.J. Lu <hjl@sourceware.org>

Commit

1d74be61a50257fb78ff9f3081a746d82bcc64a5

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
ld
patch_id
commit_hash
1d74be61a50257fb78ff9f3081a746d82bcc64a5
source_type
public_inbox
headline
ld: Fix calls to strchr that discard or use wrong const qualifiers
tldr
Fixes const qualifier issues when calling strchr in the linker, preventing compiler warnings.
author
H.J. Lu <hjl@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ld
  • const
  • strchr
  • warning
discussion_id_link
bugzilla_pr
date
2026-05-07T00:00:00.000Z

This commit addresses issues where calls to strchr in the linker code were discarding or using incorrect const qualifiers, leading to compiler warnings. The code is updated to ensure const correctness, which resolves these warnings and improves code quality.