Specify a base address for kernel and ntdll.
This commit is contained in:
parent
86a47c4dbd
commit
475f2336cc
|
@ -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
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ MODULE = kernel32.dll
|
|||
IMPORTLIB = libkernel32.$(IMPLIBEXT)
|
||||
IMPORTS = ntdll
|
||||
EXTRALIBS = $(LIBUNICODE) @COREFOUNDATIONLIB@
|
||||
BASEADDRESS = 0x7b800000
|
||||
|
||||
SPEC_SRCS16 = \
|
||||
comm.drv.spec \
|
||||
|
|
|
@ -6,6 +6,7 @@ VPATH = @srcdir@
|
|||
MODULE = ntdll.dll
|
||||
IMPORTLIB = libntdll.$(IMPLIBEXT)
|
||||
EXTRALIBS = $(LIBUNICODE) @IOKITLIB@
|
||||
BASEADDRESS = 0x7bc00000
|
||||
|
||||
C_SRCS = \
|
||||
atom.c \
|
||||
|
|
Loading…
Reference in New Issue