diff options
author | Nelson Chu <nelson@rivosinc.com> | 2025-08-14 12:01:38 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2025-09-04 16:32:18 +0800 |
commit | cea397848b868c62993864dbef684877bceef1fc (patch) | |
tree | 8861ccc9123ec84c6eeb93de892d859506f5f3e9 /bfd/cpu-d30v.c | |
parent | 8b91a77eda91d4ce5a582647795032dec6899e4e (diff) | |
download | binutils-cea397848b868c62993864dbef684877bceef1fc.zip binutils-cea397848b868c62993864dbef684877bceef1fc.tar.gz binutils-cea397848b868c62993864dbef684877bceef1fc.tar.bz2 |
RISC-V: Fixed missed GOT relocation against a symbol that has a defined value
SImilar to aarch64, commit eac4eb8ecb26
There are two problems when GOT relocation against a symbol that has a defined
value,
1. Pesudo la with pic and pseudo lga lost the relocations.
2. %got_pcrel_hi generates R_RISCV_GOT_HI20 with addend, which is wrong since
commit 50331d64f108.
The solution is to use deferred_expression for GOT relocation. Maybe other
relocations also have same problem and need the deferred_expression, but we can
add in the future patches.
Diffstat (limited to 'bfd/cpu-d30v.c')
0 files changed, 0 insertions, 0 deletions