diff options
Diffstat (limited to 'ld/testsuite/ld-elf/foo.c')
-rw-r--r-- | ld/testsuite/ld-elf/foo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/foo.c b/ld/testsuite/ld-elf/foo.c new file mode 100644 index 000000000000..c84baee2e26a --- /dev/null +++ b/ld/testsuite/ld-elf/foo.c @@ -0,0 +1,11 @@ +#include <stdio.h> + +void +foo (void) +{ + printf ("TEST2\n"); +} + +static void (*const init_array []) (void) + __attribute__ ((used, section (".init_array"), aligned (sizeof (void *)))) + = { foo }; |