aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object
diff options
context:
space:
mode:
authorDavid Fang <fang@csl.cornell.edu>2013-08-08 20:14:40 +0000
committerDavid Fang <fang@csl.cornell.edu>2013-08-08 20:14:40 +0000
commitd4f9d05fde4b2cfd202a5852ec1ec3e960ef53ed (patch)
tree2985448ae6fb868cfa0138d8ff941428f6b66d1b /include/llvm/Object
parent783a0387c5eef62ff50950aa3e977b2652a3c3a5 (diff)
downloadexternal_llvm-d4f9d05fde4b2cfd202a5852ec1ec3e960ef53ed.zip
external_llvm-d4f9d05fde4b2cfd202a5852ec1ec3e960ef53ed.tar.gz
external_llvm-d4f9d05fde4b2cfd202a5852ec1ec3e960ef53ed.tar.bz2
initial draft of PPCMachObjectWriter.cpp
this records relocation entries in the mach-o object file for PIC code generation. tested on powerpc-darwin8, validated against darwin otool -rvV git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r--include/llvm/Object/MachOFormat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/llvm/Object/MachOFormat.h b/include/llvm/Object/MachOFormat.h
index 96ee8a7..2bbad0a 100644
--- a/include/llvm/Object/MachOFormat.h
+++ b/include/llvm/Object/MachOFormat.h
@@ -425,6 +425,25 @@ namespace macho {
};
+ /// PPC relocation types from <mach-o/ppc/reloc.h>
+ enum RelocationInfoTypePPC {
+ RIT_PPC_BR14 = RIT_Pair +1,
+ RIT_PPC_BR24,
+ RIT_PPC_HI16,
+ RIT_PPC_LO16,
+ RIT_PPC_HA16,
+ RIT_PPC_LO14,
+ RIT_PPC_SECTDIFF,
+ RIT_PPC_PB_LA_PTR,
+ RIT_PPC_HI16_SECTDIFF,
+ RIT_PPC_LO16_SECTDIFF,
+ RIT_PPC_HA16_SECTDIFF,
+ RIT_PPC_JBSR,
+ RIT_PPC_LO14_SECTDIFF,
+ RIT_PPC_LOCAL_SECTDIFF,
+ RIT_PPC_TLV
+ };
+
} // end namespace macho
} // end namespace object