aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-xmethods.c
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2024-05-28 01:22:13 +0800
committerNelson Chu <nelson@rivosinc.com>2024-05-28 01:38:26 +0800
commite8c26825728385e24990bb7c2968e79908b02410 (patch)
treea70952d3eac58c803524746645232c34837a6e50 /gdb/python/py-xmethods.c
parent1d7a877a0f74a7b90d70ca8cc3c0db9461619b1a (diff)
downloadgdb-e8c26825728385e24990bb7c2968e79908b02410.zip
gdb-e8c26825728385e24990bb7c2968e79908b02410.tar.gz
gdb-e8c26825728385e24990bb7c2968e79908b02410.tar.bz2
RISC-V: Fixed overwritten IRELATIVE relocs in the .rel.iplt for data reloc.
This was originally reported by Hau Hsu <hau.hsu@sifive.com>. Similar to commit 51a8a7c2e3cc0730831963651a55d23d1fae624d We shouldn't use riscv_elf_append_rela to add dynamic relocs into .rela.iplt in the riscv_elf_relocate_section when handling ifunc data reloc R_RISCV_32/64. This just like what did in the riscv_elf_finish_dynamic_symbol. bfd/ * elfnn-riscv.c (riscv_elf_relocate_section): We shouldn't use riscv_elf_append_rela to add dynamic relocs into .rela.iplt in the riscv_elf_relocate_section when handling ifunc data reloc. ld/ * testsuite/ld-riscv-elf/ifunc-overwrite.s: Updated and renamed. * testsuite/ld-riscv-elf/ifunc-overwrite-exe.rd: Likewise. * testsuite/ld-riscv-elf/ifunc-overwrite-pic.rd: Likewise. * testsuite/ld-riscv-elf/ifunc-overwrite-pie.rd: Likewise. * testsuite/ld-riscv-elf/ifunc-overwrite.d: Renamed.
Diffstat (limited to 'gdb/python/py-xmethods.c')
0 files changed, 0 insertions, 0 deletions