These are bug fixes from the 2.1 branch in the official LuaJIT repository that never made it into a release since there have been none since 2.1.0-beta3.
26 lines
771 B
Diff
26 lines
771 B
Diff
From 7dbf0b05f1228c1c719866db5e5f3d58f87f74c8 Mon Sep 17 00:00:00 2001
|
|
From: Mike Pall <mike>
|
|
Date: Thu, 16 Nov 2017 12:58:12 +0100
|
|
Subject: [PATCH 23/72] Fix saved bytecode encapsulated in ELF objects.
|
|
|
|
Thanks to Dimitry Andric.
|
|
---
|
|
src/jit/bcsave.lua | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/jit/bcsave.lua b/src/jit/bcsave.lua
|
|
index aa677df..c94064e 100644
|
|
--- a/src/jit/bcsave.lua
|
|
+++ b/src/jit/bcsave.lua
|
|
@@ -275,7 +275,7 @@ typedef struct {
|
|
o.sect[2].size = fofs(ofs)
|
|
o.sect[3].type = f32(3) -- .strtab
|
|
o.sect[3].ofs = fofs(sofs + ofs)
|
|
- o.sect[3].size = fofs(#symname+1)
|
|
+ o.sect[3].size = fofs(#symname+2)
|
|
ffi.copy(o.space+ofs+1, symname)
|
|
ofs = ofs + #symname + 2
|
|
o.sect[4].type = f32(1) -- .rodata
|
|
--
|
|
2.20.1
|
|
|