We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43797ea commit 63c8de5Copy full SHA for 63c8de5
CMakeLists.txt
@@ -727,6 +727,7 @@ else()
727
OUTPUT nuttx.rel
728
COMMAND
729
${CMAKE_C_COMPILER} ARGS -r $<$<BOOL:${CONFIG_SIM_M32}>:-m32>
730
+ $<$<BOOL:${CONFIG_HOST_LINUX}>:-Wl,-z,noexecstack>
731
$<TARGET_OBJECTS:sim_head> $<$<NOT:$<BOOL:${APPLE}>>:-Wl,--start-group>
732
${nuttx_libs_paths} $<$<NOT:$<BOOL:${APPLE}>>:-Wl,--end-group> -o
733
nuttx.rel
arch/sim/src/cmake/Toolchain.cmake
@@ -200,3 +200,7 @@ else()
200
add_link_options(-Wl,--gc-sections)
201
add_link_options(-Wl,-Ttext-segment=0x40000000)
202
endif()
203
+
204
+if(CONFIG_HOST_LINUX)
205
+ add_link_options(-Wl,-z,noexecstack)
206
+endif()
0 commit comments