apply ASLR options 44/144444/1 accepted/tizen/base/20170901.225409 submit/tizen_base/20170817.011914
authorMyoungJune Park <mj2004.park@samsung.com>
Fri, 11 Aug 2017 06:40:57 +0000 (15:40 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Thu, 17 Aug 2017 01:17:46 +0000 (10:17 +0900)
Change-Id: I27317cce30bb5b18dc5776c6317a65237492107d
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
Signed-off-by: DongHun Kwak <dh0128.kwak@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 \