forked from pool/luajit
* Change handling of nil value markers in template tables. * REVERT: Change handling of nil value markers in template tables. * macOS: Fix Apple hardened runtime support and put behind build option. * macOS: Fix support for Apple hardened runtime. * Fix handling of nil value markers in template tables. * Avoid unpatching bytecode twice after a trace flush. * Fix state restore when recording __concat metamethod. * Windows: Allow mixed builds with msvcbuild.bat. * macOS: Add suport for Apple hardened runtime. * Add compatibility string coercion for fp:seek() argument. * Windows: Clarify installation directory layout. * Remove Cygwin from docs, since it's not a supported target. * Improve CLI signal handling on POSIX. * FFI: Add pre-declared int128_t, uint128_t, __int128 types. * Use dylib extension for iOS installs, too. * Change handling of nil value markers in template tables. * Fix recording of BC_VARG. * Reject negative getfenv()/setfenv() levels to prevent compiler warning. * Bump copyright date. * Force fallback source name for stripped bytecode. * Remove dependency on <limits.h>. * Restore state when recording __concat metamethod throws OOM. * MIPS64: Fix pcall() error case. * Fix detection of inconsistent renames due to sunk values.
52 lines
2.1 KiB
Diff
52 lines
2.1 KiB
Diff
From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <ondrej@sury.org>
|
|
Date: Thu, 19 Nov 2015 16:29:02 +0200
|
|
Subject: Get rid of LUAJIT_VERSION_SYM that changes ABI on every patch release
|
|
|
|
---
|
|
src/lj_dispatch.c | 5 -----
|
|
src/luajit.c | 1 -
|
|
src/luajit_rolling.h | 3 ---
|
|
3 files changed, 9 deletions(-)
|
|
|
|
Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/lj_dispatch.c
|
|
===================================================================
|
|
--- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/lj_dispatch.c 2025-03-11 23:04:30.000000000 +0100
|
|
+++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/lj_dispatch.c 2025-03-25 17:07:26.955530316 +0100
|
|
@@ -318,11 +318,6 @@
|
|
return 1; /* OK. */
|
|
}
|
|
|
|
-/* Enforce (dynamic) linker error for version mismatches. See luajit.c. */
|
|
-LUA_API void LUAJIT_VERSION_SYM(void)
|
|
-{
|
|
-}
|
|
-
|
|
/* -- Hooks --------------------------------------------------------------- */
|
|
|
|
/* This function can be called asynchronously (e.g. during a signal). */
|
|
Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit.c
|
|
===================================================================
|
|
--- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/luajit.c 2025-03-11 23:04:30.000000000 +0100
|
|
+++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit.c 2025-03-25 17:07:26.956030878 +0100
|
|
@@ -530,7 +530,6 @@
|
|
int argn;
|
|
int flags = 0;
|
|
globalL = L;
|
|
- LUAJIT_VERSION_SYM(); /* Linker-enforced version check. */
|
|
|
|
argn = collectargs(argv, &flags);
|
|
if (argn < 0) { /* Invalid args? */
|
|
Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit_rolling.h
|
|
===================================================================
|
|
--- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/luajit_rolling.h 2025-03-11 23:04:30.000000000 +0100
|
|
+++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit_rolling.h 2025-03-25 17:07:26.956298722 +0100
|
|
@@ -73,8 +73,5 @@
|
|
LUA_API const char *luaJIT_profile_dumpstack(lua_State *L, const char *fmt,
|
|
int depth, size_t *len);
|
|
|
|
-/* Enforce (dynamic) linker error for version mismatches. Call from main. */
|
|
-LUA_API void LUAJIT_VERSION_SYM(void);
|
|
-
|
|
#error "DO NOT USE luajit_rolling.h -- only include build-generated luajit.h"
|
|
#endif
|