[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)
commit3ee2af7d1c0decb43729d239b5c6c0052b5308b7
treeed2c775d579da6195162e9146eea3a83c8e0d678
parent8924d27c02b546d1f4da3be97b353792df4e6211
[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!

llvm-svn: 213427
20 files changed:
llvm/include/llvm/Support/ELF.h
llvm/lib/Object/ELF.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
llvm/lib/Target/PowerPC/PPC.h
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
llvm/lib/Target/PowerPC/PPCFrameLowering.h
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/lib/Target/PowerPC/PPCSubtarget.h
llvm/test/CodeGen/PowerPC/available-externally.ll
llvm/test/CodeGen/PowerPC/ppc32-pic.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/sections.ll
llvm/test/CodeGen/PowerPC/stack-realign.ll
llvm/test/MC/PowerPC/ppc-reloc.s [new file with mode: 0644]