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:
parent
4c555684b7
commit
04ba5cfcad
Notes:
sideshowbarker
2024-07-18 11:33:08 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/04ba5cfcad6 Pull-request: https://github.com/SerenityOS/serenity/pull/8240
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue