diff options
author | Alan Modra <amodra@gmail.com> | 2020-07-10 10:48:45 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-07-10 11:14:38 +0930 |
commit | d3b10ee787216d304a858246656ed2fdaecdfd93 (patch) | |
tree | 8a07c8d1aae6020bbf39bbc27fe4f7d309e95433 /bfd/elf64-ppc.h | |
parent | bf7682fdf7cf8e1efd361063e2a3a01eca953958 (diff) | |
download | gdb-d3b10ee787216d304a858246656ed2fdaecdfd93.zip gdb-d3b10ee787216d304a858246656ed2fdaecdfd93.tar.gz gdb-d3b10ee787216d304a858246656ed2fdaecdfd93.tar.bz2 |
PowerPC64 ld --no-power10-stubs
Needed for libraries that use ifuncs or other means to support
cpu-optimized versions of functions, some power10, some not, and those
functions make calls using linkage stubs.
bfd/
* elf64-ppc.h (struct ppc64_elf_params): Add power10_stubs.
* elf64-ppc.c (struct ppc_link_hash_table): Delete
power10_stubs.
(ppc64_elf_check_relocs): Adjust setting of power10_stubs.
(plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust
uses of power10_stubs.
ld/
* emultempl/ppc64elf.em (params): Init new field.
(enum ppc64_opt): Add OPTION_POWER10_STUBS and OPTION_NO_POWER10_STUBS.
(PARSE_AND_LIST_LONGOPTS): Support --power10-stubs and
--no-power10-stubs.
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
* testsuite/ld-powerpc/callstub-3.d: New test.
* testsuite/ld-powerpc/powerpc.exp: Run it.
Diffstat (limited to 'bfd/elf64-ppc.h')
-rw-r--r-- | bfd/elf64-ppc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.h b/bfd/elf64-ppc.h index a2ffd4e..547971f 100644 --- a/bfd/elf64-ppc.h +++ b/bfd/elf64-ppc.h @@ -54,6 +54,9 @@ struct ppc64_elf_params /* Set if PLT call stubs for localentry:0 functions should omit r2 save. */ int plt_localentry0; + /* Whether to use power10 instructions in linkage stubs. */ + int power10_stubs; + /* Whether to canonicalize .opd so that there are no overlapping .opd entries. */ int non_overlapping_opd; |