Mike Pall wrote: > Not sure how to fix that. Maybe give lj_vm_as_begin a size that > overlaps the whole assembler code? Try this change in emit_asm(): > > emit_asm_label(ctx, ctx->beginsym, ctx->codesz, 0); I just tried it and that seems to work beautifully. I can now enable the --strip-unused options and the LuaJIT assembly code is still intact. Thanks a lot. // Niklas