diff options
Diffstat (limited to 'elf/nodelmod1.c')
-rw-r--r-- | elf/nodelmod1.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/nodelmod1.c b/elf/nodelmod1.c index abae539a6c..fc24a7b172 100644 --- a/elf/nodelmod1.c +++ b/elf/nodelmod1.c @@ -1 +1,9 @@ int var1 = 42; + +static void +__attribute__ ((__destructor__)) +destr (void) +{ + extern int fini_ran; + fini_ran = 1; +} |