aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2018-10-04 14:35:12 +0200
committerAndreas Schwab <schwab@suse.de>2018-10-08 10:33:29 +0200
commit25cbdcbbc5d2d4ca834790b1d370fe5159b560de (patch)
treeb952fa26bf06b6e531ac5f4c0b8e89d1a41f0151 /binutils/readelf.c
parent9e1698c6186a3239479058d2abe195a384d5ee6e (diff)
downloadgdb-25cbdcbbc5d2d4ca834790b1d370fe5159b560de.zip
gdb-25cbdcbbc5d2d4ca834790b1d370fe5159b560de.tar.gz
gdb-25cbdcbbc5d2d4ca834790b1d370fe5159b560de.tar.bz2
Handle R_RISCV_32_PCREL in readelf
* readelf.c (is_32bit_pcrel_reloc): Handle R_RISCV_32_PCREL.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 91f4c12..2748664 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -12538,6 +12538,8 @@ is_32bit_pcrel_reloc (Filedata * filedata, unsigned int reloc_type)
return reloc_type == 26; /* R_PPC_REL32. */
case EM_PPC64:
return reloc_type == 26; /* R_PPC64_REL32. */
+ case EM_RISCV:
+ return reloc_type == 57; /* R_RISCV_32_PCREL. */
case EM_S390_OLD:
case EM_S390:
return reloc_type == 5; /* R_390_PC32. */