This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-260-g1f393a1
- From: mpolacek at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 29 Feb 2012 14:30:41 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-260-g1f393a1
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 1f393a11f65dcaa1952bdcaf0317a65a5f8aff9d (commit)
from 8847f0377003fbfe9cbe951ce9f8717d74f26247 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=1f393a11f65dcaa1952bdcaf0317a65a5f8aff9d
commit 1f393a11f65dcaa1952bdcaf0317a65a5f8aff9d
Author: Marek Polacek <polacek@redhat.com>
Date: Wed Feb 29 15:28:38 2012 +0100
Always set l_used for vDSO.
diff --git a/ChangeLog b/ChangeLog
index 6bc32be..069bbc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-29 Marek Polacek <polacek@redhat.com>
+
+ [BZ #13706]
+ * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
+ * elf/Makefile: Add rules to run tst-unused-dep.out.
+
2012-02-28 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
diff --git a/NEWS b/NEWS
index d68ae66..06e7242 100644
--- a/NEWS
+++ b/NEWS
@@ -13,7 +13,7 @@ Version 2.16
5993, 6884, 6907, 9739, 9902, 10110, 10140, 10210, 11174, 11322, 11365,
11494, 12047, 13058, 13525, 13526, 13527, 13528, 13529, 13530, 13531,
13532, 13533, 13547, 13551, 13552, 13553, 13555, 13559, 13583, 13618,
- 13637, 13695, 13704, 13738
+ 13637, 13695, 13704, 13706, 13738
* ISO C11 support:
diff --git a/elf/Makefile b/elf/Makefile
index 8234ba7..25ffc57 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1203,3 +1203,14 @@ $(objpfx)tst-relsort1mod1.so: $(libm) $(objpfx)tst-relsort1mod2.so
$(objpfx)tst-relsort1mod2.so: $(libm)
$(objpfx)tst-relsort1.out: $(objpfx)tst-relsort1mod1.so \
$(objpfx)tst-relsort1mod2.so
+
+tests: $(objpfx)tst-unused-dep.out
+
+$(objpfx)tst-unused-dep.out: $(objpfx)testobj1.so
+ LD_TRACE_LOADED_OBJECTS=1 \
+ LD_DEBUG=unused \
+ LD_PRELOAD= \
+ $(elf-objpfx)${rtld-installed-name} \
+ --library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
+ $< > $@
+ cmp $@ /dev/null > /dev/null
diff --git a/elf/rtld.c b/elf/rtld.c
index 2e4f97f..3e15447 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1,5 +1,5 @@
/* Run time dynamic linker.
- Copyright (C) 1995-2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 1995-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1375,6 +1375,9 @@ of this helper program; chances are you did not intend to run this program.\n\
_dl_setup_hash (l);
l->l_relocated = 1;
+ /* The vDSO is always used. */
+ l->l_used = 1;
+
/* Initialize l_local_scope to contain just this map. This allows
the use of dl_lookup_symbol_x to resolve symbols within the vdso.
So we create a single entry list pointing to l_real as its only
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 2 +-
elf/Makefile | 11 +++++++++++
elf/rtld.c | 5 ++++-
4 files changed, 22 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources