Landing: 3a5657bd3f26
Project / Subsystem
binutils / bfd/risc-v
Date
2026-06-05
Author
Jan Beulich <jbeulich@sourceware.org>
Commit
3a5657bd3f26111214e70d3882150b06c9e45dff
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- bfd/risc-v
- patch_id
- —
- commit_hash
- 3a5657bd3f26111214e70d3882150b06c9e45dff
- source_type
- public_inbox
- headline
- Move _bfd_riscv_elf_merge_private_bfd_data()
- tldr
- The RISC-V BFD backend refactors internal data merging by moving a function and making a parameter explicit to reduce redundant code.
- author
- Jan Beulich <jbeulich@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • refactoring
- • risc-v
- • bfd
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-05T00:00:00.000Z
The internal _bfd_riscv_elf_merge_private_bfd_data() function in the RISC-V BFD backend has been moved from elfnn-riscv.c to elfxx-riscv.c. This change, which removes duplicate code for different architectural sizes (32-bit vs. 64-bit), now passes the ARCH_SIZE as an explicit function parameter. This refactoring simplifies the codebase by centralizing common logic, reducing maintenance overhead and the potential for inconsistencies.