* emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
authorHans-Peter Nilsson <hp@axis.com>
Tue, 5 Feb 2002 07:07:21 +0000 (07:07 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 5 Feb 2002 07:07:21 +0000 (07:07 +0000)
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.

ld/emultempl/hppaelf.em
ld/emultempl/ppc64elf.em

index 0b49b63..243d55b 100644 (file)
@@ -226,6 +226,8 @@ hppaelf_layout_sections_again ()
      add even more stubs.  */
   need_laying_out = 0;
 
      add even more stubs.  */
   need_laying_out = 0;
 
+  lang_reset_memory_regions ();
+
   /* Resize the sections.  */
   lang_size_sections (stat_ptr->head, abs_output_section,
                      &stat_ptr->head, 0, (bfd_vma) 0, NULL);
   /* Resize the sections.  */
   lang_size_sections (stat_ptr->head, abs_output_section,
                      &stat_ptr->head, 0, (bfd_vma) 0, NULL);
index 655ddea..7e52434 100644 (file)
@@ -76,6 +76,8 @@ gld${EMULATION_NAME}_finish ()
         need to adjust the stub size again.  */
       need_laying_out = 0;
 
         need to adjust the stub size again.  */
       need_laying_out = 0;
 
+      lang_reset_memory_regions ();
+
       /* Resize the sections.  */
       lang_size_sections (stat_ptr->head, abs_output_section,
                          &stat_ptr->head, 0, (bfd_vma) 0, NULL);
       /* Resize the sections.  */
       lang_size_sections (stat_ptr->head, abs_output_section,
                          &stat_ptr->head, 0, (bfd_vma) 0, NULL);