+2012-07-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/14323
+ * ld-elf/pr14323-1.c: New.
+ * ld-elf/pr14323-2.c: Likewise.
+
+ * ld-elf/shared.exp (build_tests): Add libpr14323-2.so.
+ (run_tests): Add pr14323.
+
2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3351
--- /dev/null
+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;
+}
{"Build libpr13250-3.o"
"-r -nostdlib" ""
{pr13250-3.c} {} "libpr13250-3.o"}
+ {"Build libpr14323-2.so"
+ "-shared" "-fPIC"
+ {pr14323-2.c} {} "libpr14323-2.so"}
}
run_cc_link_tests $build_tests
{"Run with pr13250-3.c, libpr13250-1.so and libpr13250-2.so"
"--as-needed tmpdir/pr13250-3.o tmpdir/libpr13250-1.so tmpdir/libpr13250-2.so" ""
{dummy.c} "pr13250" "pass.out"}
+ {"Run with pr14323-1.c pr14323-2.so"
+ "tmpdir/libpr14323-2.so" ""
+ {pr14323-1.c} "pr14323" "pass.out"}
}
# NetBSD ELF systems do not currently support the .*_array sections.