[llvm] r204614 - [PPC64LE] ELFv2 ABI updates for the .opd section

Will Schmidt will_schmidt at vnet.ibm.com
Mon Mar 24 09:04:16 PDT 2014

Author: willschm
Date: Mon Mar 24 11:04:15 2014
New Revision: 204614

URL: http://llvm.org/viewvc/llvm-project?rev=204614&view=rev
[PPC64LE] ELFv2 ABI updates for the .opd section

[PPC64LE] ELFv2 ABI updates for the .opd section
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.

The CALL_ELF check is not clearly documented at this time.  The basis
for usage in this patch is from the gcc thread here:

> Adding comment from Uli:
Looks good to me.  I think the old-style JIT doesn't really work
anyway for 64-bit, but at least with this patch LLVM will compile
and link again on a ppc64le host ...


Modified: llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp?rev=204614&r1=204613&r2=204614&view=diff
--- llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp Mon Mar 24 11:04:15 2014
@@ -214,6 +214,10 @@ asm(
     ".align 2\n"
     ".globl PPC64CompilationCallback\n"
+#if _CALL_ELF == 2
+    ".type PPC64CompilationCallback, at function\n"
     ".section \".opd\",\"aw\", at progbits\n"
     ".align 3\n"
@@ -223,6 +227,7 @@ asm(
     ".align 4\n"
     ".type PPC64CompilationCallback, at function\n"
 #  else

More information about the llvm-commits mailing list