From b7e966f05bd3073d3354c6b8725c6ada85695df2 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Wed, 5 Sep 2012 13:54:56 +0200 Subject: [PATCH] compile with PIE and full RELRO flags (#853193) --- net-tools.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net-tools.spec b/net-tools.spec index e1d148e..079011b 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -3,7 +3,7 @@ Summary: Basic networking tools Name: net-tools Version: 1.60 -Release: 141.%{checkout}%{?dist} +Release: 142.%{checkout}%{?dist} License: GPL+ Group: System Environment/Base URL: http://net-tools.sourceforge.net @@ -95,7 +95,9 @@ perl -pi -e "s|-O2||" Makefile %endif %build -export CFLAGS="$RPM_OPT_FLAGS $CFLAGS" +export CFLAGS="$RPM_OPT_FLAGS $CFLAGS -fpie" +# RHBZ #853193 +export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" make gcc $RPM_OPT_FLAGS -o ether-wake ether-wake.c @@ -160,6 +162,9 @@ install -m 644 %{SOURCE9} %{buildroot}%{_unitdir} %attr(0644,root,root) %{_unitdir}/arp-ethers.service %changelog +* Wed Sep 05 2012 Jiri Popelka - 1.60-142.20120702git +- compile with PIE and full RELRO flags (#853193) + * Wed Aug 22 2012 Jiri Popelka - 1.60-141.20120702git - fixed building with kernel-3.6