Explorar o código

Fix OSX build to work with newer ld64 versions.

Mike Pall %!s(int64=14) %!d(string=hai) anos
pai
achega
1505d6ffde
Modificáronse 4 ficheiros con 4 adicións e 0 borrados
  1. 1 0
      src/buildvm_x64.h
  2. 1 0
      src/buildvm_x64win.h
  3. 1 0
      src/buildvm_x86.dasc
  4. 1 0
      src/buildvm_x86.h

+ 1 - 0
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"

+ 1 - 0
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"

+ 1 - 0
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"

+ 1 - 0
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"