From cb817dda45e12bf102f43867ef7294690ae2f10d Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 16 Aug 2017 11:22:53 +0900 Subject: [PATCH] apply ASLR options #1 [Model] All [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] [Cause & Measure] [Checking Method] N/A [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: Idc09ef1134df1fe3ee390d93a91ecbdc7a7ef7bb Signed-off-by: DongHun Kwak --- packaging/findutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/findutils.spec b/packaging/findutils.spec index dc807a1..b6fa27e 100644 --- a/packaging/findutils.spec +++ b/packaging/findutils.spec @@ -50,10 +50,13 @@ cp %{SOURCE1001} . # this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ... export DEFAULT_ARG_SIZE="(31u * 1024u)" %endif + +CFLAGS+=" -fPIE" +LDFLAGS+=" -pie" %configure \ --libexecdir=%{_libdir}/find \ --localstatedir=/var/lib -%{__make} %{?_smp_mflags} CFLAGS=" -fPIE" LDFLAGS=" -pie" +%{__make} %{?_smp_mflags} %check make check -- 2.7.4