[lvm-devel] master - so: make sure shared libs are built with RELRO option

Peter Rajnoha prajnoha at fedoraproject.org
Thu Sep 4 08:53:21 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c774d9a3f35c312d5b24c4ba13da707ccd975194
Commit:        c774d9a3f35c312d5b24c4ba13da707ccd975194
Parent:        b25e0086b6738ad1e25480571af58807c12df57c
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Thu Sep 4 10:52:41 2014 +0200
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Thu Sep 4 10:52:41 2014 +0200

so: make sure shared libs are built with RELRO option

In addition to using RELRO for daemons, use this option for shared
libraries. See also commit a65ab773b4ddb06e87d678d3b2f4d0ca3e5b9fd0.
---
 WHATS_NEW    |    1 +
 make.tmpl.in |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/WHATS_NEW b/WHATS_NEW
index 70df450..bf929f6 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.112 - 
 =====================================
+  Make sure shared libraries are built with RELRO option.
 
 Version 2.02.111 - 1st September 2014
 =====================================
diff --git a/make.tmpl.in b/make.tmpl.in
index 5e597df..455e9c2 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -160,6 +160,7 @@ ifeq ("@HAVE_PIE@", "yes")
 ifeq ("@HAVE_FULL_RELRO@", "yes")
   EXTRA_EXEC_CFLAGS += -fPIE -DPIE
   EXTRA_EXEC_LDFLAGS += -Wl,-z,relro,-z,now -pie
+  CLDFLAGS += -Wl,-z,relro
 endif
 endif
 endif




More information about the lvm-devel mailing list