From 98da7939e10a50f3efdac438c8f1af77bb602688 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 26 Jan 2010 13:21:36 +0000 Subject: Properly check undefined symbols when gc_sections is active. bfd/ 2010-01-26 Alan Modra H.J. Lu PR ld/11218 * elflink.c (elf_link_output_extsym): Do not ignore undefined symbols with ref_regular set when gc_sections is active. ld/testsuite/ 2010-01-26 H.J. Lu PR ld/11218 * ld-gc/dummy.s: New. * ld-gc/pr11218-1.c: Likewise. * ld-gc/pr11218-2.c: Likewise. * ld-gc/pr11218.d: Likewise. --- ld/testsuite/ld-gc/dummy.s | 1 + 1 file changed, 1 insertion(+) create mode 100644 ld/testsuite/ld-gc/dummy.s (limited to 'ld/testsuite/ld-gc/dummy.s') diff --git a/ld/testsuite/ld-gc/dummy.s b/ld/testsuite/ld-gc/dummy.s new file mode 100644 index 0000000..403f980 --- /dev/null +++ b/ld/testsuite/ld-gc/dummy.s @@ -0,0 +1 @@ +# Dummy -- cgit v1.1