[redhat-rpm-config: 169/215] Add -z relro

Panu Matilainen pmatilai at fedoraproject.org
Wed Apr 2 10:32:37 UTC 2014


commit 60aea2849edcda01b4555080d0821faa4b55a28b
Author: Adam Jackson <ajax at redhat.com>
Date:   Mon Jun 27 12:40:49 2011 -0400

    Add -z relro

 macros |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/macros b/macros
index 1ac46d7..d95b614 100644
--- a/macros
+++ b/macros
@@ -183,7 +183,7 @@ unset DISPLAY\
 %__find_provides        /usr/lib/rpm/redhat/find-provides
 %__find_requires        /usr/lib/rpm/redhat/find-requires
 
-%__global_cflags	-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
+%__global_cflags	-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wl,-z,relro
 
 # Use these macros to differentiate between RH and other KMP implementation(s).
 redhat_kernel_module_package	1


More information about the scm-commits mailing list