Blame SOURCES/0001-build-Enable-BIND_NOW.patch

19062e
From 6c01076f556922a63c73f0fcc4d62b97f9e1aca8 Mon Sep 17 00:00:00 2001
19062e
From: Fedora Bluez maintainers <bluez-owner@fedoraproject.org>
19062e
Date: Thu, 7 Nov 2013 09:23:35 +0100
19062e
Subject: [PATCH] build: Enable BIND_NOW
19062e
19062e
Partial RELRO means that the object is GNU_RELRO but not BIND_NOW.  This
19062e
reduces the effectiveness of RELRO.  bluez triggers this because it
19062e
enables PIE during the build, and rpmdiff takes this as an indicator
19062e
that the best possible hardening is desired.
19062e
19062e
https://bugzilla.redhat.com/show_bug.cgi?id=983161
19062e
---
19062e
 acinclude.m4 | 2 +-
19062e
 1 file changed, 1 insertion(+), 1 deletion(-)
19062e
19062e
diff --git a/acinclude.m4 b/acinclude.m4
19062e
index ae58bbd..f0f8902 100644
19062e
--- a/acinclude.m4
19062e
+++ b/acinclude.m4
19062e
@@ -359,7 +359,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
19062e
 
19062e
 	if (test "${pie_enable}" = "yes" && test "${ac_cv_prog_cc_pie}" = "yes"); then
19062e
 		misc_cflags="$misc_cflags -fPIC"
19062e
-		misc_ldflags="$misc_ldflags -pie"
19062e
+		misc_ldflags="$misc_ldflags -pie -Wl,-z,now"
19062e
 	fi
19062e
 
19062e
 	if (test "${debug_enable}" = "yes" && test "${ac_cv_prog_cc_g}" = "yes"); then
19062e
-- 
19062e
1.8.3.1
19062e