Blob Blame History Raw
From 6c01076f556922a63c73f0fcc4d62b97f9e1aca8 Mon Sep 17 00:00:00 2001
From: Fedora Bluez maintainers <bluez-owner@fedoraproject.org>
Date: Thu, 7 Nov 2013 09:23:35 +0100
Subject: [PATCH] build: Enable BIND_NOW

Partial RELRO means that the object is GNU_RELRO but not BIND_NOW.  This
reduces the effectiveness of RELRO.  bluez triggers this because it
enables PIE during the build, and rpmdiff takes this as an indicator
that the best possible hardening is desired.

https://bugzilla.redhat.com/show_bug.cgi?id=983161
---
 acinclude.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acinclude.m4 b/acinclude.m4
index ae58bbd..f0f8902 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -359,7 +359,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
 
 	if (test "${pie_enable}" = "yes" && test "${ac_cv_prog_cc_pie}" = "yes"); then
 		misc_cflags="$misc_cflags -fPIC"
-		misc_ldflags="$misc_ldflags -pie"
+		misc_ldflags="$misc_ldflags -pie -Wl,-z,now"
 	fi
 
 	if (test "${debug_enable}" = "yes" && test "${ac_cv_prog_cc_g}" = "yes"); then
-- 
1.8.3.1