[PATCH] Add support for ARM AAPCS R_ARM_V4BX relocation type

Ian Lance Taylor ian@airs.com
Fri Jan 28 15:35:00 GMT 2005


Julian Brown <julian@codesourcery.com> writes:

> ChangeLog:
> 
> 	* bfd/bin-in.h (bfd_elf32_arm_set_target_relocs): Update
> 	prototype.
> 	* bfd/bin-in2.h (bfd_elf32_arm_set_target_relocs): Update
> 	prototype.
> 	* bfd/elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx
> 	flag.
> 	(bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx
> 	for passing flag value from ld. Set flag value in global hash
> 	table entry.
> 	(elf32_arm_final_link_relocate): Add code to implement
> 	R_ARM_V4BX relocation.
> 	* ld/emultempl/armelf.em (fix_v4bx): New variable.
> 	(arm_elf_create_output_section_statements): Communicate fix_v4bx
> 	flag value to bfd.
> 	(PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
> 	(PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
> 	(PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
> 	(PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.

This option should be documented in ld.texinfo, and the new option
should be mentioned in ld/NEWS.

Ian



More information about the Binutils mailing list