diff options
author | Alan Modra <amodra@gmail.com> | 2015-09-18 16:17:49 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-09-18 16:38:03 +0930 |
commit | 7c9cf4158452094f4c463676e5122c5c4ce64de8 (patch) | |
tree | 0ffa90631c601f42f7c88145c3faef48e8d6fdab /bfd/elf64-ppc.h | |
parent | 975f8a9e3144e4d3d3f391e907c8bf94b23dc8b6 (diff) | |
download | fsf-binutils-gdb-7c9cf4158452094f4c463676e5122c5c4ce64de8.zip fsf-binutils-gdb-7c9cf4158452094f4c463676e5122c5c4ce64de8.tar.gz fsf-binutils-gdb-7c9cf4158452094f4c463676e5122c5c4ce64de8.tar.bz2 |
Add PowerPC64 ld --tls-get-addr-optimize.
Sometimes it may be of benefit to force use of the __tls_get_addr_opt
call stub even when the glibc being used during linking does not
advertise __tls_get_addr_opt.
bfd/
* elf64-ppc.h (struct ppc64_elf_params <tls_get_addr_opt>): Rename
from no_tls_get_addr_opt.
* elf64-ppc.c: Update for rename and inversion of tls_get_addr_opt.
(ppc64_elf_tls_setup): Set tls_get_addr_opt to 0 only when at
default of -1.
ld/
* emultempl/ppc64elf.em (params): Init tls_get_addr_opt field to -1.
(OPTION_TLS_GET_ADDR_OPT): Define.
(PARSE_AND_LIST_LONGOPTS): Handle --tls-get-addr-opt.
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
* ld.texinfo: Document --tls-get-addr-optimize and
--no-tls-get-addr-optimize.
Diffstat (limited to 'bfd/elf64-ppc.h')
-rw-r--r-- | bfd/elf64-ppc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.h b/bfd/elf64-ppc.h index 19f72b5..d035ffc 100644 --- a/bfd/elf64-ppc.h +++ b/bfd/elf64-ppc.h @@ -34,7 +34,7 @@ struct ppc64_elf_params bfd_signed_vma group_size; /* Whether to use a special call stub for __tls_get_addr. */ - int no_tls_get_addr_opt; + int tls_get_addr_opt; /* Whether to allow multiple toc sections. */ int no_multi_toc; |