about summary refs log tree commit diff
path: root/elf/nodelmod2.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/nodelmod2.c')
-rw-r--r--elf/nodelmod2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/nodelmod2.c b/elf/nodelmod2.c
index 1dd16e5071..6bd7108a13 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;
+}