summary refs log tree commit diff
path: root/all.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2017-04-07 19:42:47 -0400
committerQuentin Carbonneaux <quentin@c9x.me>2017-04-08 22:23:40 -0400
commitc52f9162c4d35f3b55001d7337d618184961966f (patch)
tree1e8821420c11d79cdb9d40c440984c78a2ea1a1f /all.h
parent5fde07c211848adc5b220500b257a6a9b8ef50f8 (diff)
downloadroux-c52f9162c4d35f3b55001d7337d618184961966f.tar.gz
misc fixes for osx
With the default toolchain, it looks like we have to
make sure all symbols are loaded using rip-relative
addressing.
Diffstat (limited to 'all.h')
-rw-r--r--all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/all.h b/all.h
index 8cbec63..56c0ef9 100644
--- a/all.h
+++ b/all.h
@@ -86,7 +86,7 @@ enum {
 #define TMP(x)   (Ref){RTmp, x}
 #define CON(x)   (Ref){RCon, x}
 #define CON_Z    CON(0)          /* reserved zero constant */
-#define SLOT(x)  (Ref){RSlot, x}
+#define SLOT(x)  (Ref){RSlot, (x)&0x1fffffff}
 #define TYPE(x)  (Ref){RType, x}
 #define CALL(x)  (Ref){RCall, x}
 #define MEM(x)   (Ref){RMem, x}