* reloc.c (BFD_RELOC_RL78_CODE): Add.
commit621259858ec670c217843a3a48acd5bc789cd001
authorDJ Delorie <dj@delorie.com>
Wed, 27 Feb 2013 21:39:17 +0000 (27 21:39 +0000)
committerDJ Delorie <dj@delorie.com>
Wed, 27 Feb 2013 21:39:17 +0000 (27 21:39 +0000)
treeef8e38de51074e9313cdbca3840cdf3779907f1e
parent5716ab79df45a7ba8e4717726b7cc0467e0a27e0
* reloc.c (BFD_RELOC_RL78_CODE): Add.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
references in compuated relocs.

* config/tc-rl78.c (reloc_function): Add %code -> BFD_RELOC_RL78_CODE.
(rl78_op): Handle %code().
(rl78_cons_fix_new): Likewise, but ignore for 20-bit operands.
(tc_gen_reloc): Likwise; convert to a computed reloc.
(md_apply_fix): Likewise.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf32-rl78.c
bfd/libbfd.h
bfd/reloc.c