This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Patch] Use -z defs, not -z -defs
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 12 Aug 2009 12:06:19 +0200
- Subject: [Patch] Use -z defs, not -z -defs
Hi,
Apparently GNU ld silently ignores unknown -z options. The libelf.so
build used -z -defs in one place. This fixes it to use -z defs.
Cheers,
Mark
>From e2fedf4ad5d1eb7a68803714c645fa36aacb4b65 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Wed, 12 Aug 2009 12:00:17 +0200
Subject: [PATCH] Makefile.am (libelf.so): Use -Wl,-z,defs not -defs.
---
libelf/ChangeLog | 4 ++++
libelf/Makefile.am | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 7bcc235..ba38755 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-12 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (libelf.so): Use -Wl,-z,defs not -defs.
+
2009-07-26 Ulrich Drepper <drepper@redhat.com>
* elf.h: Update from glibc.
diff --git a/libelf/Makefile.am b/libelf/Makefile.am
index fbb19a6..2899043 100644
--- a/libelf/Makefile.am
+++ b/libelf/Makefile.am
@@ -114,7 +114,7 @@ libelf_so_SOURCES =
libelf.so: libelf_pic.a libelf.map
$(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
-Wl,--version-script,$(srcdir)/libelf.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION),-z,-defs,-z,relro $(libelf_so_LDLIBS)
+ -Wl,--soname,$@.$(VERSION),-z,defs,-z,relro $(libelf_so_LDLIBS)
if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi
ln -fs $@ $@.$(VERSION)
--
1.6.2.5