VirtualBox

Changeset 77144 in vbox


Ignore:
Timestamp:
Feb 2, 2019 12:06:38 PM (6 years ago)
Author:
vboxsync
Message:

Config.kmk: Add -ffreestanding to TEMPLATE_VBoxR0_CXXFLAGS.amd64 to avoid compilers from emitting builtins like memcpy (fixes non resolvable memcpy import in VBoxDDR0.r0 on FreeBSD)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r77134 r77144  
    44004400TEMPLATE_VBoxR0_CXXFLAGS            = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) -fno-rtti $(VBOX_GCC_IPRT_FMT_CHECK)
    44014401TEMPLATE_VBoxR0_CFLAGS.amd64        = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables -ffreestanding
    4402 TEMPLATE_VBoxR0_CXXFLAGS.amd64      = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables
     4402TEMPLATE_VBoxR0_CXXFLAGS.amd64      = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables -ffreestanding
    44034403 if $(VBOX_GCC_VERSION_CC) < 30400
    44044404  TEMPLATE_VBoxR0_DEFS             += RT_WITHOUT_PRAGMA_ONCE
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