Line
Link Here
|
0 |
-- VirtualBox-5.1.20/Config.kmk |
0 |
++ VirtualBox-5.1.20/Config.kmk |
Lines 2590-2595
Link Here
|
2590 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-overlength-strings?= $(call VBOX_GCC_CHECK_CC,-Wno-overlength-strings,)' |
2590 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-overlength-strings?= $(call VBOX_GCC_CHECK_CC,-Wno-overlength-strings,)' |
2591 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-overloaded-virtual?= $(call VBOX_GCC_CHECK_CXX,-Wno-overloaded-virtual,)' |
2591 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-overloaded-virtual?= $(call VBOX_GCC_CHECK_CXX,-Wno-overloaded-virtual,)' |
2592 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-stack-protector ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)' |
2592 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-stack-protector ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)' |
|
|
2593 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_nopie ?= $(call VBOX_GCC_CHECK_CC,-nopie,)' |
2593 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-dwarf2-cfi-asm ?= $(call VBOX_GCC_CHECK_CC,-fno-dwarf2-cfi-asm,)' |
2594 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-dwarf2-cfi-asm ?= $(call VBOX_GCC_CHECK_CC,-fno-dwarf2-cfi-asm,)' |
2594 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_m64 ?= $(call VBOX_GCC_CHECK_CC,-m64,)' |
2595 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_m64 ?= $(call VBOX_GCC_CHECK_CC,-m64,)' |
2595 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_no-pie ?= $(call VBOX_GCC_CHECK_CC,-no-pie,)' |
2596 |
$(QUIET)$(APPEND) '$@' 'VBOX_GCC_no-pie ?= $(call VBOX_GCC_CHECK_CC,-no-pie,)' |
Lines 3825-3832
Link Here
|
3825 |
|
3826 |
|
3826 |
ifeq ($(VBOX_LDR_FMT32),elf) |
3827 |
ifeq ($(VBOX_LDR_FMT32),elf) |
3827 |
TEMPLATE_VBoxRc_TOOL = $(VBOX_GCC32_TOOL) |
3828 |
TEMPLATE_VBoxRc_TOOL = $(VBOX_GCC32_TOOL) |
3828 |
TEMPLATE_VBoxRc_CXXFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) -fno-rtti $(VBOX_GCC_IPRT_FMT_CHECK) |
3829 |
TEMPLATE_VBoxRc_CXXFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) -fno-rtti $(VBOX_GCC_IPRT_FMT_CHECK) |
3829 |
TEMPLATE_VBoxRc_CFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_IPRT_FMT_CHECK) |
3830 |
TEMPLATE_VBoxRc_CFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_IPRT_FMT_CHECK) |
3830 |
ifeq ($(KBUILD_TARGET),solaris) |
3831 |
ifeq ($(KBUILD_TARGET),solaris) |
3831 |
TEMPLATE_VBoxRc_LDFLAGS = -r |
3832 |
TEMPLATE_VBoxRc_LDFLAGS = -r |
3832 |
else |
3833 |
else |
Lines 3846-3853
Link Here
|
3846 |
ifeq ($(VBOX_LDR_FMT32),macho) |
3847 |
ifeq ($(VBOX_LDR_FMT32),macho) |
3847 |
TEMPLATE_VBoxRc_TOOL = $(VBOX_GCC_TOOL) |
3848 |
TEMPLATE_VBoxRc_TOOL = $(VBOX_GCC_TOOL) |
3848 |
TEMPLATE_VBoxRc_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) |
3849 |
TEMPLATE_VBoxRc_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) |
3849 |
TEMPLATE_VBoxRc_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -m32 -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static $(VBOX_GCC_fno-stack-protector) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-rtti |
3850 |
TEMPLATE_VBoxRc_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -m32 -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-rtti |
3850 |
TEMPLATE_VBoxRc_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -m32 -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static $(VBOX_GCC_fno-stack-protector) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing |
3851 |
TEMPLATE_VBoxRc_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -m32 -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing |
3851 |
TEMPLATE_VBoxRc_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -m32 -nostdlib |
3852 |
TEMPLATE_VBoxRc_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -m32 -nostdlib |
3852 |
#TEMPLATE_VBoxRc_LDFLAGS.release = -Wl,-S ??? |
3853 |
#TEMPLATE_VBoxRc_LDFLAGS.release = -Wl,-S ??? |
3853 |
endif |
3854 |
endif |
Lines 3885-3893
Link Here
|
3885 |
endif |
3886 |
endif |
3886 |
|
3887 |
|
3887 |
ifeq ($(VBOX_LDR_FMT32),elf) |
3888 |
ifeq ($(VBOX_LDR_FMT32),elf) |
3888 |
TEMPLATE_VBoxRcExe_CFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CFLAGS)) -O0 |
3889 |
TEMPLATE_VBoxRcExe_CFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CFLAGS)) -O0 $(VBOX_GCC_nopie) |
3889 |
TEMPLATE_VBoxRcExe_CXXFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CXXFLAGS)) -O0 |
3890 |
TEMPLATE_VBoxRcExe_CXXFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CXXFLAGS)) -O0 $(VBOX_GCC_nopie) |
3890 |
TEMPLATE_VBoxRcExe_LDFLAGS = -g |
3891 |
TEMPLATE_VBoxRcExe_LDFLAGS = -g $(VBOX_GCC_nopie) |
3891 |
TEMPLATE_VBoxRcExe_LDFLAGS.dbgopt = -g |
3892 |
TEMPLATE_VBoxRcExe_LDFLAGS.dbgopt = -g |
3892 |
TEMPLATE_VBoxRcExe_LDFLAGS.strict = -g |
3893 |
TEMPLATE_VBoxRcExe_LDFLAGS.strict = -g |
3893 |
TEMPLATE_VBoxRcExe_LDFLAGS.release = -g |
3894 |
TEMPLATE_VBoxRcExe_LDFLAGS.release = -g |
Lines 3966-3973
Link Here
|
3966 |
|
3967 |
|
3967 |
ifeq ($(VBOX_LDR_FMT),elf) |
3968 |
ifeq ($(VBOX_LDR_FMT),elf) |
3968 |
TEMPLATE_VBoxR0_TOOL = $(VBOX_GCC_TOOL) |
3969 |
TEMPLATE_VBoxR0_TOOL = $(VBOX_GCC_TOOL) |
3969 |
TEMPLATE_VBoxR0_CFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(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-hidden) -std=gnu99 $(VBOX_GCC_IPRT_FMT_CHECK) |
3970 |
TEMPLATE_VBoxR0_CFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) -fno-common $(VBOX_GCC_fvisibility-hidden) -std=gnu99 $(VBOX_GCC_IPRT_FMT_CHECK) |
3970 |
TEMPLATE_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) |
3971 |
TEMPLATE_VBoxR0_CXXFLAGS = -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) $(VBOX_GCC_nopie) -fno-common $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) -fno-rtti $(VBOX_GCC_IPRT_FMT_CHECK) |
3971 |
TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding |
3972 |
TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding |
3972 |
TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables |
3973 |
TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables |
3973 |
ifeq ($(KBUILD_TARGET),solaris) |
3974 |
ifeq ($(KBUILD_TARGET),solaris) |
Lines 4000-4011
Link Here
|
4000 |
TEMPLATE_VBoxR0_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) |
4001 |
TEMPLATE_VBoxR0_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) |
4001 |
TEMPLATE_VBoxR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) \ |
4002 |
TEMPLATE_VBoxR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) \ |
4002 |
-fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \ |
4003 |
-fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \ |
4003 |
-mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector) |
4004 |
-mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) |
4004 |
TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables |
4005 |
TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables |
4005 |
TEMPLATE_VBoxR0_CXXFLAGS.x86 = -m32 |
4006 |
TEMPLATE_VBoxR0_CXXFLAGS.x86 = -m32 |
4006 |
TEMPLATE_VBoxR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) \ |
4007 |
TEMPLATE_VBoxR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) \ |
4007 |
-fno-common -msoft-float -static -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \ |
4008 |
-fno-common -msoft-float -static -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \ |
4008 |
-mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector) |
4009 |
-mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) |
4009 |
TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables |
4010 |
TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables |
4010 |
TEMPLATE_VBoxR0_CFLAGS.x86 = -m32 |
4011 |
TEMPLATE_VBoxR0_CFLAGS.x86 = -m32 |
4011 |
TEMPLATE_VBoxR0_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -nostdlib |
4012 |
TEMPLATE_VBoxR0_LDFLAGS = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -nostdlib |
Lines 4241-4247
Link Here
|
4241 |
-Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes \ |
4242 |
-Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes \ |
4242 |
-Wimplicit-function-declaration -Werror-implicit-function-declaration \ |
4243 |
-Wimplicit-function-declaration -Werror-implicit-function-declaration \ |
4243 |
-O2 -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4244 |
-O2 -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4244 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4245 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4245 |
-nostdinc -std=c99 |
4246 |
-nostdinc -std=c99 |
4246 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 |
4247 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 |
4247 |
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 --param inline-unit-growth=100 --param large-function-growth=1000 \ |
4248 |
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 --param inline-unit-growth=100 --param large-function-growth=1000 \ |
Lines 4250-4256
Link Here
|
4250 |
TEMPLATE_VBOXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \ |
4251 |
TEMPLATE_VBOXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \ |
4251 |
$(VBOX_GCC_WARN) -Wpointer-arith -Winline \ |
4252 |
$(VBOX_GCC_WARN) -Wpointer-arith -Winline \ |
4252 |
-O2 -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4253 |
-O2 -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4253 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4254 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4254 |
-nostdinc |
4255 |
-nostdinc |
4255 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86) |
4256 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86) |
4256 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64) |
4257 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64) |
Lines 4323-4329
Link Here
|
4323 |
-Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes \ |
4324 |
-Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes \ |
4324 |
-Wimplicit-function-declaration -Werror-implicit-function-declaration \ |
4325 |
-Wimplicit-function-declaration -Werror-implicit-function-declaration \ |
4325 |
-O2 -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4326 |
-O2 -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4326 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4327 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4327 |
-nostdinc -std=c99 -msoft-float |
4328 |
-nostdinc -std=c99 -msoft-float |
4328 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 \ |
4329 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 \ |
4329 |
-mpreferred-stack-boundary=2 -mno-mmx -mno-sse -mno-avx \ |
4330 |
-mpreferred-stack-boundary=2 -mno-mmx -mno-sse -mno-avx \ |
Lines 4335-4341
Link Here
|
4335 |
TEMPLATE_VBOXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \ |
4336 |
TEMPLATE_VBOXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \ |
4336 |
$(VBOX_GCC_WARN) -Wpointer-arith -Winline \ |
4337 |
$(VBOX_GCC_WARN) -Wpointer-arith -Winline \ |
4337 |
-O2 -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4338 |
-O2 -fno-strict-aliasing -fno-common -finline-limit=8000 \ |
4338 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4339 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ |
4339 |
-nostdinc -msoft-float |
4340 |
-nostdinc -msoft-float |
4340 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86) |
4341 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86) |
4341 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64) |
4342 |
TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64) |
Lines 4376-4382
Link Here
|
4376 |
TEMPLATE_VBOXR0DRV_LDFLAGS = -shared -no-undefined -dc -dy -lroot -rpath-link /boot/system/develop/lib/x86 --no-add-needed /boot/system/develop/lib/_KERNEL_ --no-add-needed /boot/system/develop/lib/haiku_version_glue.o |
4377 |
TEMPLATE_VBOXR0DRV_LDFLAGS = -shared -no-undefined -dc -dy -lroot -rpath-link /boot/system/develop/lib/x86 --no-add-needed /boot/system/develop/lib/_KERNEL_ --no-add-needed /boot/system/develop/lib/haiku_version_glue.o |
4377 |
TEMPLATE_VBOXR0DRV_CFLAGS = -fno-PIC \ |
4378 |
TEMPLATE_VBOXR0DRV_CFLAGS = -fno-PIC \ |
4378 |
$(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare \ |
4379 |
$(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare \ |
4379 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration |
4380 |
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration |
4380 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -mno-sse -mno-mmx -mno-sse2 -mno-3dnow |
4381 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -mno-sse -mno-mmx -mno-sse2 -mno-3dnow |
4381 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow |
4382 |
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow |
4382 |
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \ |
4383 |
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \ |
Lines 5192-5199
Link Here
|
5192 |
TEMPLATE_VBoxNoCrtGccLib_TOOL = $(VBOX_GCC_TOOL) |
5193 |
TEMPLATE_VBoxNoCrtGccLib_TOOL = $(VBOX_GCC_TOOL) |
5193 |
TEMPLATE_VBoxNoCrtGccLib_ASTOOL = $(VBOX_ASTOOL) |
5194 |
TEMPLATE_VBoxNoCrtGccLib_ASTOOL = $(VBOX_ASTOOL) |
5194 |
TEMPLATE_VBoxNoCrtGccLib_ASFLAGS = $(VBOX_ASFLAGS) |
5195 |
TEMPLATE_VBoxNoCrtGccLib_ASFLAGS = $(VBOX_ASFLAGS) |
5195 |
TEMPLATE_VBoxNoCrtGccLib_CFLAGS += $(VBOX_GCC_fno-stack-protector) |
5196 |
TEMPLATE_VBoxNoCrtGccLib_CFLAGS += $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) |
5196 |
TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS += $(VBOX_GCC_fno-stack-protector) |
5197 |
TEMPLATE_VBoxNoCrtGccLib_CXXFLAGS += $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) |
5197 |
ifeq ($(KBUILD_TARGET_ARCH),amd64) |
5198 |
ifeq ($(KBUILD_TARGET_ARCH),amd64) |
5198 |
# in 64-bit mode we'll build a sys-module (VBoxREM2). |
5199 |
# in 64-bit mode we'll build a sys-module (VBoxREM2). |
5199 |
if1of ($(KBUILD_TARGET), darwin solaris) |
5200 |
if1of ($(KBUILD_TARGET), darwin solaris) |
Lines 6448-6455
Link Here
|
6448 |
TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-pie -fno-merge-constants -std=c99 -ffreestanding |
6449 |
TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-pie -fno-merge-constants -std=c99 -ffreestanding |
6449 |
TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-pie -fno-merge-constants -ffreestanding |
6450 |
TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-pie -fno-merge-constants -ffreestanding |
6450 |
ifndef VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE |
6451 |
ifndef VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE |
6451 |
TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS += $(VBOX_GCC_fno-stack-protector) |
6452 |
TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS += $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) |
6452 |
TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS += $(VBOX_GCC_fno-stack-protector) |
6453 |
TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS += $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_nopie) |
6453 |
endif |
6454 |
endif |
6454 |
TEMPLATE_VBOXGUESTR3XF86MOD_SYSSUFF = .o |
6455 |
TEMPLATE_VBOXGUESTR3XF86MOD_SYSSUFF = .o |
6455 |
TEMPLATE_VBOXGUESTR3XF86MOD_LIBS = \ |
6456 |
TEMPLATE_VBOXGUESTR3XF86MOD_LIBS = \ |
6456 |
-- VirtualBox-5.1.20/src/VBox/Devices/PC/ipxe/Makefile.kmk |
6457 |
++ VirtualBox-5.1.20/src/VBox/Devices/PC/ipxe/Makefile.kmk |
Lines 132-137
Link Here
|
132 |
-W \ |
132 |
-W \ |
133 |
-Wformat-nonliteral \ |
133 |
-Wformat-nonliteral \ |
134 |
$(VBOX_GCC_fno-stack-protector) \ |
134 |
$(VBOX_GCC_fno-stack-protector) \ |
|
|
135 |
$(VBOX_GCC_nopie) \ |
135 |
$(VBOX_GCC_fno-dwarf2-cfi-asm) \ |
136 |
$(VBOX_GCC_fno-dwarf2-cfi-asm) \ |
136 |
$(VBOX_GCC_Wno-address) |
137 |
$(VBOX_GCC_Wno-address) |
137 |
TEMPLATE_iPxe_ASFLAGS = \ |
138 |
TEMPLATE_iPxe_ASFLAGS = \ |
Lines 155-160
Link Here
|
155 |
-W \ |
156 |
-W \ |
156 |
-Wformat-nonliteral \ |
157 |
-Wformat-nonliteral \ |
157 |
$(VBOX_GCC_fno-stack-protector) \ |
158 |
$(VBOX_GCC_fno-stack-protector) \ |
|
|
159 |
$(VBOX_GCC_nopie) \ |
158 |
$(VBOX_GCC_fno-dwarf2-cfi-asm) \ |
160 |
$(VBOX_GCC_fno-dwarf2-cfi-asm) \ |
159 |
$(VBOX_GCC_Wno-address) \ |
161 |
$(VBOX_GCC_Wno-address) \ |
160 |
-DASSEMBLY |
162 |
-DASSEMBLY |