Always create PLT eh_frame section for i386/x86-64
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 22 May 2012 14:05:21 +0000 (14:05 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 22 May 2012 14:05:21 +0000 (14:05 +0000)
commit2fe0fd0638dafee893dcb791036a49e5a6988954
treea91f82e259c5ac31b36e72f220dfcc6689adcabf
parent23512c015ea3be9106e07b67133eaa2425dbcefd
Always create PLT eh_frame section for i386/x86-64

bfd/

2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/14105
* elf32-i386.c (elf_i386_create_dynamic_sections): Always
create PLT eh_frame section with SEC_LINKER_CREATED.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.

ld/testsuite/

2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/14105
* ld-elf/eh4.d: Add PLT eh_frame.

* ld-i386/i386.exp: Run pr12570a and pr12570b.
* ld-x86-64/x86-64.exp: Likewise.

* ld-i386/pr12570a.d: New file.
* ld-i386/pr12570a.s: Likewise.
* ld-i386/pr12570b.s: Likewise.
* ld-i386/pr12570b.s: Likewise.
* ld-x86-64/pr12570a.d: Likewise.
* ld-x86-64/pr12570a.s: Likewise.
* ld-x86-64/pr12570b.d: Likewise.
* ld-x86-64/pr12570b.s: Likewise.
15 files changed:
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/eh4.d
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr12570a.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr12570a.s [new file with mode: 0644]
ld/testsuite/ld-i386/pr12570b.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr12570b.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr12570a.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr12570a.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr12570b.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr12570b.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp