From bb6469fe1d894cc5f66c93acba94beb1c7d92aa2 Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Wed, 28 Mar 2018 16:33:10 +0900 Subject: [PATCH] Add RELRO for excutables Change-Id: Ia505218ec895e499e8b0813eb4a4dfc7c102c514 Signed-off-by: Inkyun Kil --- daemon/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 3e36548..ec7f392 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -27,6 +27,6 @@ SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINK_FLAGS "-fPIE" COMPILE_FLAGS "${DAEMON_CFLAGS}" ) -TARGET_LINK_LIBRARIES(${TARGET} ${PKGS_LDFLAGS} ${D_PKGS_LDFLAGS} -ldl) +TARGET_LINK_LIBRARIES(${TARGET} ${PKGS_LDFLAGS} ${D_PKGS_LDFLAGS} -ldl "-Wl,-z,relro") INSTALL(TARGETS ${TARGET} DESTINATION sbin) -- 2.7.4