public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] elf/tst-dlopenfail: Disable --no-as-needed for tst-dlopenfailmod1.so
@ 2019-12-02 13:54 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2019-12-02 13:54 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=61a7c9df71ee4e6f94b56c20f0d37c6e17d5f284

commit 61a7c9df71ee4e6f94b56c20f0d37c6e17d5f284
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Dec 2 14:53:16 2019 +0100

    elf/tst-dlopenfail: Disable --no-as-needed for tst-dlopenfailmod1.so
    
    Otherwise, the shared object dependency which triggers the load
    failure is dropped, invalidating the test.

Diff:
---
 elf/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/elf/Makefile b/elf/Makefile
index 305bed2..f7adebe 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1602,8 +1602,11 @@ LDFLAGS-tst-finilazyfailmod.so = \
 $(objpfx)tst-dlopenfail: $(libdl)
 $(objpfx)tst-dlopenfail.out: \
   $(objpfx)tst-dlopenfailmod1.so $(objpfx)tst-dlopenfailmod2.so
-# Order matters here.  tst-dlopenfaillinkmod.so's soname ensures
-# a run-time loader failure.
+# Order matters here.  tst-dlopenfaillinkmod.so's soname ensures a
+# run-time loader failure.  --as-needed breaks this test because
+# nothing actually references tst-dlopenfailmod2.so (with its soname
+# tst-dlopenfail-missingmod.so).
+LDFLAGS-tst-dlopenfailmod1.so = -Wl,--no-as-needed
 $(objpfx)tst-dlopenfailmod1.so: \
   $(shared-thread-library) $(objpfx)tst-dlopenfaillinkmod.so
 LDFLAGS-tst-dlopenfaillinkmod.so = -Wl,-soname,tst-dlopenfail-missingmod.so


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-02 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02 13:54 [glibc] elf/tst-dlopenfail: Disable --no-as-needed for tst-dlopenfailmod1.so Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).