mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 19:51:11 +00:00
167d5acc0d
2005-03-15 Jakub Jelinek <jakub@redhat.com> [BZ #786] * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx). * elf/Makefile: Add rules to build and run tst-tls15. * elf/tst-tls15.c: New test. * elf/tst-tlsmod15a.c: New file. * elf/tst-tlsmod15b.c: New file. 2005-03-20 Ulrich Drepper <drepper@redhat.com> * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
33 lines
590 B
C
33 lines
590 B
C
#include <dlfcn.h>
|
|
#include <stdio.h>
|
|
|
|
static int
|
|
do_test (void)
|
|
{
|
|
void *h = dlopen ("tst-tlsmod15a.so", RTLD_NOW);
|
|
if (h != NULL)
|
|
{
|
|
puts ("unexpectedly succeeded to open tst-tlsmod15a.so");
|
|
exit (1);
|
|
}
|
|
|
|
h = dlopen ("tst-tlsmod15b.so", RTLD_NOW);
|
|
if (h == NULL)
|
|
{
|
|
puts ("failed to open tst-tlsmod15b.so");
|
|
exit (1);
|
|
}
|
|
|
|
int (*fp) (void) = (int (*) (void)) dlsym (h, "in_dso");
|
|
if (fp == NULL)
|
|
{
|
|
puts ("cannot find in_dso");
|
|
exit (1);
|
|
}
|
|
|
|
return fp ();
|
|
}
|
|
|
|
#define TEST_FUNCTION do_test ()
|
|
#include "../test-skeleton.c"
|