diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-22 14:46:42 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-22 14:46:42 +0000 |
commit | 5b05fc101625563ae358503acfa2027873883448 (patch) | |
tree | 87c5a4698f36c11bd1b8ef5a9a97dd68a8a43080 /bfd/elf32-i386.c | |
parent | f96dfd8483ef8f7c85d2947ff19d2ed56ba5c243 (diff) | |
download | binutils-redhat-5b05fc101625563ae358503acfa2027873883448.tar.gz |
Create PLT eh_frame section if there is .eh_frame section
bfd/
PR ld/13909
* elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT
eh_frame section if there is an input .eh_frame section.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
ld/testsuite/
PR ld/13909
* ld-i386/i386.exp: Run pr13909.
* ld-x86-64/x86-64.exp: Likewise.
* ld-i386/dummy.s: New file.
* ld-i386/pr13909.d: Likewise.
* ld-x86-64/pr13909.d: Likewise.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 84299ceb9e..e0d7fff451 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -1016,7 +1016,8 @@ elf_i386_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info) if (!info->no_ld_generated_unwind_info && htab->plt_eh_frame == NULL - && htab->elf.splt != NULL) + && htab->elf.splt != NULL + && bfd_get_section_by_name (dynobj, ".eh_frame") != NULL) { flagword flags = get_elf_backend_data (dynobj)->dynamic_sec_flags; htab->plt_eh_frame |