Use Full RELRO when linking the daemon

Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
Tomas Hozza 2013-04-20 21:17:23 +02:00
parent e34aa6b7a4
commit 4db4008b50
1 changed files with 4 additions and 3 deletions

View File

@ -79,8 +79,8 @@ sed -i 's|#conf-dir=/etc/dnsmasq.d|conf-dir=/etc/dnsmasq.d|g' dnsmasq.conf.examp
%build %build
# We need to compile the daemon with PIE # We need to compile the daemon with PIE, PIC and FULL RELRO
RPM_LD_FLAGS="-Wl,-z,relro -pie" RPM_LD_FLAGS="-Wl,-z,relro,-z,now -pie"
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIE -DPIE -fPIC" RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIE -DPIE -fPIC"
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
@ -146,7 +146,8 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/dhcp_* %{_mandir}/man1/dhcp_*
%changelog %changelog
* Fri Apr 19 2013 Tomas Hozza <thozza@redhat.com> - 2.66-3 * Sat Apr 20 2013 Tomas Hozza <thozza@redhat.com> - 2.66-3
- Use Full RELRO when linking the daemon
- compile the daemon with PIE - compile the daemon with PIE
- include two fixes from upstream git repo - include two fixes from upstream git repo