summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2012-02-29 15:28:38 +0100
committerMarek Polacek <polacek@redhat.com>2012-02-29 15:28:38 +0100
commit1f393a11f65dcaa1952bdcaf0317a65a5f8aff9d (patch)
tree67b875bd55f952e59411163c3fb47706b97d2b76 /elf/Makefile
parent8847f0377003fbfe9cbe951ce9f8717d74f26247 (diff)
downloadglibc-1f393a11f65dcaa1952bdcaf0317a65a5f8aff9d.tar.gz
glibc-1f393a11f65dcaa1952bdcaf0317a65a5f8aff9d.tar.xz
glibc-1f393a11f65dcaa1952bdcaf0317a65a5f8aff9d.zip
Always set l_used for vDSO.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 8234ba7a51..25ffc5765b 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