Skip to content

Commit

Permalink
cmake: add noexec stack on ELF platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Jan 12, 2024
1 parent 9061e52 commit cdb1881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/opentrack-platform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
add_link_options(-Wl,--exclude-libs,ALL)
add_link_options(-Wl,-z,relro,-z,now)
add_link_options(-Wl,--as-needed)
add_link_options(-Wl,-z,nodlopen -Wl,-z,noexecstack)
add_compile_options(-fno-plt)
endif()
endif()
Expand Down

0 comments on commit cdb1881

Please sign in to comment.