From: Mike Pall Date: Wed, 2 Feb 2011 01:31:59 +0000 (+0100) Subject: Fix OSX build to work with newer ld64 versions. X-Git-Tag: v2.0.0-beta6~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1505d6ffde5e91716ebdd6eeb14860eeedf2bf30;p=thirdparty%2FLuaJIT.git Fix OSX build to work with newer ld64 versions. --- diff --git a/src/buildvm_x64.h b/src/buildvm_x64.h index 5739e65a..ce6ca830 100644 --- a/src/buildvm_x64.h +++ b/src/buildvm_x64.h @@ -2505,6 +2505,7 @@ static void emit_asm_debug(BuildCtx *ctx) for (i = 0; i < ctx->nsym; i++) { const char *name = ctx->sym[i].name; int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; + if (size == 0) continue; fprintf(ctx->fp, "%s.eh:\n" "LSFDE%d:\n" diff --git a/src/buildvm_x64win.h b/src/buildvm_x64win.h index 578bc904..33083596 100644 --- a/src/buildvm_x64win.h +++ b/src/buildvm_x64win.h @@ -2505,6 +2505,7 @@ static void emit_asm_debug(BuildCtx *ctx) for (i = 0; i < ctx->nsym; i++) { const char *name = ctx->sym[i].name; int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; + if (size == 0) continue; fprintf(ctx->fp, "%s.eh:\n" "LSFDE%d:\n" diff --git a/src/buildvm_x86.dasc b/src/buildvm_x86.dasc index 1ef3d4d9..268aa5d4 100644 --- a/src/buildvm_x86.dasc +++ b/src/buildvm_x86.dasc @@ -5542,6 +5542,7 @@ static void emit_asm_debug(BuildCtx *ctx) for (i = 0; i < ctx->nsym; i++) { const char *name = ctx->sym[i].name; int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; + if (size == 0) continue; fprintf(ctx->fp, "%s.eh:\n" "LSFDE%d:\n" diff --git a/src/buildvm_x86.h b/src/buildvm_x86.h index abdadbe2..7c5e1bc0 100644 --- a/src/buildvm_x86.h +++ b/src/buildvm_x86.h @@ -2639,6 +2639,7 @@ static void emit_asm_debug(BuildCtx *ctx) for (i = 0; i < ctx->nsym; i++) { const char *name = ctx->sym[i].name; int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; + if (size == 0) continue; fprintf(ctx->fp, "%s.eh:\n" "LSFDE%d:\n"