https://sourceware.org/bugzilla/show_bug.cgi?id=34260
Bug ID: 34260
Summary: [RISC-V] RISC-V shared SET* preemptible/undefined
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 16769
--> https://sourceware.org/bugzilla/attachment.cgi?id=16769&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 default-visible shared objects
successfully, exports `ext` in `.dynsym`, emits no dynamic relocations, and
writes the local `ext` address bits into `.rodata` SET6/SET8/SET16/SET32
fields.
Expected: Link RISC-V shared objects containing public psABI `R_RISCV_SET6`,
`R_RISCV_SET8`, `R_RISCV_SET16`, and `R_RISCV_SET32` relocations in SHF_ALLOC
`.rodata` against either a default-visible function `ext` defined in the same
DSO or a strong undefined symbol `ext`.
--
You are receiving this mail because:
You are on the CC list for the bug.