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

e0630b
From e45c8fdcb3d7cdb654f6819c02d1bbb5b40b6116 Mon Sep 17 00:00:00 2001
e0630b
From: Florian Weimer <fweimer@redhat.com>
e0630b
Date: Thu, 7 Nov 2013 09:23:35 +0100
e0630b
Subject: [PATCH 1/4] build: Enable BIND_NOW
e0630b
e0630b
Partial RELRO means that the object is GNU_RELRO but not BIND_NOW.  This
e0630b
reduces the effectiveness of RELRO.  bluez triggers this because it
e0630b
enables PIE during the build, and rpmdiff takes this as an indicator
e0630b
that the best possible hardening is desired.
e0630b
e0630b
https://bugzilla.redhat.com/show_bug.cgi?id=983161
e0630b
---
e0630b
 acinclude.m4 | 2 +-
e0630b
 1 file changed, 1 insertion(+), 1 deletion(-)
e0630b
e0630b
diff --git a/acinclude.m4 b/acinclude.m4
e0630b
index bc39c6d73..efce2f3cb 100644
e0630b
--- a/acinclude.m4
e0630b
+++ b/acinclude.m4
e0630b
@@ -50,7 +50,7 @@ AC_DEFUN([MISC_FLAGS], [
e0630b
 		if (test "${enableval}" = "yes" &&
e0630b
 				test "${ac_cv_prog_cc_pie}" = "yes"); then
e0630b
 			misc_cflags="$misc_cflags -fPIC"
e0630b
-			misc_ldflags="$misc_ldflags -pie"
e0630b
+			misc_ldflags="$misc_ldflags -pie -Wl,-z,now"
e0630b
 		fi
e0630b
 	])
e0630b
 	if (test "$enable_coverage" = "yes"); then
e0630b
-- 
e0630b
2.14.1
e0630b