VirtualBox

Changeset 60596 in vbox


Ignore:
Timestamp:
Apr 20, 2016 11:39:45 AM (8 years ago)
Author:
vboxsync
Message:

bs3kit: switched the default 16-bit model from compact (small code, far data) to large (far code, far data) so we won't die when using compiler intrinsics outside CGROUP16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/Config.kmk

    r60585 r60596  
    564564#       -zu                    Assume SS != DS.
    565565#       -mc                    Compact memory model, far data, small code.
     566#       -ml                    Large memory model, far data, far code.
    566567#       -mf                    Flat memory model (32-bit).
    567568#       -d+                    Enabled better /dVAR=XXX parsing, using space as delimiter instead of alpha-numerical/whatever.
     
    589590TEMPLATE_VBoxBS3KitImg_ASTOOL       = VBoxNasm
    590591TEMPLATE_VBoxBS3KitImg_ASFLAGS      = -f obj -g $(BS3KIT_NASM_allow_64_bit) -w+orphan-labels
    591 TEMPLATE_VBoxBS3KitImg_ASDEFS       = ASM_FORMAT_OMF RT_NOINC_SEGMENTS __NASM__ ARCH_BITS=16 RT_ARCH_X86 \
     592TEMPLATE_VBoxBS3KitImg_ASDEFS       = ASM_FORMAT_OMF RT_NOINC_SEGMENTS __NASM__ ARCH_BITS=16 RT_ARCH_X86 ASM_MODEL_FAR_CODE \
    592593        BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
    593594         BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
     
    600601TEMPLATE_VBoxBS3KitImg_CXXTOOL      = Bs3Ow16
    601602TEMPLATE_VBoxBS3KitImg_CFLAGS       = $(if $(BS3KIT_SEGNM_DATA16),-nd=$(BS3KIT_SEGNM_DATA16),) \
    602         -nt=BS3TEXT16 -nc=$(BS3KIT_CLASS_CODE16) -ecc -q -0 -wx -zl -zdp -zu -mc $(BS3_OW_DBG_OPT) -s -oa -ob -of -oi -ol -or -os -d+
     603        -nt=BS3TEXT16 -nc=$(BS3KIT_CLASS_CODE16) -ecc -q -0 -wx -zl -zdp -zu -ml $(BS3_OW_DBG_OPT) -s -oa -ob -of -oi -ol -or -os -d+
    603604TEMPLATE_VBoxBS3KitImg_CXXFLAGS     = $(if $(BS3KIT_SEGNM_DATA16),-nd=$(BS3KIT_SEGNM_DATA16),) \
    604         -nt=BS3TEXT16 -nc=$(BS3KIT_CLASS_CODE16) -ecc -q -0 -wx -zl -zdp -zu -mc $(BS3_OW_DBG_OPT) -s -oa -ob -of -oi -ol -or -os -d+
     605        -nt=BS3TEXT16 -nc=$(BS3KIT_CLASS_CODE16) -ecc -q -0 -wx -zl -zdp -zu -ml $(BS3_OW_DBG_OPT) -s -oa -ob -of -oi -ol -or -os -d+
    605606TEMPLATE_VBoxBS3KitImg_CDEFS        = ARCH_BITS=16 RT_ARCH_X86
    606607
     
    618619TEMPLATE_VBoxBS3KitImg_INCS         = $(VBOX_PATH_BS3KIT_SRC) .
    619620TEMPLATE_VBoxBS3KitImg_LDTOOL       = OPENWATCOM-WL
    620 #       option quiet, nofarcalls\
    621 #       disable 1014, 1023, 2120, 1080
    622621
    623622# linker options:
     
    629628#      option symfile:             Produce a separate symbol file with the debug info.
    630629#      option map:                 Produce a map file.
     630#      option farcalls:            Change intrasegment far calls into 'push cs; seg ds; call symbol' where possible.
    631631#      option statics:             ?
    632632#      option verbose:             Verbose map file?
    633 #       option disable 1014:        Disable warning about
    634 #       option disable 1080:        Disable warning about
    635 #       option disable 1150:        Disable warning about
     633#       option disable 1014:        Disable warning about 'stack segment not found'.
     634#       option disable 1080:        Disable warning about '%1 is a 32-bit object file'.
    636635#
    637636# Note! We're pushing DATA16 to 0x20000 because it's impossible to force wlink
     
    640639TEMPLATE_VBoxBS3KitImg_LDFLAGS  = system dos \
    641640        debug $(BS3_OW_DBG_LDOPT) all \
    642         option quiet, map, statics, verbose, symfile, start=_start \
    643        disable 1014, 1080, 1150 \
     641        option quiet, map, statics, verbose, symfile, start=_start, farcalls \
     642       disable 1014, 1080 \
    644643        \
    645644        output raw offset=0x10000 \
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