[PATCH 0/5] [GOLD] PowerPC pc-relative support
Alan Modra
amodra@gmail.com
Tue Jul 9 08:58:00 GMT 2019
This patch series adds support to gold for the new PowerPC prefix
instructions with pc-relative addressing. (See git dd7efa7915 and
following for binutils and ld.bfd patches.) As with the bfd linker,
I've added support for notoc calls even when pc-relative insns are not
available, but this won't often be needed as notoc calls really only
make sense when generating pc-relative code.
PATCH 2/5 makes changes to gold's target-independent .eh_frame
support, but powerpc is the only user of that code.
The patch series has been compiled with current gcc and older gcc that
defaults to -std=c++98. Testing so far is fairly light. I'll be
running more rigorous simulator tests before committing.
Alan Modra (5):
[GOLD] PowerPC64 ELFv2 notoc support
[GOLD] PowerPC notoc eh_frame
[GOLD] PowerPC relocations for prefix insns
[GOLD] PowerPC got reloc optimisation
[GOLD] PowerPC R_PPC64_PCREL_OPT support
elfcpp/powerpc.h | 22 +
gold/ehframe.cc | 47 +-
gold/ehframe.h | 25 +-
gold/layout.cc | 9 +-
gold/layout.h | 6 +-
gold/powerpc.cc | 1872 +++++++++++++++++++++++++++++++++++++---------
6 files changed, 1583 insertions(+), 398 deletions(-)
More information about the Binutils
mailing list