summaryrefslogtreecommitdiff
path: root/src/host/buildvm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2014-12-08 01:58:05 +0100
committerMike Pall <mike>2014-12-08 01:58:05 +0100
commite03df1e3395bc719d43bd9196d0290757f992b2f (patch)
tree98a2a827c4b83900e7b330d82c5d369caf642db4 /src/host/buildvm.c
parentf49c61a2776ae9abeb2297dbc3b53ea2962ad750 (diff)
downloadluajit-e03df1e3395bc719d43bd9196d0290757f992b2f.tar.gz
luajit-e03df1e3395bc719d43bd9196d0290757f992b2f.tar.bz2
luajit-e03df1e3395bc719d43bd9196d0290757f992b2f.zip
x86/x64: Call external symbols directly from interpreter code.
Except for ELF/x86 PIC, where it's easier to use wrappers.
Diffstat (limited to 'src/host/buildvm.c')
-rw-r--r--src/host/buildvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/buildvm.c b/src/host/buildvm.c
index 37b20ae2..d56c65ca 100644
--- a/src/host/buildvm.c
+++ b/src/host/buildvm.c
@@ -179,6 +179,7 @@ static int build_code(BuildCtx *ctx)
179 ctx->nreloc = 0; 179 ctx->nreloc = 0;
180 180
181 ctx->globnames = globnames; 181 ctx->globnames = globnames;
182 ctx->extnames = extnames;
182 ctx->relocsym = (const char **)malloc(NRELOCSYM*sizeof(const char *)); 183 ctx->relocsym = (const char **)malloc(NRELOCSYM*sizeof(const char *));
183 ctx->nrelocsym = 0; 184 ctx->nrelocsym = 0;
184 for (i = 0; i < (int)NRELOCSYM; i++) relocmap[i] = -1; 185 for (i = 0; i < (int)NRELOCSYM; i++) relocmap[i] = -1;