MIPS: Use R_MIPS_REL16 for BFD_RELOC_16
authorAlan Modra <amodra@gmail.com>
Wed, 3 Aug 2022 12:38:01 +0000 (22:08 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 4 Aug 2022 02:12:33 +0000 (11:42 +0930)
commit94e27e8e69a07d69554ee7598419646d3ee99907
tree6d8ab378fb4029c8ad09505c5b72b117960daf1f
parentfcbfb25dcca625a7f999ec51d48b6fc3a32123c3
MIPS: Use R_MIPS_REL16 for BFD_RELOC_16

R_MIPS_REL16 isn't a pc-relative reloc as the name might indicate.

* elf64-mips.c (mips_reloc_map): Map BFD_RELOC_16 to R_MIPS_REL16.
* elfn32-mips.c (mips_reloc_map): Likewise.
bfd/elf64-mips.c
bfd/elfn32-mips.c