Edit ELFv2 global entry prologue to non-PIC
authorAlan Modra <amodra@gmail.com>
Fri, 1 Nov 2013 08:55:56 +0000 (19:25 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 3 Nov 2013 23:51:32 +0000 (10:21 +1030)
commit52a82034ac9a288d2d8e60efa880623288b5d228
treea1563eb868c979d4a8885798d64a36a9f7bb187a
parenta345bc8d317a159e3e887632d80c5a8282d34f07
Edit ELFv2 global entry prologue to non-PIC

Changing addis r2,r12,..; addi r2,r2,.. to lis r2,..; addi r2,r2..
in non-PIC executables has the benefit of removing a dependency on r12.

bfd/
* elf64-ppc.c (ppc64_elf_relocate_section): Edit global entry
prologue to non-PIC in non-PIC executables.
ld/testsuite/
* ld-powerpc/elfv2exe.d: Adjust for non-PIC global entry.
bfd/ChangeLog
bfd/elf64-ppc.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/elfv2exe.d