diff options
Diffstat (limited to 'src/host/buildvm_asm.c')
-rw-r--r-- | src/host/buildvm_asm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/host/buildvm_asm.c b/src/host/buildvm_asm.c index 7bea4d17..d1f5224f 100644 --- a/src/host/buildvm_asm.c +++ b/src/host/buildvm_asm.c | |||
@@ -130,7 +130,7 @@ static void emit_asm_wordreloc(BuildCtx *ctx, uint8_t *p, int n, | |||
130 | ins, sym); | 130 | ins, sym); |
131 | exit(1); | 131 | exit(1); |
132 | } | 132 | } |
133 | #elif LJ_TARGET_PPC || LJ_TARGET_PPCSPE | 133 | #elif LJ_TARGET_PPC |
134 | #if LJ_TARGET_PS3 | 134 | #if LJ_TARGET_PS3 |
135 | #define TOCPREFIX "." | 135 | #define TOCPREFIX "." |
136 | #else | 136 | #else |
@@ -313,10 +313,7 @@ void emit_asm(BuildCtx *ctx) | |||
313 | #if !(LJ_TARGET_PS3 || LJ_TARGET_PSVITA) | 313 | #if !(LJ_TARGET_PS3 || LJ_TARGET_PSVITA) |
314 | fprintf(ctx->fp, "\t.section .note.GNU-stack,\"\"," ELFASM_PX "progbits\n"); | 314 | fprintf(ctx->fp, "\t.section .note.GNU-stack,\"\"," ELFASM_PX "progbits\n"); |
315 | #endif | 315 | #endif |
316 | #if LJ_TARGET_PPCSPE | 316 | #if LJ_TARGET_PPC && !LJ_TARGET_PS3 |
317 | /* Soft-float ABI + SPE. */ | ||
318 | fprintf(ctx->fp, "\t.gnu_attribute 4, 2\n\t.gnu_attribute 8, 3\n"); | ||
319 | #elif LJ_TARGET_PPC && !LJ_TARGET_PS3 | ||
320 | /* Hard-float ABI. */ | 317 | /* Hard-float ABI. */ |
321 | fprintf(ctx->fp, "\t.gnu_attribute 4, 1\n"); | 318 | fprintf(ctx->fp, "\t.gnu_attribute 4, 1\n"); |
322 | #endif | 319 | #endif |