2000-04-18 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Apr 2000 23:39:03 +0000 (23:39 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Apr 2000 23:39:03 +0000 (23:39 +0000)
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
lang_leave_output_section_statement () after calling
lang_enter_output_section_statement ().
* emultempl/armelf.em: Likewise.

ld/ChangeLog
ld/emultempl/armelf.em
ld/emultempl/elf32.em

index fc0c50ed4fed7bcb11968ed4e10390b4548f7388..d567f001c4613441d67e85cf4b02c689a0c4e7c1 100644 (file)
@@ -1,3 +1,10 @@
+2000-04-18  H.J. Lu  <hjl@gnu.org>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
+       lang_leave_output_section_statement () after calling
+       lang_enter_output_section_statement ().
+       * emultempl/armelf.em: Likewise.
+
 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
 
        * emultempl/elf32.em (struct orphan_save): Add section field.
index 8632bd3bb499c3163d72902e0e20456c86ec039f..8de6c9bc3e0bb1c71c1642afa4132e8baadbc11e 100644 (file)
@@ -933,13 +933,14 @@ gld${EMULATION_NAME}_place_orphan (file, s)
   os = lang_output_section_statement_lookup (outsecname);
   wild_doit (&os->children, s, os, file);
 
+  lang_leave_output_section_statement
+    ((bfd_vma) 0, "*default*",
+     (struct lang_output_section_phdr_list *) NULL, "*default*");
+
   if (place != NULL)
     {
       asection *snew, **pps;
 
-      lang_leave_output_section_statement
-       ((bfd_vma) 0, "*default*",
-        (struct lang_output_section_phdr_list *) NULL, "*default*");
       stat_ptr = &add;
 
       if (*ps == '\0' && config.build_constructors)
index d5ee9af18ed0c115fb59f60a515c7bd163073883..d57aadb1a7e281c8682ee76858499f26ad5080b9 100644 (file)
@@ -1015,13 +1015,14 @@ gld${EMULATION_NAME}_place_orphan (file, s)
   os = lang_output_section_statement_lookup (outsecname);
   wild_doit (&os->children, s, os, file);
 
+  lang_leave_output_section_statement
+    ((bfd_vma) 0, "*default*",
+     (struct lang_output_section_phdr_list *) NULL, "*default*");
+
   if (place != NULL)
     {
       asection *snew, **pps;
 
-      lang_leave_output_section_statement
-       ((bfd_vma) 0, "*default*",
-        (struct lang_output_section_phdr_list *) NULL, "*default*");
       stat_ptr = &add;
 
       if (*ps == '\0' && config.build_constructors)