CSKY: Fix special_function in howto table
authorLifang Xia <lifang_xia@c-sky.com>
Wed, 14 Apr 2021 09:18:13 +0000 (17:18 +0800)
committerLifang Xia <lifang_xia@c-sky.com>
Thu, 15 Apr 2021 02:07:35 +0000 (10:07 +0800)
commitf6a1f9574955cd2678c66e658d770adda9331995
treebc3e697800b300e221a0d198413b96da03a358d7
parentd4015fc5aa122b0de3f23c3b586e967dd2f2e225
CSKY: Fix special_function in howto table

The special_function for reloc should be 'bfd_elf_generic_reloc',
reloc list:
R_CKCORE_PCREL_IMM16BY2,
R_CKCORE_PCREL_IMM16BY4,
R_CKCORE_PCREL_IMM10BY4,
R_CKCORE_PCREL_IMM18BY2,
R_CKCORE_PCREL_FLRW_IMM8BY4

bfd/
* elf32-csky.c (csky_elf_howto_table)
<R_CKCORE_PCREL_IMM16BY2>: Set special_function to
bfd_elf_generic_reloc.
<R_CKCORE_PCREL_IMM16BY4>: Likewise.
<R_CKCORE_PCREL_IMM10BY4>: Likewise.
<R_CKCORE_PCREL_IMM18BY2>: Likewise.
<R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
bfd/ChangeLog
bfd/elf32-csky.c