mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
ad7534c8f0
2000-08-25 Ulrich Drepper <drepper@redhat.com> * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic. * elf/nodelete.c (fini_ran): New global variable. (do_test): Before every dlclose call clear fini_ran and test afterwards that it is not set by the destructors. * elf/nodelmod1.c: Add destructor which sets fini_ran. * elf/nodelmod2.c: Likewise. * elf/nodelmod4.c: Likewise.
10 lines
124 B
C
10 lines
124 B
C
int var_in_mod4 = 99;
|
|
|
|
static void
|
|
__attribute__ ((__destructor__))
|
|
destr (void)
|
|
{
|
|
extern int fini_ran;
|
|
fini_ran = 1;
|
|
}
|