https://sourceware.org/bugzilla/show_bug.cgi?id=34262
Bug ID: 34262
Summary: [RISC-V] GNU ld.bfd TLSDESC HI20 addend dropped
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 16771
--> https://sourceware.org/bugzilla/attachment.cgi?id=16771&action=edit
Reduced testcase
I reduced this to the attached RISC-V testcase and can reproduce it 3/3 times.
Observed: GNU ld.bfd links successfully but for `%tlsdesc_hi(tls+4)` emits
dynamic `R_RISCV_TLSDESC` addend 0.
Expected: Link valid RISC-V shared objects whose TLSDESC sequence uses
`R_RISCV_TLSDESC_HI20` with an explicit addend, for example
`%tlsdesc_hi(tls+4)`.
--
You are receiving this mail because:
You are on the CC list for the bug.