diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-25 19:33:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-25 19:33:19 +0000 |
commit | ad7534c8f08c31f3e140a31e4099e7e0b5e193d2 (patch) | |
tree | 311f04ac9b09f2b4f5fea5aad8ab6de18e05dc38 /elf/nodelmod2.c | |
parent | bb8d0fd5b125d43445124e37a2569f53bb7fb2ea (diff) | |
download | glibc-ad7534c8f08c31f3e140a31e4099e7e0b5e193d2.zip glibc-ad7534c8f08c31f3e140a31e4099e7e0b5e193d2.tar.gz glibc-ad7534c8f08c31f3e140a31e4099e7e0b5e193d2.tar.bz2 |
Update.
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.
Diffstat (limited to 'elf/nodelmod2.c')
-rw-r--r-- | elf/nodelmod2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/nodelmod2.c b/elf/nodelmod2.c index 1dd16e5..6bd7108 100644 --- a/elf/nodelmod2.c +++ b/elf/nodelmod2.c @@ -1 +1,9 @@ int var2 = 100; + +static void +__attribute__ ((__destructor__)) +destr (void) +{ + extern int fini_ran; + fini_ran = 1; +} |