mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 10:06:03 +00:00
Prekernel: Don't build the prekernel as a PIE image
This is unnecessary because the prekernel is always loaded at a known base address.
This commit is contained in:
parent
0edc17ee76
commit
412ce31f7f
Notes:
sideshowbarker
2024-07-18 08:28:48 +09:00
Author: https://github.com/gunnarbeutner
Commit: 412ce31f7f
Pull-request: https://github.com/SerenityOS/serenity/pull/8957
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/dascandy ✅
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ else()
|
|||
endif()
|
||||
|
||||
add_executable(${PREKERNEL_TARGET} ${SOURCES})
|
||||
target_compile_options(${PREKERNEL_TARGET} PRIVATE -no-pie -fno-pic)
|
||||
|
||||
target_link_options(${PREKERNEL_TARGET} PRIVATE LINKER:-T ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld -nostdlib)
|
||||
set_target_properties(${PREKERNEL_TARGET} PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue