[PATCH 04/11] alpha: factor out elf64_alpha_sym_name
Project / Subsystem
binutils / alpha
Date
2026-09-01
Proposer
Matt Turner <mattst88@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Improves code maintainability by reducing duplication.
- • Standardizes symbol naming for diagnostics.
All attributes
- project
- binutils
- subsystem
- alpha
- patch_id
- —
- discussion_id
- 20260901023318.3503991-5-mattst88@gmail.com
- source_type
- public_inbox
- title
- [PATCH 04/11] alpha: factor out elf64_alpha_sym_name
- headline
- alpha: factor out elf64_alpha_sym_name
- tldr
- Refactor symbol naming in alpha ELF relocations for better code reuse and clarity.
- proposer
- Matt Turner <mattst88@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Improves code maintainability by reducing duplication.
- • Standardizes symbol naming for diagnostics.
- series_id
- binutils:alpha: factor out elf64_alpha_sym_name
- series_role
- reply
- series_parts
- []
- tags
-
- • alpha
- • linker
- • refactoring
- • symbol resolution
- • diagnostics
- bugzilla_url
- —
- date
- 2026-09-01T00:00:00.000Z
[PATCH 04/11] alpha: factor out elf64_alpha_sym_name
This patch refactors the alpha ELF linker by factoring out the logic for determining a symbol’s name into a new function, elf64_alpha_sym_name. This function consolidates how both global and local symbols are named for diagnostic messages. It replaces an open-coded version with a call to bfd_elf_sym_name, aligning with practices used by other backends and improving consistency in how section symbols and unreadable symbol names are handled.