diff options
author | Mike Pall <mike> | 2011-06-11 15:56:00 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-06-11 15:57:03 +0200 |
commit | a58eb604f43d688057ae94f09738863c61a0e5d6 (patch) | |
tree | b09245adfb4532c6b39e78c8ebeaea3f41be8d6f /src/buildvm_x86.h | |
parent | 27d8d3b5d9a8f05336144f85670c0e00d12dc6cd (diff) | |
download | luajit-a58eb604f43d688057ae94f09738863c61a0e5d6.tar.gz luajit-a58eb604f43d688057ae94f09738863c61a0e5d6.tar.bz2 luajit-a58eb604f43d688057ae94f09738863c61a0e5d6.zip |
Make .eh_frame section read-write on Solaris.
Diffstat (limited to '')
-rw-r--r-- | src/buildvm_x86.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildvm_x86.h b/src/buildvm_x86.h index 44f47339..831a00ab 100644 --- a/src/buildvm_x86.h +++ b/src/buildvm_x86.h | |||
@@ -3219,7 +3219,11 @@ static void emit_asm_debug(BuildCtx *ctx) | |||
3219 | #endif | 3219 | #endif |
3220 | "\t.align " SZPTR "\n" | 3220 | "\t.align " SZPTR "\n" |
3221 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); | 3221 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); |
3222 | #ifdef __solaris__ | ||
3223 | fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n"); | ||
3224 | #else | ||
3222 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); | 3225 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); |
3226 | #endif | ||
3223 | fprintf(ctx->fp, | 3227 | fprintf(ctx->fp, |
3224 | ".Lframe1:\n" | 3228 | ".Lframe1:\n" |
3225 | "\t.long .LECIE1-.LSCIE1\n" | 3229 | "\t.long .LECIE1-.LSCIE1\n" |