This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] 2015-07-09 Catherine Moore <clm at codesourcery dot com>


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=de231f2015ec537df22c60822c9adb1f2205c13e

commit de231f2015ec537df22c60822c9adb1f2205c13e
Author: Catherine Moore <clm@codesourcery.com>
Date:   Thu Jul 9 08:07:47 2015 -0700

    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.

Diff:
---
 bfd/ChangeLog | 6 ++++++
 bfd/elflink.c | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e6d1783..e8c783e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]