binutils-gdb/ld/emultempl
Julian Brown 48229727d8 ld/
* emultempl/armelf.em (fix_cortex_a8): New.
    (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
    (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
    bfd_elf32_arm_set_target_relocs.
    (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
    (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
    (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
    (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
    * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.

    bfd/
    * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN):
    New macros.
    (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
    (elf32_arm_stub_a8_veneer_blx): New stub sequences.
    (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
    arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
    (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
    (a8_erratum_fix, a8_erratum_reloc): New structs.
    (elf32_arm_link_hash_table): Add a8_erratum_fixes,
    num_a8_erratum_fixes, fix_cortex_a8 fields.
    (elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
    (elf32_arm_add_stub): Split into two parts, creating...
    (elf32_arm_create_or_find_stub_sec): New function.
    (elf32_arm_final_link_relocate): Add forward declaration.
    (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
    relocations, multiple relocations per stub.
    (find_stub_size_and_template): New (using parts of
    arm_size_one_stub).
    (arm_size_one_stub): Use find_stub_size_and_template.
    (a8_reloc_compare): New.
    (find_thumb_glue): Add forward declaration.
    (cortex_a8_erratum_scan): New.
    (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
    (bfd_elf32_arm_set_cortex_a8_fix): New.
    (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
    (arm_map_one_stub): Add THUMB32_TYPE support.
    (a8_branch_to_stub_data): New.
    (make_branch_to_a8_stub): New.
    (elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
    * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
    (bfd_elf32_arm_set_target_relocs): Add argument for controlling
    Cortex-A8 erratum workaround.
    * bfd-in2.h: Regenerate.

    ld/testsuite/
    * ld-arm/cortex-a8-arm-target.s: New.
    * ld-arm/cortex-a8-thumb-target.s: New.
    * ld-arm/cortex-a8-fix-b-rel.s: New.
    * ld-arm/cortex-a8-fix-b-rel-arm.d: New.
    * ld-arm/cortex-a8-fix-b-rel-thumb.d: New.
    * ld-arm/cortex-a8-fix-b.s: New.
    * ld-arm/cortex-a8-fix-b.d: New.
    * ld-arm/cortex-a8-fix-bl-rel.s: New.
    * ld-arm/cortex-a8-fix-bl-rel-arm.d: New.
    * ld-arm/cortex-a8-fix-bl-rel-thumb.d: New.
    * ld-arm/cortex-a8-fix-bl.s: New.
    * ld-arm/cortex-a8-fix-bl.d: New.
    * ld-arm/cortex-a8-fix-bcc-rel.s: New.
    * ld-arm/cortex-a8-fix-bcc-rel-thumb.d: New.
    * ld-arm/cortex-a8-fix-bcc.s: New.
    * ld-arm/cortex-a8-fix-bcc.d: New.
    * ld-arm/cortex-a8-fix-blx-rel.s: New.
    * ld-arm/cortex-a8-fix-blx-rel-arm.d: New.
    * ld-arm/cortex-a8-fix-blx-rel-thumb.d: New.
    * ld-arm/cortex-a8-fix-blx.s: New.
    * ld-arm/cortex-a8-fix-blx.d: New.
    * ld-arm/arm-elf.exp: Add new tests.
2009-05-22 11:58:45 +00:00
..
README
aix.em bfd/ 2009-04-01 19:53:53 +00:00
alphaelf.em
armcoff.em
armelf.em ld/ 2009-05-22 11:58:45 +00:00
astring.sed
avrelf.em * emultempl/armelf.em (elf32_arm_add_stub_section): Use 2008-07-07 00:46:51 +00:00
beos.em * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions. 2009-02-16 07:25:52 +00:00
cr16elf.em * emultempl/cr16elf.em (cr16_after_open): New function to handle 2008-11-27 12:41:14 +00:00
crxelf.em
elf-generic.em
elf32.em ld/ 2009-05-15 14:22:36 +00:00
genelf.em bfd/ 2008-10-03 09:40:49 +00:00
generic.em
gld960.em
gld960c.em
hppaelf.em * emultempl/armelf.em (elf32_arm_add_stub_section): Use 2008-07-07 00:46:51 +00:00
ia64elf.em
irix.em
linux.em
lnk960.em
m68hc1xelf.em * emultempl/armelf.em (elf32_arm_add_stub_section): Use 2008-07-07 00:46:51 +00:00
m68kcoff.em * emultempl/armelf.em (elf32_arm_add_stub_section): Use 2008-07-07 00:46:51 +00:00
m68kelf.em * emultempl/armelf.em (elf32_arm_add_stub_section): Use 2008-07-07 00:46:51 +00:00
mipsecoff.em
mipself.em 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com> 2008-08-08 19:24:49 +00:00
mmix-elfnmmo.em
mmixelf.em
mmo.em * ldemul.h (ldemul_place_orphan): Update prototype. 2008-10-20 12:14:29 +00:00
needrelax.em
netbsd.em
ostring.sed
pe.em ld/ 2009-05-15 14:22:36 +00:00
pep.em ld/ 2009-05-15 14:22:36 +00:00
ppc32elf.em
ppc64elf.em include/ 2008-11-26 01:04:17 +00:00
scoreelf.em Add support for Score7 architecture. 2009-03-02 10:33:08 +00:00
sh64elf.em * emultempl/armelf.em (elf32_arm_add_stub_section): Use 2008-07-07 00:46:51 +00:00
spu_icache.S bfd/ 2009-03-17 12:46:19 +00:00
spu_icache.o_c bfd/ 2009-03-17 12:46:19 +00:00
spu_ovl.S bfd/ 2008-06-16 16:16:31 +00:00
spu_ovl.o_c Include the spu_ovl ASCII form in the repository files. 2008-08-02 16:25:44 +00:00
spuelf.em bfd/ 2009-05-14 16:56:09 +00:00
sunos.em 2008-09-08 H.J. Lu <hongjiu.lu@intel.com> 2008-09-08 16:07:46 +00:00
ticoff.em
vanilla.em
vxworks.em
xtensaelf.em * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions. 2009-02-16 07:25:52 +00:00
z80.em

README

The files in this directory are sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.