Ignore discarded section when converting mov to lea
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Sep 2012 00:41:59 +0000 (00:41 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Sep 2012 00:41:59 +0000 (00:41 +0000)
commitfbdc86d9c9e5fe451861a34381bf5483aec43bf1
tree40a06654586a4d12f839831032a4bdab36c5a7e4
parent6bf93ee5094e7111d78339821ce2321060caef5a
Ignore discarded section when converting mov to lea

* elf32-i386.c (elf_i386_convert_mov_to_lea): Ignore discarded
section.
* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c