https://sourceware.org/bugzilla/show_bug.cgi?id=34251

            Bug ID: 34251
           Summary: [RISC-V] bfd RISC-V shared preemptible 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 16760
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16760&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 RV32 and RV64 shared objects successfully,
exports default-visible `w1` and `w2` in `.dynsym`, and writes the fixed byte
`0x04` into both `.alloc` and `.debug_rnglists`.
Expected: Link a RISC-V shared object containing paired `R_RISCV_SET_ULEB128`
and `R_RISCV_SUB_ULEB128` relocations for `.uleb128 w2-w1`, where `w1` and `w2`
are default-visible definitions in the same DSO.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to