diff options
author | Alan Modra <amodra@gmail.com> | 2020-08-12 23:31:28 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-08-13 08:10:18 +0930 |
commit | 6738c8a7c93cd77a0caa720c6cc21c422561be2c (patch) | |
tree | fbb7e126a4d5a43d2292ecd1faafb1a781d08dde /gdb/stack.c | |
parent | 75e100a30d5dfdd3ac2b0391c17173645fc77633 (diff) | |
download | binutils-6738c8a7c93cd77a0caa720c6cc21c422561be2c.zip binutils-6738c8a7c93cd77a0caa720c6cc21c422561be2c.tar.gz binutils-6738c8a7c93cd77a0caa720c6cc21c422561be2c.tar.bz2 |
PowerPC64 --no-pcrel-optimize
This new option effectively ignores R_PPC64_PCREL_OPT, disabling the
optimization of instructions marked by that relocation. The patch
also disables GOT indirect to GOT/TOC pointer relative code editing
when --no-toc-optimize.
bfd/
* elf64-ppc.h (struct ppc64_elf_params): Add no_pcrel_opt.
* elf64-ppc.c (ppc64_elf_relocate_section): Disable GOT reloc
optimizations when --no-toc-optimize. Disable R_PPC64_PCREL_OPT
optimization when --no-pcrel-optimize.
ld/
* emultempl/ppc64elf.em (params): Init new field.
(enum ppc64_opt): Add OPTION_NO_PCREL_OPT.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS),
(PARSE_AND_LIST_ARGS_CASES): Support --no-pcrel-optimize.
Diffstat (limited to 'gdb/stack.c')
0 files changed, 0 insertions, 0 deletions