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 | |
parent | 27d8d3b5d9a8f05336144f85670c0e00d12dc6cd (diff) | |
download | luajit-a58eb604f43d688057ae94f09738863c61a0e5d6.tar.gz luajit-a58eb604f43d688057ae94f09738863c61a0e5d6.tar.bz2 luajit-a58eb604f43d688057ae94f09738863c61a0e5d6.zip |
Make .eh_frame section read-write on Solaris.
-rw-r--r-- | src/buildvm_x64.h | 4 | ||||
-rw-r--r-- | src/buildvm_x64win.h | 4 | ||||
-rw-r--r-- | src/buildvm_x86.dasc | 4 | ||||
-rw-r--r-- | src/buildvm_x86.h | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/src/buildvm_x64.h b/src/buildvm_x64.h index 4a96493f..6fe46d9f 100644 --- a/src/buildvm_x64.h +++ b/src/buildvm_x64.h | |||
@@ -3062,7 +3062,11 @@ static void emit_asm_debug(BuildCtx *ctx) | |||
3062 | #endif | 3062 | #endif |
3063 | "\t.align " SZPTR "\n" | 3063 | "\t.align " SZPTR "\n" |
3064 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); | 3064 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); |
3065 | #ifdef __solaris__ | ||
3066 | fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n"); | ||
3067 | #else | ||
3065 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); | 3068 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); |
3069 | #endif | ||
3066 | fprintf(ctx->fp, | 3070 | fprintf(ctx->fp, |
3067 | ".Lframe1:\n" | 3071 | ".Lframe1:\n" |
3068 | "\t.long .LECIE1-.LSCIE1\n" | 3072 | "\t.long .LECIE1-.LSCIE1\n" |
diff --git a/src/buildvm_x64win.h b/src/buildvm_x64win.h index 9dbad9a3..fa196086 100644 --- a/src/buildvm_x64win.h +++ b/src/buildvm_x64win.h | |||
@@ -3060,7 +3060,11 @@ static void emit_asm_debug(BuildCtx *ctx) | |||
3060 | #endif | 3060 | #endif |
3061 | "\t.align " SZPTR "\n" | 3061 | "\t.align " SZPTR "\n" |
3062 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); | 3062 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); |
3063 | #ifdef __solaris__ | ||
3064 | fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n"); | ||
3065 | #else | ||
3063 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); | 3066 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); |
3067 | #endif | ||
3064 | fprintf(ctx->fp, | 3068 | fprintf(ctx->fp, |
3065 | ".Lframe1:\n" | 3069 | ".Lframe1:\n" |
3066 | "\t.long .LECIE1-.LSCIE1\n" | 3070 | "\t.long .LECIE1-.LSCIE1\n" |
diff --git a/src/buildvm_x86.dasc b/src/buildvm_x86.dasc index 6fde191d..14b47089 100644 --- a/src/buildvm_x86.dasc +++ b/src/buildvm_x86.dasc | |||
@@ -6025,7 +6025,11 @@ static void emit_asm_debug(BuildCtx *ctx) | |||
6025 | #endif | 6025 | #endif |
6026 | "\t.align " SZPTR "\n" | 6026 | "\t.align " SZPTR "\n" |
6027 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); | 6027 | ".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE); |
6028 | #ifdef __solaris__ | ||
6029 | fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n"); | ||
6030 | #else | ||
6028 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); | 6031 | fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n"); |
6032 | #endif | ||
6029 | fprintf(ctx->fp, | 6033 | fprintf(ctx->fp, |
6030 | ".Lframe1:\n" | 6034 | ".Lframe1:\n" |
6031 | "\t.long .LECIE1-.LSCIE1\n" | 6035 | "\t.long .LECIE1-.LSCIE1\n" |
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" |