Apply ASLR in daemon 65/214865/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 27 Sep 2019 07:16:30 +0000 (16:16 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 27 Sep 2019 07:16:30 +0000 (16:16 +0900)
Change-Id: I73350cc6b0c8a44441f41bf5020e6cf7e98c3e59
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
server/CMakeLists.txt

index 1c15da7..655ed42 100644 (file)
@@ -10,10 +10,11 @@ FOREACH(flag ${pkgs_CFLAGS})
 ENDFOREACH(flag)
 
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
 
 ## Executable ##
 ADD_EXECUTABLE(sticker-server ${SRCS})
 TARGET_LINK_LIBRARIES(sticker-server ${pkgs_LDFLAGS})
 
 ## Install library files ##
-INSTALL(TARGETS sticker-server DESTINATION bin)
\ No newline at end of file
+INSTALL(TARGETS sticker-server DESTINATION bin)