From c8831961f9fecf81e90fe7c8c94b47e01ee64662 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 27 Aug 2014 07:59:48 -0700 Subject: Use bfd_is_abs_section to check discarded input section bfd/ PR ld/17306 * elf32-i386.c (elf_i386_convert_mov_to_lea): Use bfd_is_abs_section to check discarded input section. * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise. ld/testsuite/ PR ld/17306 * ld-i386/i386.exp (i386tests): Add tests for PR ld/17306. * ld-x86-64/x86-64.exp (x86_64tests): Likewise. * ld-i386/pr17306a.s: New file. * ld-i386/pr17306b.s: Likewise. * ld-x86-64/pr17306a.s: Likewise. * ld-x86-64/pr17306b.s: Likewise. --- ld/testsuite/ld-i386/pr17306b.s | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ld/testsuite/ld-i386/pr17306b.s (limited to 'ld/testsuite/ld-i386/pr17306b.s') diff --git a/ld/testsuite/ld-i386/pr17306b.s b/ld/testsuite/ld-i386/pr17306b.s new file mode 100644 index 0000000..2f84e52 --- /dev/null +++ b/ld/testsuite/ld-i386/pr17306b.s @@ -0,0 +1,2 @@ + .text + movl foo@GOT(%ebx), %eax -- cgit v1.1