aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/begin.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/begin.c')
-rw-r--r--ld/testsuite/ld-elf/begin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/begin.c b/ld/testsuite/ld-elf/begin.c
new file mode 100644
index 0000000..ccc47d4
--- /dev/null
+++ b/ld/testsuite/ld-elf/begin.c
@@ -0,0 +1,5 @@
+extern void foo (void);
+
+static void (*const init_array []) (void)
+ __attribute__ ((used, section (".init_array"), aligned (sizeof (void *))))
+ = { foo };