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:
Gunnar Beutner 2021-07-23 13:00:51 +02:00 committed by Andreas Kling
parent 0edc17ee76
commit 412ce31f7f

View file

@ -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)