summary refs log tree commit diff
path: root/elf/tst-dlopenfailmod2.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:00 +0200
commit7862ff8e699ca8f605b832c6e529f5b10e678edd (patch)
tree4bbd164dd7c202811bb7a7a5647b92568a9e2bc9 /elf/tst-dlopenfailmod2.c
parentb8cdc3bba71140d9c122ebde01c5094db1889485 (diff)
downloadglibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.tar.gz
glibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.tar.xz
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/tst-dlopenfailmod2.c')
-rw-r--r--elf/tst-dlopenfailmod2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/tst-dlopenfailmod2.c b/elf/tst-dlopenfailmod2.c
index cd6f9cf56b..ed353f9a3c 100644
--- a/elf/tst-dlopenfailmod2.c
+++ b/elf/tst-dlopenfailmod2.c
@@ -16,11 +16,11 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <pthread.h>
 #include <stdio.h>
 
-/* Force linking against libpthread.  */
-void *pthread_create_reference = pthread_create;
+/* Force linking against tst-dlopenfailnodelmod.so.  */
+void no_delete_mod_function (void);
+void *function_reference = no_delete_mod_function;
 
 static void __attribute__ ((constructor))
 init (void)