misc fixes for osx

With the default toolchain, it looks like we have to
make sure all symbols are loaded using rip-relative
addressing.
This commit is contained in:
Quentin Carbonneaux 2017-04-07 19:42:47 -04:00
parent 5fde07c211
commit c52f9162c4
3 changed files with 20 additions and 9 deletions

2
all.h
View file

@ -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}