Handle R_RISCV_32_PCREL in readelf

* readelf.c (is_32bit_pcrel_reloc): Handle R_RISCV_32_PCREL.
This commit is contained in:
Andreas Schwab 2018-10-04 14:35:12 +02:00
parent 9e1698c618
commit 25cbdcbbc5
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2018-10-08 Andreas Schwab <schwab@suse.de>
* readelf.c (is_32bit_pcrel_reloc): Handle R_RISCV_32_PCREL.
2018-10-03 Nick Clifton <nickc@redhat.com>
* po/pt.po: Updated Portuguese translation.

View File

@ -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. */