Test modules for DF_1_NODELETE test.
authordrepper <drepper>
Sun, 12 Jan 2003 07:52:53 +0000 (07:52 +0000)
committerdrepper <drepper>
Sun, 12 Jan 2003 07:52:53 +0000 (07:52 +0000)
elf/nodel2mod1.c [new file with mode: 0644]
elf/nodel2mod2.c [new file with mode: 0644]
elf/nodel2mod3.c [new file with mode: 0644]

diff --git a/elf/nodel2mod1.c b/elf/nodel2mod1.c
new file mode 100644 (file)
index 0000000..acddc4c
--- /dev/null
@@ -0,0 +1,19 @@
+#include <stdlib.h>
+void
+foo (void)
+{
+  exit (0);
+}
+
+void
+__attribute__((destructor))
+bar (void)
+{
+  static int i;
+  foo ();
+  ++i;
+}
+void
+baz (void)
+{
+}
diff --git a/elf/nodel2mod2.c b/elf/nodel2mod2.c
new file mode 100644 (file)
index 0000000..d002024
--- /dev/null
@@ -0,0 +1,7 @@
+void
+__attribute__((constructor))
+xxx (void)
+{
+  extern void baz (void);
+  baz ();
+}
diff --git a/elf/nodel2mod3.c b/elf/nodel2mod3.c
new file mode 100644 (file)
index 0000000..6d1a0d4
--- /dev/null
@@ -0,0 +1 @@
+int x;