mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 18:58:56 +00:00
Kernel: Do not use -mcmodel=large for x86_64 kernel
Small position independent code model (which we end up using after this change) is suitable for us since the kernel is not expected to grow more than 2Gb in size. This might be a bit risky since this model is not mentioned anywhere except for System V ABI document but experiments show that the kernel compiled with this change works just fine.
This commit is contained in:
parent
b8c3e75573
commit
bee7070da0
Notes:
sideshowbarker
2024-07-17 05:13:53 +09:00
Author: https://github.com/spholz
Commit: bee7070da0
Pull-request: https://github.com/SerenityOS/serenity/pull/23960
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/DanShaders
Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -697,7 +697,7 @@ macro (set_new_alignment alignment)
|
|||
endmacro()
|
||||
|
||||
if ("${SERENITY_ARCH}" STREQUAL "x86_64")
|
||||
add_compile_options(-mcmodel=large -mno-red-zone)
|
||||
add_compile_options(-mno-red-zone)
|
||||
set_new_alignment(8)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue