diff options
author | Nelson Chu <nelson@rivosinc.com> | 2025-01-14 14:16:48 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2025-01-17 16:39:49 +0800 |
commit | a223bdd674f1001d6cf315bacfd962cb62fb3555 (patch) | |
tree | 3f87c152f7e703f1c9d76093dfa65a709cc866a7 /gdb/python/py-unwind.c | |
parent | 0e4207c529e605fe4a17fe71b49ffb42576d0b83 (diff) | |
download | binutils-a223bdd674f1001d6cf315bacfd962cb62fb3555.zip binutils-a223bdd674f1001d6cf315bacfd962cb62fb3555.tar.gz binutils-a223bdd674f1001d6cf315bacfd962cb62fb3555.tar.bz2 |
RISC-V: PR32499, Fix PR18841 segfault caused by ifunc relocation ordering
Even though the relocation isn't IRELATIVE, it still should be come last if
refering to ifunc symbol. In order to get the ifunc relocs properly sorted
the correct class needs to be returned. The code mimics what has been done
for x86, sparc, aarch64 and arm32.
bfd/
PR 18841
PR 32499
* elfnn-riscv.c (riscv_reloc_type_class): Handle ifunc relocation
ordering, even though it's not IRELATIVE, it still should be come
last if refering ifunc symbol.
Diffstat (limited to 'gdb/python/py-unwind.c')
0 files changed, 0 insertions, 0 deletions