diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-25 16:20:15 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-25 16:20:15 +0000 |
commit | bbf96e4eef9eddce8e421bf9a004e7916c5ef95d (patch) | |
tree | 1ec9ac012572f52dac5231aa8141229303294993 /bfd/elf64-x86-64.c | |
parent | 9cf8b46e48eea4263ed31ddb8f5dd185ee3b08e4 (diff) | |
download | gdb-bbf96e4eef9eddce8e421bf9a004e7916c5ef95d.zip gdb-bbf96e4eef9eddce8e421bf9a004e7916c5ef95d.tar.gz gdb-bbf96e4eef9eddce8e421bf9a004e7916c5ef95d.tar.bz2 |
Don't use dynamic_sec_flags on PLT .eh_frame section
* elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
dynamic_sec_flags to create PLT .eh_frame section.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r-- | bfd/elf64-x86-64.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index abd8d60..5614aa2 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -982,12 +982,11 @@ elf_x86_64_create_dynamic_sections (bfd *dynobj, && htab->plt_eh_frame == NULL && htab->elf.splt != NULL) { - flagword flags = get_elf_backend_data (dynobj)->dynamic_sec_flags; + flagword flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY + | SEC_HAS_CONTENTS | SEC_IN_MEMORY + | SEC_LINKER_CREATED); htab->plt_eh_frame - = bfd_make_section_anyway_with_flags (dynobj, ".eh_frame", - (flags - | SEC_LINKER_CREATED - | SEC_READONLY)); + = bfd_make_section_anyway_with_flags (dynobj, ".eh_frame", flags); if (htab->plt_eh_frame == NULL || !bfd_set_section_alignment (dynobj, htab->plt_eh_frame, 3)) return FALSE; |