Skip to content

Commit 7dbf0b0

Browse files
author
Mike Pall
committed
Fix saved bytecode encapsulated in ELF objects.
Thanks to Dimitry Andric.
1 parent 9f0caad commit 7dbf0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jit/bcsave.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ typedef struct {
275275
o.sect[2].size = fofs(ofs)
276276
o.sect[3].type = f32(3) -- .strtab
277277
o.sect[3].ofs = fofs(sofs + ofs)
278-
o.sect[3].size = fofs(#symname+1)
278+
o.sect[3].size = fofs(#symname+2)
279279
ffi.copy(o.space+ofs+1, symname)
280280
ofs = ofs + #symname + 2
281281
o.sect[4].type = f32(1) -- .rodata

0 commit comments

Comments
 (0)