[krb5] Link shared libs using -Wl,--warn-shared-textrel
Nalin Dahyabhai
nalin at fedoraproject.org
Thu Jan 9 18:14:08 UTC 2014
commit 6e03c5ada151e812700daba1a87970f295a33180
Author: Nalin Dahyabhai <nalin at dahyabhai.net>
Date: Thu Jan 9 13:13:30 2014 -0500
Link shared libs using -Wl,--warn-shared-textrel
- pass -Wl,--warn-shared-textrel to the compiler when we're creating shared
libraries
krb5-1.12-buildconf.patch | 2 +-
krb5.spec | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/krb5-1.12-buildconf.patch b/krb5-1.12-buildconf.patch
index ab935ee..11b816f 100644
--- a/krb5-1.12-buildconf.patch
+++ b/krb5-1.12-buildconf.patch
@@ -11,7 +11,7 @@ not just assume that the compiler supports using these flags.
# Linux ld doesn't default to stuffing the SONAME field...
# Use objdump -x to examine the fields of the library
- LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--no-undefined'
-+ LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--no-undefined -Wl,-z,relro'
++ LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--no-undefined -Wl,-z,relro -Wl,--warn-shared-textrel'
#
LDCOMBINE_TAIL='-Wl,--version-script binutils.versions && $(PERL) -w $(top_srcdir)/util/export-check.pl $(SHLIB_EXPORT_FILE) $@'
SHLIB_EXPORT_FILE_DEP=binutils.versions
diff --git a/krb5.spec b/krb5.spec
index 51fb842..567a951 100644
--- a/krb5.spec
+++ b/krb5.spec
@@ -978,6 +978,10 @@ exit 0
%{_sbindir}/uuserver
%changelog
+* Thu Jan 9 2014 Nalin Dahyabhai <nalin at redhat.com>
+- pass -Wl,--warn-shared-textrel to the compiler when we're creating shared
+ libraries
+
* Thu Jan 9 2014 Nalin Dahyabhai <nalin at redhat.com> - 1.12-10
- amend the PIC patch for iaesx86.s to also save/restore ebx in the
functions where we modify it
More information about the scm-commits
mailing list