diff options
author | Sungguk Na <sungguk.na@samsung.com> | 2017-08-09 16:02:45 +0900 |
---|---|---|
committer | Sungguk Na <sungguk.na@samsung.com> | 2017-08-09 16:02:45 +0900 |
commit | a2c1a33fb10155365b7ba9cac6c28036a26f7f56 (patch) | |
tree | 0c525278eb392993b0df77f9802fb510eddc7e1d | |
parent | 14795f7c2a7ed1eda1b694bcc98aed4aefed3cde (diff) | |
download | memps-a2c1a33fb10155365b7ba9cac6c28036a26f7f56.tar.gz memps-a2c1a33fb10155365b7ba9cac6c28036a26f7f56.tar.bz2 memps-a2c1a33fb10155365b7ba9cac6c28036a26f7f56.zip |
Adapt ASLR to mempssubmit/tizen_4.0/20170828.110004submit/tizen_4.0/20170828.100004submit/tizen/20170810.003256accepted/tizen/unified/20170810.172129accepted/tizen/4.0/unified/20170829.020044
Change-Id: I1d0210ec580c1b6e483b70e8eba8ab382e517be2
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 298e0e8..0ccc893 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,8 @@ SET (SOURCES ${CMAKE_SOURCE_DIR}/memps.c ) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE") +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") ADD_EXECUTABLE (${PROJECT_NAME} ${SOURCES}) |