diff options
author | Mike Pall <mike> | 2010-03-04 16:27:42 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-03-04 16:27:42 +0100 |
commit | f76e5a311ba543ae174acd3b585fb672fde8a3b5 (patch) | |
tree | 98b04ad6e7c3e9b793353328ea589879b6f57f29 /src/Makefile | |
parent | 3d2abf3148c2280b0fd018cd179acd30099c5ed7 (diff) | |
download | luajit-f76e5a311ba543ae174acd3b585fb672fde8a3b5.tar.gz luajit-f76e5a311ba543ae174acd3b585fb672fde8a3b5.tar.bz2 luajit-f76e5a311ba543ae174acd3b585fb672fde8a3b5.zip |
Allocate 32 bit memory on OSX/x64 with mmap() hinting.
Must set -pagezero_size, otherwise the lower 4GB are blocked.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index a9ad8eb9..9a071246 100644 --- a/src/Makefile +++ b/src/Makefile | |||
@@ -227,6 +227,9 @@ ifeq (Darwin,$(TARGET_SYS)) | |||
227 | TARGET_DYNXLDOPTS= | 227 | TARGET_DYNXLDOPTS= |
228 | TARGET_XSHLDFLAGS+= -install_name $(PREFIX)/lib/$(TARGET_DYLIBNAME) | 228 | TARGET_XSHLDFLAGS+= -install_name $(PREFIX)/lib/$(TARGET_DYLIBNAME) |
229 | endif | 229 | endif |
230 | ifeq (x64,$(TARGET_CCARCH)) | ||
231 | TARGET_XLDFLAGS+= -pagezero_size 10000 -image_base 100000000 | ||
232 | endif | ||
230 | else | 233 | else |
231 | TARGET_XLDFLAGS+= -Wl,-E | 234 | TARGET_XLDFLAGS+= -Wl,-E |
232 | ifeq (Linux,$(TARGET_SYS)) | 235 | ifeq (Linux,$(TARGET_SYS)) |