diff options
| author | Mike Pall <mike> | 2011-02-02 02:31:59 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2011-02-02 02:31:59 +0100 |
| commit | 1505d6ffde5e91716ebdd6eeb14860eeedf2bf30 (patch) | |
| tree | 2617cc90beebe59160441bc1a3e7ae2f18182f3e | |
| parent | b613216efc7447dae645d8834e4d6f3185cd1bcc (diff) | |
| download | luajit-1505d6ffde5e91716ebdd6eeb14860eeedf2bf30.tar.gz luajit-1505d6ffde5e91716ebdd6eeb14860eeedf2bf30.tar.bz2 luajit-1505d6ffde5e91716ebdd6eeb14860eeedf2bf30.zip | |
Fix OSX build to work with newer ld64 versions.
| -rw-r--r-- | src/buildvm_x64.h | 1 | ||||
| -rw-r--r-- | src/buildvm_x64win.h | 1 | ||||
| -rw-r--r-- | src/buildvm_x86.dasc | 1 | ||||
| -rw-r--r-- | src/buildvm_x86.h | 1 |
4 files changed, 4 insertions, 0 deletions
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) | |||
| 2505 | for (i = 0; i < ctx->nsym; i++) { | 2505 | for (i = 0; i < ctx->nsym; i++) { |
| 2506 | const char *name = ctx->sym[i].name; | 2506 | const char *name = ctx->sym[i].name; |
| 2507 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; | 2507 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; |
| 2508 | if (size == 0) continue; | ||
| 2508 | fprintf(ctx->fp, | 2509 | fprintf(ctx->fp, |
| 2509 | "%s.eh:\n" | 2510 | "%s.eh:\n" |
| 2510 | "LSFDE%d:\n" | 2511 | "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) | |||
| 2505 | for (i = 0; i < ctx->nsym; i++) { | 2505 | for (i = 0; i < ctx->nsym; i++) { |
| 2506 | const char *name = ctx->sym[i].name; | 2506 | const char *name = ctx->sym[i].name; |
| 2507 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; | 2507 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; |
| 2508 | if (size == 0) continue; | ||
| 2508 | fprintf(ctx->fp, | 2509 | fprintf(ctx->fp, |
| 2509 | "%s.eh:\n" | 2510 | "%s.eh:\n" |
| 2510 | "LSFDE%d:\n" | 2511 | "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) | |||
| 5542 | for (i = 0; i < ctx->nsym; i++) { | 5542 | for (i = 0; i < ctx->nsym; i++) { |
| 5543 | const char *name = ctx->sym[i].name; | 5543 | const char *name = ctx->sym[i].name; |
| 5544 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; | 5544 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; |
| 5545 | if (size == 0) continue; | ||
| 5545 | fprintf(ctx->fp, | 5546 | fprintf(ctx->fp, |
| 5546 | "%s.eh:\n" | 5547 | "%s.eh:\n" |
| 5547 | "LSFDE%d:\n" | 5548 | "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) | |||
| 2639 | for (i = 0; i < ctx->nsym; i++) { | 2639 | for (i = 0; i < ctx->nsym; i++) { |
| 2640 | const char *name = ctx->sym[i].name; | 2640 | const char *name = ctx->sym[i].name; |
| 2641 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; | 2641 | int32_t size = ctx->sym[i+1].ofs - ctx->sym[i].ofs; |
| 2642 | if (size == 0) continue; | ||
| 2642 | fprintf(ctx->fp, | 2643 | fprintf(ctx->fp, |
| 2643 | "%s.eh:\n" | 2644 | "%s.eh:\n" |
| 2644 | "LSFDE%d:\n" | 2645 | "LSFDE%d:\n" |
