VirtualBox

Changeset 35018 in vbox


Ignore:
Timestamp:
Dec 13, 2010 2:46:17 PM (14 years ago)
Author:
vboxsync
Message:

Replaced ntdll.lib from the WINDDK with a mini version that avoids the CRT poison.

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r34926 r35018  
    23312331# Special SDK for the problematic NTDLL.LIB.
    23322332#
    2333 SDK_VBOX_NTDLL = Requires $(VBOX_WINDDK)
    2334 SDK_VBOX_NTDLL_LIBS ?= $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntdll.lib
    2335 SDK_VBOX_NTDLL_LIBS.x86 ?= $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/ntdll.lib
    2336 SDK_VBOX_NTDLL_LIBS.amd64 ?= $(PATH_SDK_$(VBOX_WINDDK)_LIB.amd64)/ntdll.lib
    2337 ifeq ($(KBUILD_TARGET),win)
    2338  include $(KBUILD_PATH)/sdks/$(VBOX_WINDDK).kmk
    2339 endif
     2333SDK_VBOX_NTDLL = Mini NTDLL import library, required IPRT.
     2334SDK_VBOX_NTDLL_LIBS.x86   ?= $(PATH_LIB)/RuntimeR3NtDll-x86.lib
     2335SDK_VBOX_NTDLL_LIBS.amd64 ?= $(PATH_LIB)/RuntimeR3NtDll-amd64.lib
    23402336
    23412337#
  • trunk/src/VBox/Runtime/Makefile.kmk

    r34967 r35018  
    9696 DLLS += VBoxRT
    9797endif
     98
     99
     100# Always build the ntdll import libraries on windows.
     101LIBRARIES.win += RuntimeR3NtDll-amd64 RuntimeR3NtDll-x86
     102
    98103
    99104# Where the generated stuff goes.
     
    19511956
    19521957#
     1958# The NTDLL mini import library.
     1959#
     1960# Note! The reason for doing this is to avoid importing CRT symbols from the
     1961#       NTDLL.  We do not wish to do this because:
     1962#         - Our compiler is usually a different one and we should use the
     1963#           matching CRT,
     1964#         - Older versions of NTDLL may not sport all the exports our w2k3 or
     1965#           later WINDDK ntdll.lib have and thus we may easily end up with
     1966#           images that does not load on older windows versions.
     1967#
     1968RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
     1969RuntimeR3NtDll-amd64_ARFLAGS  = /NODEFAULTLIB /MACHINE:amd64
     1970RuntimeR3NtDll-amd64_SOURCES  = \
     1971        r3/win/ntdll-mini-implib.c \
     1972        r3/win/ntdll-mini-implib.def
     1973
     1974RuntimeR3NtDll-x86_EXTENDS    = RuntimeR3NtDll-amd64
     1975RuntimeR3NtDll-x86_ARFLAGS    = /NODEFAULTLIB /MACHINE:x86
     1976
     1977
     1978#
    19531979# errmsg.cpp depends on a generated header.
    19541980#
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette