about summary refs log tree commit diff
path: root/elf/nodelmod4.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/nodelmod4.c')
-rw-r--r--elf/nodelmod4.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/nodelmod4.c b/elf/nodelmod4.c
index 55eb6e6dda..2cca43a6e8 100644
--- a/elf/nodelmod4.c
+++ b/elf/nodelmod4.c
@@ -1 +1,9 @@
 int var_in_mod4 = 99;
+
+static void
+__attribute__ ((__destructor__))
+destr (void)
+{
+  extern int fini_ran;
+  fini_ran = 1;
+}