PowerPC64 xlate_pcrel_opt
authorAlan Modra <amodra@gmail.com>
Thu, 29 Aug 2019 02:00:11 +0000 (11:30 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 29 Aug 2019 03:27:33 +0000 (12:57 +0930)
commitdd9b12c2451f0e46e73ec54d8762727d428b4c14
tree16eaf6d814475f3b04a3edd5319852d19aacbfa1
parent507685a390b47d853f22176273cb949e2ee8da81
PowerPC64 xlate_pcrel_opt

We can easily support an offset on the second instruction of a
sequence marked with R_PPC64_PCREL_OPT.  For example,
  pla ra,symbol@pcrel
  ld rt,off(ra)
can be optimised to
  pld rt,symbol+off@pcrel
  nop

* elf64-ppc.c (xlate_pcrel_opt): Add poff parameter.  Allow offset
on second insn, return it in poff.
(ppc64_elf_relocate_section): Add offset to paddi addend for
PCREL_OPT.
bfd/ChangeLog
bfd/elf64-ppc.c
This page took 0.024412 seconds and 4 git commands to generate.