[PowerPC] 32-bit ELF PIC support
authorHal Finkel <hfinkel@anl.gov>
Fri, 18 Jul 2014 23:29:49 +0000 (23:29 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 18 Jul 2014 23:29:49 +0000 (23:29 +0000)
commitd644d17dd44e89ffd2dcb6896bc23b4c478c37cf
treec5aa00d1c1c3d8d2d1a01dbd773de4a6c1171a28
parent286fbd19f3f781ec885cca1b8ad8a8ead0459652
[PowerPC] 32-bit ELF PIC support

This adds initial support for PPC32 ELF PIC (Position Independent Code; the
-fPIC variety), thus rectifying a long-standing deficiency in the PowerPC
backend.

Patch by Justin Hibbits!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213427 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
include/llvm/Support/ELF.h
lib/Object/ELF.cpp
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
lib/Target/PowerPC/PPC.h
lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCFrameLowering.cpp
lib/Target/PowerPC/PPCFrameLowering.h
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCMCInstLower.cpp
lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
lib/Target/PowerPC/PPCMachineFunctionInfo.h
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCSubtarget.h
test/CodeGen/PowerPC/available-externally.ll
test/CodeGen/PowerPC/ppc32-pic.ll [new file with mode: 0644]
test/CodeGen/PowerPC/sections.ll
test/CodeGen/PowerPC/stack-realign.ll
test/MC/PowerPC/ppc-reloc.s [new file with mode: 0644]