Landing: 4e8ba93fdb24
Project / Subsystem
binutils / risc-v
Date
2026-08-12
Author
Jiawei Chen <jiawei@sourceware.org>
Commit
4e8ba93fdb24f9bcf31f706e62e67c57ae91168f
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- 4e8ba93fdb24f9bcf31f706e62e67c57ae91168f
- source_type
- public_inbox
- headline
- RISC-V: Correctly exclude .rela.plt from DT_RELASZ
- tldr
- Fixes RISC-V dynamic linking information to prevent duplicate processing of relocation sections.
- author
- Jiawei Chen <jiawei@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • binutils
- • linker
- • elf
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-12T00:00:00.000Z
This change corrects how the RISC-V dynamic linker calculates the size of relocation entries. Previously, it incorrectly included the .rela.plt section in DT_RELASZ, causing tools like llvm-bolt to process the same relocation information twice. By defining elf_backend_dtrel_excludes_plt, the calculation now excludes .rela.plt, aligning with other targets and resolving the issue.