]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
readelf: Handle more RISC-V relocations
authorAndreas Schwab <schwab@suse.de>
Mon, 18 Jun 2018 08:29:31 +0000 (10:29 +0200)
committerAndreas Schwab <schwab@suse.de>
Tue, 19 Jun 2018 09:01:28 +0000 (11:01 +0200)
commit39e07931b1be69b13acb8322687f825bd00afe91
treeea4be14522172189929dc3a319e61d6dd0226bc1
parentf63b508a8709da08448ea68c9db7c5d9f168da0c
readelf: Handle more RISC-V relocations

* readelf.c (is_16bit_abs_reloc): Handle R_RISCV_SET16.
(is_8bit_abs_reloc): New function.
(is_6bit_abs_reloc): New function.
(is_6bit_inplace_sub_reloc): New function.
(apply_relocations): Use them.  Handle 6-bit relocations.
ChangeLog
binutils/readelf.c