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:
parent
5fde07c211
commit
c52f9162c4
3 changed files with 20 additions and 9 deletions
2
all.h
2
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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue