Skip to content

Commit

Permalink
[build] add --no-warn-rwx-segments defs
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Feb 6, 2024
1 parent 427630c commit cf7a3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/add_syterkit_app.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function(add_syterkit_app target_name)

# Set properties for the target, including link dependencies and libraries
set_target_properties(${target_name}_fel PROPERTIES LINK_DEPENDS "${LINK_SCRIPT_FEL}")
target_link_libraries(${target_name}_fel ${APP_COMMON_LIBRARY} -T"${LINK_SCRIPT_FEL}" -nostdlib -Wl,-z,noexecstack,-Map,${target_name}_fel.map)
target_link_libraries(${target_name}_fel ${APP_COMMON_LIBRARY} -T"${LINK_SCRIPT_FEL}" -nostdlib -Wl,--no-warn-rwx-segments,-z,noexecstack,-Map,${target_name}_fel.map)

# Add custom commands for post-build actions
add_custom_command(
Expand All @@ -35,7 +35,7 @@ function(add_syterkit_app target_name)
add_executable(${target_name}_bin ${APP_COMMON_SOURCE} ${ARGN})

set_target_properties(${target_name}_bin PROPERTIES LINK_DEPENDS "${LINK_SCRIPT_BIN}")
target_link_libraries(${target_name}_bin ${APP_COMMON_LIBRARY} -T"${LINK_SCRIPT_BIN}" -nostdlib -Wl,-z,noexecstack,-Map,${target_name}_bin.map)
target_link_libraries(${target_name}_bin ${APP_COMMON_LIBRARY} -T"${LINK_SCRIPT_BIN}" -nostdlib -Wl,--no-warn-rwx-segments,-z,noexecstack,-Map,${target_name}_bin.map)

add_custom_command(
TARGET ${target_name}_bin
Expand Down

0 comments on commit cf7a3a3

Please sign in to comment.