binutils-gdb/ld/emultempl
Paul Brook 845b51d665 2008-02-20 Paul Brook <paul@codesourcery.com>
ld/
	* emultempl/armelf.em (OPTION_FIX_V4BX_INTERWORKING): Define.
	(PARSE_AND_LIST_LONGOPTS): Add fix-v4bx-interworking.
	(PARSE_AND_LIST_OPTIONS): Ditto.
	(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FIX_V4BX_INTERWORKING.
	* emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Add .v4_bx.
	* emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Ditto.
	* emulparams/armnto.sh (OTHER_TEXT_SECTIONS): Ditto.
	* ld.texinfo: Document --fix-v4bx-interworking.

	ld/testsuite/
	* ld-arm/armv4-bx.d: New test.
	* ld-arm/armv4-bx.s: New test.
	* ld-arm/arm.ld: Add .v4bx.
	* ld-arm/arm-elf.exp: Add armv4-bx.

	gas/testsuite/
	* gas/arm/thumb.d: Exclude EABI targets.
	* gas/arm/arch4t.d: Exclude EABI targts.
	* gas/arm/v4bx.d: New test.
	* gas/arm/v4bx.s: New test.
	* gas/arm/thumb-eabi.d: New test.
	* gas/arm/arch4t-eabi.d: New test.

	gas/
	* config/tc-arm.c (fix_v4bx): New variable.
	(do_bx): Generate V4BX relocations.
	(md_assemble): Allow bx on v4 codes when fix_v4bx.
	(md_apply_fix): Handle BFD_RELOC_ARM_V4BX.
	(tc_gen_reloc): Ditto.
	(OPTION_FIX_V4BX): Define.
	(md_longopts): Add fix-v4bx.
	(md_parse_option): Handle OPTION_FIX_V4BX.
	(md_show_usage): Document --fix-v4bx.
	* doc/c-arm.texi: Document --fix-v4bx.

	bfd/
	* reloc.c: Add BFD_RELOC_ARM_V4BX.
	* elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_V4BX.
	(ARM_BX_GLUE_SECTION_NAME, ARM_BX_GLUE_SECTION_NAME): Define.
	(elf32_arm_link_hash_table): Add bx_glue_size and bx_glue_offset.
	Update comment for fix_v4bx.
	(elf32_arm_link_hash_table_create): Zero bx_glue_size and
	bx_glue_offset.
	(ARM_BX_VENEER_SIZE, armbx1_tst_insn, armbx2_moveq_insn,
	armbx3_bx_insn): New.
	(bfd_elf32_arm_allocate_interworking_sections): Allocate BX veneer
	section.
	(bfd_elf32_arm_add_glue_sections_to_bfd): Ditto.
	(bfd_elf32_arm_process_before_allocation): Record BX veneers.
	(record_arm_bx_glue, elf32_arm_bx_glue): New functions.
	(elf32_arm_final_link_relocate): Handle BX veneers.
	(elf32_arm_output_arch_local_syms): Output mapping symbol for .v4_bx.
	* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.
2008-02-20 15:17:56 +00:00
..
aix.em include/ 2008-02-15 03:35:53 +00:00
alphaelf.em * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. 2008-02-15 09:03:02 +00:00
armcoff.em include/ 2008-02-15 03:35:53 +00:00
armelf.em 2008-02-20 Paul Brook <paul@codesourcery.com> 2008-02-20 15:17:56 +00:00
astring.sed
avrelf.em include/ 2008-02-15 03:35:53 +00:00
beos.em include/ 2008-02-15 03:35:53 +00:00
cr16elf.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
crxelf.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
elf32.em include/ 2008-02-15 03:35:53 +00:00
elf-generic.em include/ 2008-02-15 03:35:53 +00:00
genelf.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
generic.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
gld960.em include/ 2008-02-15 03:35:53 +00:00
gld960c.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
hppaelf.em * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. 2008-02-15 09:03:02 +00:00
ia64elf.em * emultempl/alphaelf.em: Format option help. 2007-08-17 13:50:48 +00:00
irix.em include/ 2008-02-15 03:35:53 +00:00
linux.em include/ 2008-02-15 03:35:53 +00:00
lnk960.em include/ 2008-02-15 03:35:53 +00:00
m68hc1xelf.em include/ 2008-02-15 03:35:53 +00:00
m68kcoff.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
m68kelf.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
mipsecoff.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
mipself.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
mmix-elfnmmo.em include/ 2008-02-15 03:35:53 +00:00
mmixelf.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
mmo.em include/ 2008-02-15 03:35:53 +00:00
needrelax.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
netbsd.em 2007-07-19 Roland McGrath <roland@redhat.com> 2007-07-19 19:56:10 +00:00
ostring.sed
pe.em include/ 2008-02-15 03:35:53 +00:00
pep.em include/ 2008-02-15 03:35:53 +00:00
ppc32elf.em * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. 2008-02-15 09:03:02 +00:00
ppc64elf.em * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. 2008-02-15 09:03:02 +00:00
README
scoreelf.em include/ 2008-02-15 03:35:53 +00:00
sh64elf.em include/ 2008-02-15 03:35:53 +00:00
spu_ovl.o bfd/ 2008-02-07 01:26:56 +00:00
spu_ovl.S bfd/ 2008-02-07 01:26:56 +00:00
spuelf.em include/ 2008-02-15 03:35:53 +00:00
sunos.em include/ 2008-02-15 03:35:53 +00:00
ticoff.em * emultempl/alphaelf.em: Format option help. 2007-08-17 13:50:48 +00:00
vanilla.em include/ 2008-02-15 03:35:53 +00:00
vxworks.em include/ 2008-02-15 03:35:53 +00:00
xtensaelf.em include/ 2008-02-15 03:35:53 +00:00
z80.em include/ 2008-02-15 03:35:53 +00:00

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.