linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] build: Enable BIND_NOW
@ 2017-08-24 18:28 Bastien Nocera
  2017-08-24 18:28 ` [PATCH 2/3] obexd: Fix compilation error on F27 Bastien Nocera
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bastien Nocera @ 2017-08-24 18:28 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Florian Weimer

From: Florian Weimer <fweimer@redhat.com>

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 bc39c6d73..efce2f3cb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -50,7 +50,7 @@ AC_DEFUN([MISC_FLAGS], [
 		if (test "${enableval}" = "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 "$enable_coverage" = "yes"); then
-- 
2.13.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-24 14:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 18:28 [PATCH 1/3] build: Enable BIND_NOW Bastien Nocera
2017-08-24 18:28 ` [PATCH 2/3] obexd: Fix compilation error on F27 Bastien Nocera
2017-08-24 18:28 ` [PATCH 3/3] build: Add a few default configure options Bastien Nocera
2017-11-24 14:07   ` Bastien Nocera
2017-08-24 18:30 ` [PATCH 1/3] build: Enable BIND_NOW Bastien Nocera
2017-09-18 14:41   ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).