diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-21 22:35:00 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-21 22:35:00 +0200 |
commit | 7862ff8e699ca8f605b832c6e529f5b10e678edd (patch) | |
tree | 4bbd164dd7c202811bb7a7a5647b92568a9e2bc9 /elf/Makefile | |
parent | b8cdc3bba71140d9c122ebde01c5094db1889485 (diff) | |
download | glibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.tar glibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.tar.gz glibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.tar.bz2 glibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.zip |
elf: Use custom NODELETE DSO for tst-dlopenfail, tst-dlopenfail-2
Once libpthread is empty and no longer marked NODELETE, it no longer
can be used for testing.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile index 5e809dbfaa..834ec858a8 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -334,7 +334,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \ tst-auditmanymod7 tst-auditmanymod8 tst-auditmanymod9 \ tst-initlazyfailmod tst-finilazyfailmod \ tst-dlopenfailmod1 tst-dlopenfaillinkmod tst-dlopenfailmod2 \ - tst-dlopenfailmod3 tst-ldconfig-ld-mod \ + tst-dlopenfailmod3 tst-dlopenfailnodelmod tst-ldconfig-ld-mod \ tst-filterobj-flt tst-filterobj-aux tst-filterobj-filtee \ tst-auditlogmod-1 tst-auditlogmod-2 tst-auditlogmod-3 \ tst-single_threaded-mod1 tst-single_threaded-mod2 \ @@ -1733,11 +1733,18 @@ 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 -$(objpfx)tst-dlopenfailmod2.so: $(shared-thread-library) +$(objpfx)tst-dlopenfailmod2.so: $(objpfx)tst-dlopenfailnodelmod.so $(objpfx)tst-dlopenfail-2: $(libdl) $(objpfx)tst-dlopenfail-2.out: \ $(objpfx)tst-dlopenfailmod1.so $(objpfx)tst-dlopenfailmod2.so \ $(objpfx)tst-dlopenfailmod3.so +# tst-dlopenfailnodelmod.so emulates how libpthread was linked. +$(objpfx)tst-dlopenfailnodelmod.so: $(libsupport) +LDFLAGS-tst-dlopenfailnodelmod.so = \ + -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst +# tst-dlopenfail should export the libsupport symbols, so that +# tst-dlopenfailnodelmod.so uses them for error reporting. +LDFLAGS-tst-dlopenfail = -Wl,-E $(objpfx)tst-dlopen-nodelete-reloc: $(libdl) $(objpfx)tst-dlopen-nodelete-reloc.out: \ |