https://sourceware.org/bugzilla/show_bug.cgi?id=34265
Bug ID: 34265
Summary: [RISC-V] bfd RISC-V unpaired ULEB128 wrong success
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 16774
--> https://sourceware.org/bugzilla/attachment.cgi?id=16774&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 the unpaired `R_RISCV_SET_ULEB128` objects
successfully in RV32 and RV64 shared mode, emits no remaining ULEB128
relocations, and writes fixed bytes into both SHF_ALLOC `.alloc` and non-alloc
`.debug_rnglists`.
Expected: Link RISC-V objects containing `R_RISCV_SET_ULEB128` without a
matching same-offset `R_RISCV_SUB_ULEB128`.
--
You are receiving this mail because:
You are on the CC list for the bug.