Landing: eec25cabd2d0
Project / Subsystem
binutils / gas
Date
2026-07-05
Author
Fangrui Song <maskray@sourceware.org>
Commit
eec25cabd2d004cfc2a9898b1ec93cbdef2fcd77
Source
public_inbox
Perf win
Yes
Breaking
No
All attributes
- project
- binutils
- subsystem
- gas
- patch_id
- —
- commit_hash
- eec25cabd2d004cfc2a9898b1ec93cbdef2fcd77
- source_type
- public_inbox
- headline
- Control section symbol conversion for ELF relocations
- tldr
- GAS now lets users control whether local symbols in ELF relocations are converted to section symbols.
- author
- Fangrui Song <maskray@sourceware.org>
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gas
- • elf
- • optimization
- • debugging
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-05T00:00:00.000Z
GAS for ELF will now respect a new —reloc-section-sym option to control the conversion of local symbols in relocations. The default behavior converts eligible local symbols to reference the section symbol, which can reduce .symtab size when multiple local symbols are in a single section. Users can now choose to convert all symbols, only compiler-generated locals (e.g., .L prefix), or never perform this conversion.