apply ASLR options 55/147455/1 accepted/tizen/4.0/base/20170908.223135 submit/tizen_4.0_base/20170904.104108 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorMyoungJune Park <mj2004.park@samsung.com>
Fri, 11 Aug 2017 06:40:57 +0000 (15:40 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Mon, 4 Sep 2017 10:37:54 +0000 (19:37 +0900)
Change-Id: I3096e99d63e151712a901bb51d92bb84b0e9756a
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
configure.in
packaging/bash.spec

index a688b2d19563d08d8cebf2fd4e447427f40a0bdd..b5029fe3f430ffe71fa0ff4a8a55a2555e4a77c3 100644 (file)
@@ -457,7 +457,7 @@ else
        LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
 fi
 
-test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
+test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g -fPIC"
 
 AC_SUBST(CFLAGS)
 AC_SUBST(CPPFLAGS)
index 6e805961cde9758c597aa52820e6ab21c9919b41..9229aa6a825dad4b1f1611a4e8ce1303d5aa52c3 100644 (file)
@@ -31,6 +31,8 @@ incorporates useful features from the Korn shell (ksh) and the C shell
 cp %{SOURCE1001} .
 
 %build
+CFLAGS+=" -fPIE"
+LDFLAGS+=" -pie"
 %configure --enable-largefile \
             --without-bash-malloc \
             --disable-nls \