diff --git a/sys/bootstrap/CMakeLists.txt b/sys/bootstrap/CMakeLists.txt index 072fb9a..a3412ac 100644 --- a/sys/bootstrap/CMakeLists.txt +++ b/sys/bootstrap/CMakeLists.txt @@ -10,7 +10,8 @@ target_link_libraries(bootstrap interface::fs) target_compile_options(bootstrap PRIVATE - -fno-stack-protector -nostdlib -ffreestanding) + -fno-stack-protector -nostdlib -ffreestanding -fno-PIC) target_link_options(bootstrap PRIVATE - -static -nostdlib -ffreestanding) - #-T ${CMAKE_CURRENT_SOURCE_DIR}/arch/${TARGET_ARCH}/layout.ld) + -static -nostdlib -ffreestanding) + +set_target_properties(bootstrap PROPERTIES POSITIION_INDEPENDENT_CODE FALSE)