From 61315175ad029ee37a415cb1becd0bfecd44c430 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 30 Mar 2013 00:38:39 +0000 Subject: Set non_ir_ref if a symbol is referenced by a non-shared object bfd/ PR ld/15323 * elf32-i386.c (elf_i386_check_relocs): Set non_ir_ref if a symbol is referenced by a non-shared object. * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. ld/testsuite/ PR ld/15323 * ld-plugin/lto.exp (lto_link_tests): Add pr15323a-r.o. (lto_run_tests): Add a test for PR ld/15323. * ld-plugin/pr15323.out: New file. * ld-plugin/pr15323a.c: Likewise. * ld-plugin/pr15323b.c: Likewise. --- ld/testsuite/ld-plugin/pr15323b.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ld/testsuite/ld-plugin/pr15323b.c (limited to 'ld/testsuite/ld-plugin/pr15323b.c') diff --git a/ld/testsuite/ld-plugin/pr15323b.c b/ld/testsuite/ld-plugin/pr15323b.c new file mode 100644 index 0000000..3ce5063 --- /dev/null +++ b/ld/testsuite/ld-plugin/pr15323b.c @@ -0,0 +1,3 @@ +extern int x; + +void foobar (void) { x--; } -- cgit v1.1