aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/constload2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/constload2.c b/elf/constload2.c
index b665036c16..bf1bf182f3 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)