VirtualBox

Ignore:
Timestamp:
Jan 16, 2022 11:15:57 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149316
Message:

/Config.kmk,Support/Makefile.kmk: Extra 5 support files from libcmt.lib for use with SUPR3HardeningStatic that allows us to compile with /GS and /guard. This also includes a load config. bugref:10162

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r93239 r93254  
    432432  SUPR3HardenedStatic_SOURCES.win += \
    433433        $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/chkstk.obj
     434
     435  # And a few extracted from the static libc to support -guard and cookes.
     436  # In 14.2 these files does not import anything from the win32 API and are
     437  # mostly tiny bits of code. Needs not initialization that I can spot.
     438  ifneq ($(VBOX_VCC_LD_GUARD_CF),)
     439   SUPR3HardenedStatic_SOURCES.win += \
     440        $(SUPR3HardenedStatic_0_OUTDIR)/loadcfg.obj \
     441        $(SUPR3HardenedStatic_0_OUTDIR)/gs_cookie.obj \
     442        $(SUPR3HardenedStatic_0_OUTDIR)/guard_support.obj \
     443        $(SUPR3HardenedStatic_0_OUTDIR)/guard_dispatch.obj \
     444        $(SUPR3HardenedStatic_0_OUTDIR)/guard_xfg_dispatch.obj
     445
     446$$(SUPR3HardenedStatic_0_OUTDIR)/loadcfg.obj \
     447$$(SUPR3HardenedStatic_0_OUTDIR)/gs_cookie.obj \
     448$$(SUPR3HardenedStatic_0_OUTDIR)/guard_support.obj \
     449$$(SUPR3HardenedStatic_0_OUTDIR)/guard_dispatch.obj \
     450$$(SUPR3HardenedStatic_0_OUTDIR)/guard_xfg_dispatch.obj \
     451        : \
     452                $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/libcmt.lib | $$(dir $$@)
     453        set -x; $(TOOL_$(VBOX_VCC_TOOL)_AR) "/EXTRACT:$$($(TOOL_$(VBOX_VCC_TOOL)_AR) /LIST "$<" | $(SED_EXT) -e '/$(notdir $@)/!d' )" "/OUT:$@" "$<"
     454  endif
    434455 endif
    435456endif
Note: See TracChangeset for help on using the changeset viewer.

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