diff --git a/cmake/linker/lld/target_base.cmake b/cmake/linker/lld/target_base.cmake index ecd3f9acfca6..a23f1c1da3b6 100644 --- a/cmake/linker/lld/target_base.cmake +++ b/cmake/linker/lld/target_base.cmake @@ -11,6 +11,7 @@ macro(toolchain_ld_base) # TOOLCHAIN_LD_FLAGS comes from compiler/clang/target.cmake # LINKERFLAGPREFIX comes from linker/lld/target.cmake zephyr_ld_options( + -no-pie ${TOOLCHAIN_LD_FLAGS} )