Add RELRO for excutables 33/174733/1
authorInkyun Kil <inkyun.kil@samsung.com>
Wed, 28 Mar 2018 07:33:10 +0000 (16:33 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Wed, 4 Apr 2018 01:35:44 +0000 (10:35 +0900)
Change-Id: Ia505218ec895e499e8b0813eb4a4dfc7c102c514
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
daemon/CMakeLists.txt

index 3e36548..ec7f392 100644 (file)
@@ -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)