]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions before
authorNick Clifton <nickc@redhat.com>
Wed, 10 Aug 2005 16:46:30 +0000 (16:46 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 10 Aug 2005 16:46:30 +0000 (16:46 +0000)
lang_size_sections.

ld/ChangeLog
ld/pe-dll.c

index 8046b4e0a95cefd47d75917faeaf3d900cc0669e..b6b007984cd1c7d5dfe2685d1f64ac0b19b97624 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-10  Nick Clifton  <nickc@redhat.com>
+
+       * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
+       before lang_size_sections.
+
 2005-08-09  Alan Modra  <amodra@bigpond.net.au>
 
        * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
index e89c8b911acd3302c27ccffb6a76e4d18b7147c7..88e7eda365acb56de08b849219ba827a312d3441 100644 (file)
@@ -2636,6 +2636,7 @@ pe_dll_fill_sections (bfd *abfd, struct bfd_link_info *info)
       bfd_set_section_size (filler_bfd, reloc_s, reloc_sz);
 
       /* Resize the sections.  */
+      lang_reset_memory_regions ();
       lang_size_sections (NULL, TRUE);
 
       /* Redo special stuff.  */
@@ -2666,6 +2667,7 @@ pe_exe_fill_sections (bfd *abfd, struct bfd_link_info *info)
       bfd_set_section_size (filler_bfd, reloc_s, reloc_sz);
 
       /* Resize the sections.  */
+      lang_reset_memory_regions ();
       lang_size_sections (NULL, TRUE);
 
       /* Redo special stuff.  */