Skip to content

Commit

Permalink
Forcing mlw.dll to load at a low address so that it's possible to sto…
Browse files Browse the repository at this point in the history
…re its entry points in MLWorks integers with two-bit tags. This allows us to load and run images from MLWorks 2.0.
  • Loading branch information
rptb1 committed May 11, 2013
1 parent 99f2212 commit cbefb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rts/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

1 comment on commit cbefb1f

@rptb1
Copy link
Member Author

@rptb1 rptb1 commented on cbefb1f May 11, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.