Make .eh_frame section read-write on Solaris.

This commit is contained in:
Mike Pall 2011-06-11 15:56:00 +02:00
parent 27d8d3b5d9
commit a58eb604f4
4 changed files with 16 additions and 0 deletions

View File

@ -3062,7 +3062,11 @@ static void emit_asm_debug(BuildCtx *ctx)
#endif
"\t.align " SZPTR "\n"
".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE);
#ifdef __solaris__
fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n");
#else
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n");
#endif
fprintf(ctx->fp,
".Lframe1:\n"
"\t.long .LECIE1-.LSCIE1\n"

View File

@ -3060,7 +3060,11 @@ static void emit_asm_debug(BuildCtx *ctx)
#endif
"\t.align " SZPTR "\n"
".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE);
#ifdef __solaris__
fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n");
#else
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n");
#endif
fprintf(ctx->fp,
".Lframe1:\n"
"\t.long .LECIE1-.LSCIE1\n"

View File

@ -6025,7 +6025,11 @@ static void emit_asm_debug(BuildCtx *ctx)
#endif
"\t.align " SZPTR "\n"
".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE);
#ifdef __solaris__
fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n");
#else
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n");
#endif
fprintf(ctx->fp,
".Lframe1:\n"
"\t.long .LECIE1-.LSCIE1\n"

View File

@ -3219,7 +3219,11 @@ static void emit_asm_debug(BuildCtx *ctx)
#endif
"\t.align " SZPTR "\n"
".LEFDE0:\n\n", (int)ctx->codesz, CFRAME_SIZE);
#ifdef __solaris__
fprintf(ctx->fp, "\t.section .eh_frame,\"aw\",@progbits\n");
#else
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",@progbits\n");
#endif
fprintf(ctx->fp,
".Lframe1:\n"
"\t.long .LECIE1-.LSCIE1\n"