xc16x: Add elf32_xc16x_rtype_to_howto
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Dec 2018 14:01:46 +0000 (06:01 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Dec 2018 14:01:46 +0000 (06:01 -0800)
commit209d1499de79eb23191f5761166180b80feb900a
tree9676ee68cb7fe6d0d35926dda1bca56f83e23855
parent69799d67e8872dcd3feee81ed2ff0fc47beb52d7
xc16x: Add elf32_xc16x_rtype_to_howto

Add elf32_xc16x_rtype_to_howto to get reloc_howto_type pointer from
ELF32_R_TYPE.

* elf32-xc16x.c (elf32_xc16x_rtype_to_howto): New function.
(elf32_xc16x_relocate_section): Call elf32_xc16x_rtype_to_howto
instead of xc16x_reloc_type_lookup to get reloc_howto_type.
bfd/ChangeLog
bfd/elf32-xc16x.c