This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 0/5] [GOLD] PowerPC pc-relative support
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Cc: iant at google dot com, ccoutant at gmail dot com, Alan Modra <amodra at gmail dot com>
- Date: Tue, 9 Jul 2019 18:26:55 +0930
- Subject: [PATCH 0/5] [GOLD] PowerPC pc-relative support
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(-)