From d5a915ccf58bff38f932de752771cd650809787e Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 10 Jun 2012 16:34:18 +0200 Subject: [PATCH] CONSOLE: Minor PS3 build fixes. --- src/host/buildvm_asm.c | 2 ++ src/lj_arch.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/host/buildvm_asm.c b/src/host/buildvm_asm.c index 5fc31287..992c3509 100644 --- a/src/host/buildvm_asm.c +++ b/src/host/buildvm_asm.c @@ -275,7 +275,9 @@ void emit_asm(BuildCtx *ctx) fprintf(ctx->fp, "\n"); switch (ctx->mode) { case BUILD_elfasm: +#if !LJ_TARGET_PS3 fprintf(ctx->fp, "\t.section .note.GNU-stack,\"\"," ELFASM_PX "progbits\n"); +#endif #if LJ_TARGET_PPCSPE /* Soft-float ABI + SPE. */ fprintf(ctx->fp, "\t.gnu_attribute 4, 2\n\t.gnu_attribute 8, 3\n"); diff --git a/src/lj_arch.h b/src/lj_arch.h index 8d6830a3..7604d84b 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h @@ -204,7 +204,7 @@ #if _ARCH_PPCSQ #define LJ_ARCH_SQRT 1 #endif -#if _ARCH_PPC5X +#if _ARCH_PWR5X #define LJ_ARCH_ROUND 1 #endif #if __PPU__