aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/constload2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/constload2.c b/elf/constload2.c
index b665036..bf1bf18 100644
--- a/elf/constload2.c
+++ b/elf/constload2.c
@@ -5,6 +5,7 @@
extern int bar (void);
extern int baz (void);
extern int foo (void);
+extern void __attribute__ ((__constructor__)) init (void);
void *h;
@@ -20,6 +21,7 @@ baz (void)
return -21;
}
+
void
__attribute__ ((__constructor__))
init (void)