Landing: 65cd0d66a647
Project / Subsystem
binutils / ld
Date
2026-05-02
Author
Alan Modra <amodra@sourceware.org>
Commit
65cd0d66a647f14719e69bd19f34dc98bdb7e635
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- commit_hash
- 65cd0d66a647f14719e69bd19f34dc98bdb7e635
- source_type
- public_inbox
- headline
- Fix discarded-qualifiers problems in ldlang.c
- tldr
- Fixes discarded-qualifiers warnings by ensuring const correctness in argument passing within ldlang.c.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • linker
- • ld
- • const correctness
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-02T00:00:00.000Z
This commit addresses discarded-qualifiers warnings in ldlang.c by ensuring const correctness. The archive_path function now returns a const char*, and input_statement_is_archive_path now takes a const char* sep argument. The memory pointed to by these arguments is writable, so there is no need to copy file_spec to insert a zero.