]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Don't overwrite got entry to zero for IRELATIVE/RELATIVE relocation
authorNelson Chu <nelson@rivosinc.com>
Thu, 21 Aug 2025 04:33:03 +0000 (12:33 +0800)
committerNelson Chu <nelson@rivosinc.com>
Thu, 4 Sep 2025 08:32:44 +0000 (16:32 +0800)
commit672a326e2c1a0eb5e318637df205fcdf10cc48a0
tree48feb63fb0af9562a3e6a4756400936b334aa431
parentcea397848b868c62993864dbef684877bceef1fc
RISC-V: Don't overwrite got entry to zero for IRELATIVE/RELATIVE relocation

Even the final result is correct since we encode the relocation into r_addend,
so glibc won't need to get the content of got entry when resolving relative
relocation, it still werid that finish_dynamic_symbol cleans what we filled in
the relocate_section.
bfd/elfnn-riscv.c