aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2005-01-28 17:24:41 +0000
committerJulian Brown <julian@codesourcery.com>2005-01-28 17:24:41 +0000
commit319850b45155323419e8862ee9e1b20d12b3a62d (patch)
tree71d81d25b3464a0cfb07087d2a86a66d307c3931 /ld/ld.texinfo
parentc84141d67e109faa68267eba2fbfbb4840a103c2 (diff)
downloadgdb-319850b45155323419e8862ee9e1b20d12b3a62d.zip
gdb-319850b45155323419e8862ee9e1b20d12b3a62d.tar.gz
gdb-319850b45155323419e8862ee9e1b20d12b3a62d.tar.bz2
* 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. * ld/NEWS: Mention --fix-v4bx. * ld/ld.texinfo: Document --fix-v4bx.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 5452fe9..4511868 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -5139,6 +5139,20 @@ meanings, and target defaults are as follows:
@samp{R_ARM_GOT_PREL} (arm*-*-linux, arm*-*-*bsd)
@end table
+@cindex FIX_V4BX
+@kindex --fix-v4bx
+The @samp{R_ARM_V4BX} relocation (defined by the ARM AAELF
+specification) enables objects compiled for the ARMv4 architecture to be
+interworking-safe when linked with other objects compiled for ARMv4t, but
+also allows pure ARMv4 binaries to be built from the same ARMv4 objects.
+
+In the latter case, the switch @option{--fix-v4bx} must be passed to the
+linker, which causes v4t @code{BX rM} instructions to be rewritten as
+@code{MOV PC,rM}, since v4 processors do not have a @code{BX} instruction.
+
+In the former case, the switch should not be used, and @samp{R_ARM_V4BX}
+relocations are ignored.
+
@ifclear GENERIC
@lowersections
@end ifclear