Nios II large-GOT relocations
2014-02-03 Sandra Loosemore <sandra@codesourcery.com> include/elf/ * nios2.h (R_NIOS2_GOT_LO, R_NIOS2_GOT_HA): New. (R_NIOS2_CALL_LO, R_NIOS2_CALL_HA): New. (R_NIOS2_ILLEGAL): Adjust. gas/ * config/tc-nios2.c (md_apply_fix): Test for new relocs. (nios2_special_reloc): Add %call_lo, %call_hiadj, %got_lo, %got_hiadj relocation operators. Sort table and add comment to explain ordering. (nios2_fix_adjustable): Test for new relocs. * doc/c-nios2.texi (Nios II Relocations): Document new relocation operators. bfd/ * reloc.c (BFD_RELOC_NIOS2_GOT_LO, BFD_RELOC_NIOS2_GOT_HA): New. (BFD_RELOC_NIOS2_CALL_LO, BFD_RELOC_NIOS2_CALL_HA): New. * libbfd.h: Regenerated. * bfd-in2.h: Regenerated. * elf32-nios2.c (elf_nios2_howto_table_rel): Add new relocations. (nios2_reloc_map): Likewise. (GOT_USED, CALL_USED): Renamed from GOT16_USED and CALL16_USED. Fixed all references. (nios2_elf32_relocate_section): Add new relocations. (nios2_elf32_check_relocs): Likewise. (nios2_elf32_gc_sweep_hook): Likewise.
This commit is contained in:
parent
af09351e0f
commit
1c2de46353
10 changed files with 192 additions and 18 deletions
|
@ -5227,6 +5227,10 @@ a matching LO8XG part. */
|
|||
BFD_RELOC_NIOS2_RELATIVE,
|
||||
BFD_RELOC_NIOS2_GOTOFF,
|
||||
BFD_RELOC_NIOS2_CALL26_NOAT,
|
||||
BFD_RELOC_NIOS2_GOT_LO,
|
||||
BFD_RELOC_NIOS2_GOT_HA,
|
||||
BFD_RELOC_NIOS2_CALL_LO,
|
||||
BFD_RELOC_NIOS2_CALL_HA,
|
||||
|
||||
/* IQ2000 Relocations. */
|
||||
BFD_RELOC_IQ2000_OFFSET_16,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue