From cbefb1ff09dea52d0ca08ef1931f99b90897ca51 Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Sun, 12 May 2013 00:29:30 +0100 Subject: [PATCH] Forcing mlw.dll to load at a low address so that it's possible to store its entry points in MLWorks integers with two-bit tags. This allows us to load and run images from MLWorks 2.0. --- src/rts/GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rts/GNUmakefile b/src/rts/GNUmakefile index 5ffbbc2f..3e842f5d 100755 --- a/src/rts/GNUmakefile +++ b/src/rts/GNUmakefile @@ -608,7 +608,7 @@ $(TARGETDIR)/libmlw: $(DLLOBJECTS) @echo 'MAKE: $@' @$(MKDIR) $(TARGETDIR) $(MKDIREND) ifeq "$(NTTYPE)" "TRUE" - @$(LINK) /LD $(LINKFLAGS)$@ $(DLLOBJECTS) $(DLLLIBRARIES) $(LIBRARIES) $(LINKENDFLAGS) /SUBSYSTEM:console + @$(LINK) /LD $(LINKFLAGS)$@ $(DLLOBJECTS) $(DLLLIBRARIES) $(LIBRARIES) $(LINKENDFLAGS) /SUBSYSTEM:console /FIXED /BASE:0x800000 else # for the sole benefit of Irix 5.1 OS, we have to name the shared library # "libmlw.so" rather than "bin/MIPS/Irix/libmlw.so", otherwise at @@ -624,7 +624,7 @@ $(TARGETDIR)/libmlw-g: $(DLLOBJECTSDEBUG) @echo 'MAKE: $@' @$(MKDIR) $(TARGETDIR) $(MKDIREND) ifeq "$(NTTYPE)" "TRUE" - @$(LINK) /LDd $(LINKFLAGSDEBUG)$@ $(DLLOBJECTSDEBUG) $(DLLLIBRARIES) $(LIBRARIES) $(LINKENDFLAGSDEBUG) /SUBSYSTEM:console + $(LINK) /LDd $(LINKFLAGSDEBUG)$@ $(DLLOBJECTSDEBUG) $(DLLLIBRARIES) $(LIBRARIES) $(LINKENDFLAGSDEBUG) /SUBSYSTEM:console /FIXED /BASE:0x800000 @bscmake /oruntime-g.bsc $(DLLOBJECTSSBR) else #see note in libmlw target