Improve handling of ADD and SUB relocations on the RISCV target.
authorKuan-Lin Chen <rufus@andestech.com>
Mon, 31 Jul 2017 14:33:48 +0000 (15:33 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 31 Jul 2017 14:33:48 +0000 (15:33 +0100)
commit575934368531e7592a7576a39a4320d88007ce88
tree8d2f2b91796d01f712ad950ed21d0a6132dd419c
parentc48a4d983400ade9cfba0531905245eb454afe08
Improve handling of ADD and SUB relocations on the RISCV target.

* elfxx-riscv.c (riscv_elf_add_sub_reloc): New function.
* (howto_table) [R_RISCV_ADD8]: Use riscv_elf_add_sub_reloc.
[R_RISCV_ADD16]: Likewise.
[R_RISCV_ADD32]: Likewise.
[R_RISCV_ADD64]: Likewise.
[R_RISCV_SUB6]: Likewise.
[R_RISCV_SUB8]: Likewise.
[R_RISCV_SUB16]: Likewise.
[R_RISCV_SUB32]: Likewise.
[R_RISCV_SUB64]: Likewise.
bfd/ChangeLog
bfd/elfxx-riscv.c