mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +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
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(${PREKERNEL_TARGET} ${SOURCES})
|
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)
|
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)
|
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