From 491424819ad41660bd2a689ae8a7a682b7bd8427 Mon Sep 17 00:00:00 2001 From: Kunhoon Baik Date: Wed, 9 Aug 2017 17:02:09 +0900 Subject: [PATCH] Apply ASLR for test binary - test-ptrace-misc, test-ptrace Change-Id: Ia2247fe65defb0b58917cede4138a28b36831a1b --- tests/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index fe2dba8..98bb771 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,4 @@ -AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CPPFLAGS = -I$(top_srcdir)/include -fPIE EXTRA_DIST = run-ia64-test-dyn1 run-ptrace-mapper run-ptrace-misc \ run-check-namespace run-coredump-unwind \ @@ -163,6 +163,9 @@ endif LIBUNWIND_setjmp = $(top_builddir)/src/libunwind-setjmp.la \ $(LIBUNWIND_ELF) $(LIBUNWIND) +test_ptrace_LDFLAGS = -pie +test_ptrace_misc_LDFLAGS = -pie + test_async_sig_LDADD = $(LIBUNWIND_local) -lpthread test_flush_cache_LDADD = $(LIBUNWIND_local) test_init_remote_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) -- 2.7.4