mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 11:41:07 +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
117 B
C
10 lines
117 B
C
int var1 = 42;
|
|
|
|
static void
|
|
__attribute__ ((__destructor__))
|
|
destr (void)
|
|
{
|
|
extern int fini_ran;
|
|
fini_ran = 1;
|
|
}
|