From 52b2a884dbc6393d59c66386646b5430e67e292a Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Fri, 11 Aug 2017 17:33:00 +0900 Subject: [PATCH] Apply ASLR to executable files. Change-Id: I53b0204a430f29165b640c1ab9704556f0849517 Signed-off-by: Bowon Ryu --- bin/Makefile.am | 3 +++ packaging/fribidi.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/Makefile.am b/bin/Makefile.am index fd495ad..bea50c6 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -18,6 +18,9 @@ AM_CPPFLAGS = \ $(MISC_CFLAGS) LDADD = $(top_builddir)/lib/libfribidi.la $(MISC_LIBS) +### TIZEN_ONLY(20170811): Apply ASLR to executable files. +fribidi_LDFLAGS = -pie +fribidi_CFLAGS = -fPIE if FRIBIDI_CHARSETS else # !FRIBIDI_CHARSETS diff --git a/packaging/fribidi.spec b/packaging/fribidi.spec index 36f8a73..09e9be0 100644 --- a/packaging/fribidi.spec +++ b/packaging/fribidi.spec @@ -38,7 +38,7 @@ This package provides headers and manual files for FriBiDi. cp %{SOURCE1001} . %build -%configure --disable-static +%reconfigure --disable-static %__make %{?_smp_mflags} %check -- 2.7.4