--- llvm-3.0.src/lib/Target/PowerPC/PPCJITInfo.cpp.orig 2012-03-07 20:01:47.127581015 +0900 +++ llvm-3.0.src/lib/Target/PowerPC/PPCJITInfo.cpp 2012-03-07 20:07:52.268555904 +0900 @@ -148,6 +148,9 @@ ".text\n" ".align 2\n" ".globl PPC32CompilationCallback\n" +#if defined(__linux__) && defined(__ELF__) + ".section .note.GNU-stack,\"\",%progbits\n" +#endif "PPC32CompilationCallback:\n" // Make space for 8 ints r[3-10] and 8 doubles f[1-8] and the // FIXME: need to save v[0-19] for altivec? @@ -218,6 +221,9 @@ ".previous\n" ".align 4\n" ".type PPC64CompilationCallback,@function\n" +#if defined(__linux__) && defined(__ELF__) + ".section .note.GNU-stack,\"\",%progbits\n" +#endif ".L.PPC64CompilationCallback:\n" #else asm(