mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-30 14:31:14 +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
118 B
C
10 lines
118 B
C
int var2 = 100;
|
|
|
|
static void
|
|
__attribute__ ((__destructor__))
|
|
destr (void)
|
|
{
|
|
extern int fini_ran;
|
|
fini_ran = 1;
|
|
}
|