adapt ASLR for tdm-monitor and tools 34/142734/3
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 7 Aug 2017 06:27:41 +0000 (15:27 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 7 Aug 2017 08:51:28 +0000 (08:51 +0000)
Change-Id: I14544a6fa5f4a9d4ded753ec12f031a7e09309ef

client/Makefile.am
tools/Makefile.am

index becccc6..af2503f 100644 (file)
@@ -36,9 +36,12 @@ bin_PROGRAMS = \
 tdm_monitor_SOURCES = \
        $(top_srcdir)/protocol/tdm-protocol.c \
        tdm_monitor.c
-tdm_monitor_LDFLAGS = ${LDFLAGS}
+tdm_monitor_LDFLAGS = \
+       -pie \
+       ${LDFLAGS}
 tdm_monitor_LDADD = $(TDM_CLIENT_LIBS) ../common/libtdm-common.la
 tdm_monitor_CFLAGS = \
+       -fPIE \
        $(TDM_CFLAGS) \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/protocol \
index 2057e4a..d19e5e6 100644 (file)
@@ -6,8 +6,11 @@ bin_PROGRAMS = \
 tdm_test_server_SOURCES = \
        buffers.c \
        tdm_test_server.c
-tdm_test_server_LDFLAGS = ${LDFLAGS}
+tdm_test_server_LDFLAGS = \
+       -pie \
+       ${LDFLAGS}
 tdm_test_server_CFLAGS = \
+       -fPIE \
        $(TDM_CFLAGS) \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/src
@@ -18,8 +21,11 @@ tdm_test_server_LDADD = \
 #tdm-test-cliet
 tdm_test_client_SOURCES = \
        tdm_test_client.c
-tdm_test_client_LDFLAGS = ${LDFLAGS}
+tdm_test_client_LDFLAGS = \
+       -pie \
+       ${LDFLAGS}
 tdm_test_client_CFLAGS = \
+       -fPIE \
        $(TDM_CFLAGS) \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/client \