1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

Kernel: Ensure that the Multiboot header is placed into the first 8kB

The Multiboot header must be within the first 8kB of the executable
for it to be picked up by QEMU, GRUB and other multiboot-capable
boot loaders.
This commit is contained in:
Gunnar Beutner 2021-06-24 13:05:16 +02:00 committed by Andreas Kling
parent 4c555684b7
commit 04ba5cfcad

View file

@ -352,7 +352,7 @@ if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES SerenityOS)
endif() endif()
if ("${SERENITY_ARCH}" STREQUAL "x86_64") if ("${SERENITY_ARCH}" STREQUAL "x86_64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcmodel=large -mno-red-zone") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcmodel=large -mno-red-zone -z max-page-size=0x1000")
endif() endif()
# Kernel Undefined Behavior Sanitizer (KUBSAN) # Kernel Undefined Behavior Sanitizer (KUBSAN)