Allocate 32 bit memory on OSX/x64 with mmap() hinting.

Must set -pagezero_size, otherwise the lower 4GB are blocked.
This commit is contained in:
Mike Pall
2010-03-04 16:27:42 +01:00
parent 3d2abf3148
commit f76e5a311b
2 changed files with 43 additions and 5 deletions

View File

@@ -227,6 +227,9 @@ ifeq (Darwin,$(TARGET_SYS))
TARGET_DYNXLDOPTS=
TARGET_XSHLDFLAGS+= -install_name $(PREFIX)/lib/$(TARGET_DYLIBNAME)
endif
ifeq (x64,$(TARGET_CCARCH))
TARGET_XLDFLAGS+= -pagezero_size 10000 -image_base 100000000
endif
else
TARGET_XLDFLAGS+= -Wl,-E
ifeq (Linux,$(TARGET_SYS))