Przeglądaj źródła

Fix OSX build to work with newer ld64 versions.

Mike Pall 14 lat temu
rodzic
commit
1505d6ffde
4 zmienionych plików z 4 dodań i 0 usunięć
  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"