summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-24 13:05:16 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-25 15:19:09 +0200
commit04ba5cfcad6771de04fc8c7fa7bc0be810c72beb (patch)
treebb754a191c03a7d2e7ea942d5aee008b3fd3e94a /Kernel
parent4c555684b706bb62aaf8c85d48b2b6e029654220 (diff)
downloadserenity-04ba5cfcad6771de04fc8c7fa7bc0be810c72beb.zip
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.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt
index 86d17579b4..4b75fd1094 100644
--- a/Kernel/CMakeLists.txt
+++ b/Kernel/CMakeLists.txt
@@ -352,7 +352,7 @@ if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES SerenityOS)
endif()
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()
# Kernel Undefined Behavior Sanitizer (KUBSAN)