Use bfd_is_abs_section to check discarded input section
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 27 Aug 2014 14:59:48 +0000 (07:59 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 27 Aug 2014 14:59:48 +0000 (07:59 -0700)
commitc8831961f9fecf81e90fe7c8c94b47e01ee64662
tree22fb029acee0d6388275d2628613dd74bfaa2063
parent29a9f53e857c5d55df852d0a5d5c41a9247c16a2
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.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr17306a.s [new file with mode: 0644]
ld/testsuite/ld-i386/pr17306b.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr17306a.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr17306b.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp