]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2015-07-09 Catherine Moore <clm@codesourcery.com>
authorCatherine Moore <clm@codesourcery.com>
Thu, 9 Jul 2015 15:07:47 +0000 (08:07 -0700)
committerCatherine Moore <clm@codesourcery.com>
Thu, 9 Jul 2015 15:07:47 +0000 (08:07 -0700)
        * 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.

bfd/ChangeLog
bfd/elflink.c

index e6d1783580bb252494fb2b4bb47d1bba96b85c18..e8c783e0a28a8566cb5540295f57a870c281f16e 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2015-07-08  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
 
        * elf32-avr.c: Add 32 bit PC relative relocation for AVR target.
index 1c0861ba3aa54a1b121d6a635fe6abb8deb4e135..b741e7ebcd9407acab80ea7eead17a47e9ae4936 100644 (file)
@@ -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;