VirtualBox

Ignore:
Timestamp:
Aug 1, 2022 7:29:21 PM (3 years ago)
Author:
vboxsync
Message:

ValKit/bootsectors: Add -ffreestanding to the 64-bit ELF compilers to prevent our string length function to be optimized to a _strlen() call.

File:
1 edited

Legend:

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

    r93115 r95969  
    272272endif
    273273TOOL_Bs3Gcc64Elf64_COBJSUFF         = .o64
    274 TOOL_Bs3Gcc64Elf64_CFLAGS           = -fno-pie -x c $(VBOX_GCC_Wa_cma_nocompress_debug_sections)
     274TOOL_Bs3Gcc64Elf64_CFLAGS           = -fno-pie -x c $(VBOX_GCC_Wa_cma_nocompress_debug_sections) -ffreestanding
    275275TOOL_Bs3Gcc64Elf64_CFLAGS.debug     = -g
    276276TOOL_Bs3Gcc64Elf64_CFLAGS.profile   = -O2 #-g -pg
     
    308308
    309309TOOL_Bs3Gcc64Elf64_CXXOBJSUFF       ?= .o
    310 TOOL_Bs3Gcc64Elf64_CXXFLAGS         ?= -fno-pie $(VBOX_GCC_Wa_cma_nocompress_debug_sections)
     310TOOL_Bs3Gcc64Elf64_CXXFLAGS         ?= -fno-pie $(VBOX_GCC_Wa_cma_nocompress_debug_sections) -ffreestanding
    311311TOOL_Bs3Gcc64Elf64_CXXFLAGS.debug   ?= -g0 # no debug info, thank you
    312312TOOL_Bs3Gcc64Elf64_CXXFLAGS.profile ?= -O2 #-g -pg
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