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
|
|
|
|
|
|
|
.*: file format .*
|
|
|
|
|
|
|
|
|
|
|
|
Disassembly of section \.text:
|
|
|
|
|
|
|
|
00008f00 <targetfn>:
|
|
|
|
8f00: 4770 bx lr
|
2015-04-24 14:51:49 +00:00
|
|
|
#...
|
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
|
|
|
|
|
|
|
00008f08 <_start>:
|
|
|
|
8f08: bf00 nop
|
|
|
|
8f0a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f0e: f53f aff7 bmi\.w 8f00 <targetfn>
|
|
|
|
8f12: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f16: f53f aff3 bmi\.w 8f00 <targetfn>
|
|
|
|
8f1a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f1e: f53f afef bmi\.w 8f00 <targetfn>
|
|
|
|
8f22: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f26: f53f afeb bmi\.w 8f00 <targetfn>
|
|
|
|
8f2a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f2e: f53f afe7 bmi\.w 8f00 <targetfn>
|
|
|
|
8f32: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f36: f53f afe3 bmi\.w 8f00 <targetfn>
|
|
|
|
8f3a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f3e: f53f afdf bmi\.w 8f00 <targetfn>
|
|
|
|
8f42: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f46: f53f afdb bmi\.w 8f00 <targetfn>
|
|
|
|
8f4a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f4e: f53f afd7 bmi\.w 8f00 <targetfn>
|
|
|
|
8f52: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f56: f53f afd3 bmi\.w 8f00 <targetfn>
|
|
|
|
8f5a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f5e: f53f afcf bmi\.w 8f00 <targetfn>
|
|
|
|
8f62: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f66: f53f afcb bmi\.w 8f00 <targetfn>
|
|
|
|
8f6a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f6e: f53f afc7 bmi\.w 8f00 <targetfn>
|
|
|
|
8f72: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f76: f53f afc3 bmi\.w 8f00 <targetfn>
|
|
|
|
8f7a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f7e: f53f afbf bmi\.w 8f00 <targetfn>
|
|
|
|
8f82: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f86: f53f afbb bmi\.w 8f00 <targetfn>
|
|
|
|
8f8a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f8e: f53f afb7 bmi\.w 8f00 <targetfn>
|
|
|
|
8f92: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f96: f53f afb3 bmi\.w 8f00 <targetfn>
|
|
|
|
8f9a: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8f9e: f53f afaf bmi\.w 8f00 <targetfn>
|
|
|
|
8fa2: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fa6: f53f afab bmi\.w 8f00 <targetfn>
|
|
|
|
8faa: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fae: f53f afa7 bmi\.w 8f00 <targetfn>
|
|
|
|
8fb2: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fb6: f53f afa3 bmi\.w 8f00 <targetfn>
|
|
|
|
8fba: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fbe: f53f af9f bmi\.w 8f00 <targetfn>
|
|
|
|
8fc2: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fc6: f53f af9b bmi\.w 8f00 <targetfn>
|
|
|
|
8fca: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fce: f53f af97 bmi\.w 8f00 <targetfn>
|
|
|
|
8fd2: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fd6: f53f af93 bmi\.w 8f00 <targetfn>
|
|
|
|
8fda: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fde: f53f af8f bmi\.w 8f00 <targetfn>
|
|
|
|
8fe2: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fe6: f53f af8b bmi\.w 8f00 <targetfn>
|
|
|
|
8fea: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8fee: f53f af87 bmi\.w 8f00 <targetfn>
|
|
|
|
8ff2: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8ff6: f53f af83 bmi\.w 8f00 <targetfn>
|
|
|
|
8ffa: eb01 0002 add\.w r0, r1, r2
|
|
|
|
8ffe: f000 b807 b\.w 9010 <_start\+0x108>
|
|
|
|
9002: eb01 0002 add\.w r0, r1, r2
|
|
|
|
9006: f53f af7b bmi\.w 8f00 <targetfn>
|
|
|
|
900a: 4770 bx lr
|
2015-04-24 14:51:49 +00:00
|
|
|
#...
|
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
|
|
|
9010: d401 bmi\.n 9016 <_start\+0x10e>
|
|
|
|
9012: f7ff bff6 b\.w 9002 <_start\+0xfa>
|
|
|
|
9016: f7ff bf73 b\.w 8f00 <targetfn>
|