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

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