Specify a base address for kernel and ntdll.

This commit is contained in:
Alexandre Julliard 2005-08-09 11:19:01 +00:00
parent 86a47c4dbd
commit 475f2336cc
3 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,7 @@ all: $(MODULE)$(DLLEXT) $(SUBDIRS)
# Rules for .so files
$(MODULE).so: $(MAINSPEC) $(ALL_OBJS) Makefile.in
$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -shared $(SRCDIR)/$(MAINSPEC) $(ALL_OBJS) $(SUBSYSTEM:%=-Wb,--subsystem,%) -o $@ $(DLL_LDPATH) $(ALL_IMPORTS:%=-l%) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
$(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -shared $(SRCDIR)/$(MAINSPEC) $(ALL_OBJS) $(SUBSYSTEM:%=-Wb,--subsystem,%) $(BASEADDRESS:%=-Wl,--image-base,%) -o $@ $(DLL_LDPATH) $(ALL_IMPORTS:%=-l%) $(DELAYIMPORTS:%=-Wb,-d%) $(ALL_LIBS)
# Rules for .dll files

View File

@ -7,6 +7,7 @@ MODULE = kernel32.dll
IMPORTLIB = libkernel32.$(IMPLIBEXT)
IMPORTS = ntdll
EXTRALIBS = $(LIBUNICODE) @COREFOUNDATIONLIB@
BASEADDRESS = 0x7b800000
SPEC_SRCS16 = \
comm.drv.spec \

View File

@ -6,6 +6,7 @@ VPATH = @srcdir@
MODULE = ntdll.dll
IMPORTLIB = libntdll.$(IMPLIBEXT)
EXTRALIBS = $(LIBUNICODE) @IOKITLIB@
BASEADDRESS = 0x7bc00000
C_SRCS = \
atom.c \