Fix generation of ELF object files. Already present upstream.
ok jsg@
This commit is contained in:
parent
afbfcf434a
commit
c302170743
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2018/08/21 16:20:40 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.29 2018/10/22 19:16:25 kettenis Exp $
|
||||
|
||||
# ../src/luajit2/src/lj_arch.h:55:2: error: #error "No support for
|
||||
# this architecture (yet)"
|
||||
@ -11,7 +11,7 @@ SHARED_LIBS += luajit-${MODLUA_VERSION} 1.0 # 2.0.5
|
||||
|
||||
COMMENT = just-in-time compiler for Lua
|
||||
V = 2.0.5
|
||||
REVISION = 0
|
||||
REVISION = 1
|
||||
DISTNAME = LuaJIT-${V}
|
||||
PKGNAME = ${DISTNAME:L}
|
||||
|
||||
|
14
lang/luajit/patches/patch-src_jit_bcsave_lua
Normal file
14
lang/luajit/patches/patch-src_jit_bcsave_lua
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_jit_bcsave_lua,v 1.1 2018/10/22 19:16:25 kettenis Exp $
|
||||
|
||||
Index: src/jit/bcsave.lua
|
||||
--- src/jit/bcsave.lua.orig
|
||||
+++ 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
|
Loading…
Reference in New Issue
Block a user