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

            Bug ID: 34249
           Summary: [RISC-V] bfd RISC-V shared preemptible branch 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 16758
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16758&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 default-visible shared
objects successfully for both standard and compressed conditional-branch
relocations, exports `ext` in `.dynsym`, emits no dynamic relocations, and
leaves `caller` with a direct `beq`/`beqz` branch to the local definition.
Expected: Link RISC-V shared objects containing `R_RISCV_BRANCH` and
`R_RISCV_RVC_BRANCH` relocations from `caller` to a default-visible function
`ext` defined in the same DSO.

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

Reply via email to