[PATCH 1/3] [PPC64LE] ELFv2 ABI updates for the .opd section
Will Schmidt
will_schmidt at vnet.ibm.com
Tue Mar 11 12:53:16 PDT 2014
The PPC64 Little Endian (PPC64LE) target supports the ELFv2 ABI, and as
such, does not have a ".opd" section. This is keyed off a _CALL_ELF=2
macro check.
---
lib/Target/PowerPC/PPCJITInfo.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp
index 5e3a48d..227919c 100644
--- a/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/lib/Target/PowerPC/PPCJITInfo.cpp
@@ -214,6 +214,10 @@ asm(
".text\n"
".align 2\n"
".globl PPC64CompilationCallback\n"
+#if _CALL_ELF == 2
+ ".type PPC64CompilationCallback, at function\n"
+"PPC64CompilationCallback:\n"
+#else
".section \".opd\",\"aw\", at progbits\n"
".align 3\n"
"PPC64CompilationCallback:\n"
@@ -223,6 +227,7 @@ asm(
".align 4\n"
".type PPC64CompilationCallback, at function\n"
".L.PPC64CompilationCallback:\n"
+#endif
# else
asm(
".text\n"
More information about the llvm-commits
mailing list