diff options
author | Catherine Moore <clm@codesourcery.com> | 2015-07-09 08:07:47 -0700 |
---|---|---|
committer | Catherine Moore <clm@codesourcery.com> | 2015-07-09 08:07:47 -0700 |
commit | de231f2015ec537df22c60822c9adb1f2205c13e (patch) | |
tree | 27c3d75caa63bc06155a9dc221144f15fd5ad912 /bfd/elflink.c | |
parent | 0f4576e3582f097cd257339d9395e88d07031002 (diff) | |
download | gdb-de231f2015ec537df22c60822c9adb1f2205c13e.zip gdb-de231f2015ec537df22c60822c9adb1f2205c13e.tar.gz gdb-de231f2015ec537df22c60822c9adb1f2205c13e.tar.bz2 |
2015-07-09 Catherine Moore <clm@codesourcery.com>
* elflink.c (bfd_elf_size_dynamic_sections): Call to
_bfd_elf_maybe_strip_eh_frame_hdr should be before
bed->elf_backend_size_dynamic_sections.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 1c0861b..b741e7e 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -5957,6 +5957,9 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd, } } + if (! _bfd_elf_maybe_strip_eh_frame_hdr (info)) + return FALSE; + /* The backend must work out the sizes of all the other dynamic sections. */ if (dynobj != NULL @@ -5964,9 +5967,6 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd, && ! (*bed->elf_backend_size_dynamic_sections) (output_bfd, info)) return FALSE; - if (! _bfd_elf_maybe_strip_eh_frame_hdr (info)) - return FALSE; - if (dynobj != NULL && elf_hash_table (info)->dynamic_sections_created) { unsigned long section_sym_count; |