aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr14323-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/pr14323-2.c')
-rw-r--r--ld/testsuite/ld-elf/pr14323-2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr14323-2.c b/ld/testsuite/ld-elf/pr14323-2.c
new file mode 100644
index 0000000..34753d1
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr14323-2.c
@@ -0,0 +1,13 @@
+int foo __attribute__ ((section ("_data_foo"))) = 0;
+extern int foo_alias __attribute__ ((weak, alias ("foo")));
+extern char __start__data_foo;
+asm (".type __start__data_foo,%object");
+int x1 = 1;
+int x2 = 2;
+
+char *
+bar ()
+{
+ foo = -1;
+ return &__start__data_foo;
+}