From f76e5a311ba543ae174acd3b585fb672fde8a3b5 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 4 Mar 2010 16:27:42 +0100 Subject: Allocate 32 bit memory on OSX/x64 with mmap() hinting. Must set -pagezero_size, otherwise the lower 4GB are blocked. --- src/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Makefile') 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)) 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)) -- cgit v1.2.3-55-g6feb