PowerPC: Fix eh_frame relocation for PIC
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 4 Jan 2013 19:08:13 +0000 (19:08 +0000)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 4 Jan 2013 19:08:13 +0000 (19:08 +0000)
commit7b449889e7886b263718b5103538970f287bc37e
treeadce081f990c3c199145baac8c42561f51cc5bba
parent13410a11e7247ed9d7841e219fdcdc93427c039e
PowerPC: Fix eh_frame relocation for PIC

This patch fixes the PPC eh_frame definitions for the personality and
frame unwinding for PIC objects. It makes PIC build correctly creates
relative relocations in the '.rela.eh_frame' segments and thus avoiding
a text relocation that generates a DT_TEXTREL segments in link phase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171506 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ELF.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/MC/MCObjectFileInfo.cpp
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
test/MC/PowerPC/ppc64-initial-cfa.ll