https://sourceware.org/bugzilla/show_bug.cgi?id=34269
Bug ID: 34269
Summary: [RISC-V] GNU ld.bfd preemptible external function JAL
not redirected to PLT in PIE
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 16778
--> https://sourceware.org/bugzilla/attachment.cgi?id=16778&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 already canonicalizes the non-PIE executable control:
the final executable keeps `R_RISCV_JUMP_SLOT foo`, gives undefined `foo` a
non-zero `foo@plt` value in `.dynsym`, and rewrites direct `jal foo` to `jal
foo@plt`.
Expected: Link a valid RISC-V main image against a separate shared object that
exports ordinary default-visible function `foo`, then reference `foo` through a
direct `jal foo`.
--
You are receiving this mail because:
You are on the CC list for the bug.