diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-01-04 19:08:13 +0000 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-01-04 19:08:13 +0000 |
commit | 7b449889e7886b263718b5103538970f287bc37e (patch) | |
tree | adce081f990c3c199145baac8c42561f51cc5bba /include/llvm | |
parent | 13410a11e7247ed9d7841e219fdcdc93427c039e (diff) | |
download | external_llvm-7b449889e7886b263718b5103538970f287bc37e.zip external_llvm-7b449889e7886b263718b5103538970f287bc37e.tar.gz external_llvm-7b449889e7886b263718b5103538970f287bc37e.tar.bz2 |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/ELF.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index d0422b3..e351fbc 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -464,6 +464,7 @@ enum { // ELF Relocation types for PPC64 enum { + R_PPC64_ADDR32 = 1, R_PPC64_ADDR16_LO = 4, R_PPC64_ADDR16_HI = 5, R_PPC64_ADDR14 = 7, @@ -471,6 +472,7 @@ enum { R_PPC64_ADDR64 = 38, R_PPC64_ADDR16_HIGHER = 39, R_PPC64_ADDR16_HIGHEST = 41, + R_PPC64_REL64 = 44, R_PPC64_TOC16 = 47, R_PPC64_TOC16_LO = 48, R_PPC64_TOC16_HA = 50, |