aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2005-04-15 16:37:47 +0000
committerJulian Brown <julian@codesourcery.com>2005-04-15 16:37:47 +0000
commit33bfe77466aaf8e59a3b8c4d99797ad8c8c646fc (patch)
tree89af961c8b8867fdfbd45aafd6e2aa743b773443 /ld/ld.texinfo
parentac559f4a6daae06b15dbcaeaa9c383a91e9e3e41 (diff)
downloadgdb-33bfe77466aaf8e59a3b8c4d99797ad8c8c646fc.zip
gdb-33bfe77466aaf8e59a3b8c4d99797ad8c8c646fc.tar.gz
gdb-33bfe77466aaf8e59a3b8c4d99797ad8c8c646fc.tar.bz2
* bfd/bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
* bfd/bfd-in2.h: Regenerate. * bfd/elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'. (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx. (bfd_elf32_arm_set_target_relocs): Handle use_blx. (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22 relocations if requested to. (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on use_blx rather than symbian_p. (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if use_blx is in effect. (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default for SymbianOS. * ld/ld.texinfo: Document --use-blx. * ld/emultempl/armelf.em (use_blx): New variable. (arm_elf_create_output_section_statements): Communicate value of use_blx to bfd. (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX. (PARSE_AND_LIST_OPTIONS): Add --use-blx option. (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 99afaf2..7860e25 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -5262,6 +5262,17 @@ linker, which causes v4t @code{BX rM} instructions to be rewritten as
In the former case, the switch should not be used, and @samp{R_ARM_V4BX}
relocations are ignored.
+@cindex USE_BLX
+@kindex --use-blx
+The @samp{--use-blx} switch enables the linker to use ARM/Thumb
+BLX instructions (available on ARMv5t and above) in various
+situations. Currently it is used to perform calls via the PLT from Thumb
+code using BLX rather than using BX and a mode-switching stub before
+each PLT entry. This should lead to such calls executing slightly faster.
+
+This option is enabled implicitly for SymbianOS, so there is no need to
+specify it if you are using that target.
+
@ifclear GENERIC
@lowersections
@end ifclear