https://sourceware.org/bugzilla/show_bug.cgi?id=34253
Bug ID: 34253
Summary: [RISC-V] GNU ld.bfd RISC-V fixed-width ADD/SET plus
SUB relocations use the wrong value
Product: binutils
Version: 2.45
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: l784896635 at gmail dot com
Target Milestone: ---
Created attachment 16762
--> https://sourceware.org/bugzilla/attachment.cgi?id=16762&action=edit
Reduced testcase
I reduced this to the attached RISC-V testcase and can reproduce it 3/3 times.
Observed: GNU ld.bfd 2.45 links successfully but materializes only the first
ADD/SET relocation value at each field.
Expected: Link valid RISC-V objects containing same-offset fixed-width
label-difference relocation pairs: `R_RISCV_SET8/SUB8`, `R_RISCV_ADD8/SUB8`,
`R_RISCV_SET16/SUB16`, `R_RISCV_ADD16/SUB16`, `R_RISCV_SET32/SUB32`, and
`R_RISCV_ADD32/SUB32`.
--
You are receiving this mail because:
You are on the CC list for the bug.