lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Geoff Leyland wrote:
> Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009;  
> root:xnu-1456.1.25~1/RELEASE_I386

Oops, that must be Snow Leopard? Sorry, but most of my changes for
OSX are guesswork, because I don't have an OSX machine.

> ld: in lj_vm.o, ObjectFileAddressSpace<A>::getEncodedP() encoding  
> 0x00000005 not supported

Looks like something is wrong with the MACH-O/DWARF2 frame unwind
info. That would explain why it gets ignored. :-|

Since I really can't debug this, just disabling it would probably
help. Please try the attached patch.

--Mike
--- a/src/buildvm_x86.dasc
+++ b/src/buildvm_x86.dasc
@@ -3649,7 +3649,7 @@ static void emit_asm_debug(BuildCtx *ctx)
 	"\t.align 4\n"
 	".LEFDE1:\n\n", (int)ctx->codesz);
     break;
-  case BUILD_machasm:
+  case BUILD_machasm+9999:
     /* NYI: OSX ignores it. Something must be missing. */
     fprintf(ctx->fp, "\t.section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support\n");
     fprintf(ctx->fp,
--- a/src/buildvm_x86.h
+++ b/src/buildvm_x86.h
@@ -1680,7 +1680,7 @@
 	"\t.align 4\n"
 	".LEFDE1:\n\n", (int)ctx->codesz);
     break;
-  case BUILD_machasm:
+  case BUILD_machasm+9999:
     /* NYI: OSX ignores it. Something must be missing. */
     fprintf(ctx->fp, "\t.section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support\n");
     fprintf(ctx->fp,