mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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()
|
||||
|
||||
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
Reference in a new issue