VirtualBox

Ignore:
Timestamp:
Apr 12, 2024 7:01:35 PM (9 months ago)
Author:
vboxsync
Message:

VMM/testcase/Makefile.kmk: eliminate the last use of nm on Windows host, replace it by dumpbin in combination with slightly different sed patterns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/Makefile.kmk

    r103684 r104325  
    10181018                $(VMM_COMMON_DEFS) \
    10191019                ) \
    1020         -f $(if $(eq $(KBUILD_TARGET),darwin),macho,elf) \
     1020        -f $(if $(eq $(KBUILD_TARGET),darwin),macho,$(if $(eq $(KBUILD_TARGET),win),coff,elf)) \
    10211021        $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(VBOX_PATH_VMM_SRC)/include $(VBOX_VMM_TESTCASE_OUT_DIR) \
    10221022                ,-I$(inc)/)
     
    10811081        $(call MSG_GENERATE,tstVMStructSize,$@,$<)
    10821082        $(QUIET)$(RM) -f $@ [email protected] [email protected]
     1083ifeq ($(KBUILD_TARGET),win)
     1084        $(QUIET)$(REDIRECT) -wo [email protected] -- $(TOOL_$(VBOX_VCC_TOOL)_DUMPBIN) /nologo /symbols $<
     1085        $(QUIET)$(SED) \
     1086                -e '/STAMPROFILEADV/d' \
     1087                \
     1088                -e '/^[0-9a-fA-F]\{1,\} 00[0-9a-fA-F]* ABS *notype *External *| [^.]\{1,\}\./!d' \
     1089                -e 's/^[0-9a-fA-F]\{1,\} \(00[0-9a-fA-F]*\) ABS *notype *External *| \([^.]\{1,\}\)\.\(.*$$\)/    CHECK_OFF(\2, 0x0\1, \3);/' \
     1090                --output [email protected] [email protected]
     1091        $(QUIET)$(SED) \
     1092                -e '/VM_size$$/d' \
     1093                -e '/VMCPU_size$$/d' \
     1094                -e '/VMMCPU_size$$/d' \
     1095                -e '/SUPDRVTRACERUSRCTX32_size$$/d' \
     1096                -e '/HMCPU_size$$/d' \
     1097                -e '/SUPGLOBALINFOPAGE_size$$/d' \
     1098                \
     1099                -e '/^[0-9a-fA-F]\{1,\} 00[0-9a-fA-F]* ABS *notype *External *| [^_.]\{1,\}_size$$/!d' \
     1100                -e 's/^[0-9a-fA-F]\{1,\} \(00[0-9a-fA-F]*\) ABS *notype *External *| \([^_.]\{1,\}\)_size$$/    CHECK_SIZE(\2, 0x0\1);/' \
     1101                --append [email protected] [email protected]
     1102else
    10831103        $(QUIET)$(REDIRECT) -wo [email protected] -- $(VBOX_NM) $<
    10841104        $(QUIET)$(SED) \
     
    10991119                -e 's/^\(0x\)\{0,1\}\(00[0-9a-fA-F]*\) [aAnN] \([^_.]*\)_size/    CHECK_SIZE(\3, 0x0\2);/' \
    11001120                --append [email protected] [email protected]
     1121endif
    11011122        $(QUIET)$(MV) -f [email protected] $@
    1102         $(QUIET)$(RM) -f [email protected]
     1123        #$(QUIET)$(RM) -f [email protected]
    11031124
    11041125# 3. run it.
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