Check if .got.plt section is discarded before using it.
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 13 Aug 2010 20:50:27 +0000 (20:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 13 Aug 2010 20:50:27 +0000 (20:50 +0000)
commit56d4289c6c259fefb1bd1b30fffb207e48e3dcd5
tree581c40cc1a61fbe0de106079b1aab431b3f9549a
parente2054bcbe666ddc7ef69caa497864b49dbd406df
Check if .got.plt section is discarded before using it.

bfd/

2010-08-13  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11913
* elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
 .got.plt section is discarded.
 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.

ld/testsuite/

2010-08-13  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11913
* ld-i386/discarded1.d: New.
* ld-i386/discarded1.s: Likewise.
* ld-i386/discarded1.t: Likewise.
* ld-x86-64/discarded1.d: Likewise.
* ld-x86-64/discarded1.s: Likewise.
* ld-x86-64/discarded1.t: Likewise.

* ld-i386/i386.exp: Run discarded1.
* ld-x86-64/x86-64.exp: Likewise.
12 files changed:
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/discarded1.d [new file with mode: 0644]
ld/testsuite/ld-i386/discarded1.s [new file with mode: 0644]
ld/testsuite/ld-i386/discarded1.t [new file with mode: 0644]
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-x86-64/discarded1.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/discarded1.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/discarded1.t [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp