* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
authorDave Korn <dave.korn@artimi.com>
Mon, 16 Feb 2009 10:42:12 +0000 (10:42 +0000)
committerDave Korn <dave.korn@artimi.com>
Mon, 16 Feb 2009 10:42:12 +0000 (10:42 +0000)
inadvertent .reloc sections caused by refactoring accident.

ld/ChangeLog
ld/emultempl/pe.em

index fdb319a508093e8f826ea9e38dcdc977b335d454..d5a1288affcde0f0d379845c656b027f7a8099a6 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
+       inadvertent .reloc sections caused by refactoring accident.
+
 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
 
        * ldlang.c (process_insert_statements): ASSERT that output section
index 858f6da76d131d7e02da970010520bc54280bc16..79f383a9b46e400e1e0c10523c88ec87dd7e9af5 100644 (file)
@@ -1061,11 +1061,11 @@ gld_${EMULATION_NAME}_after_open (void)
     || defined (TARGET_IS_arm_wince_pe)
   if (!link_info.relocatable)
     pe_dll_build_sections (link_info.output_bfd, &link_info);
-  else
-    pe_exe_build_sections (link_info.output_bfd, &link_info);
 #else
   if (link_info.shared)
     pe_dll_build_sections (link_info.output_bfd, &link_info);
+  else
+    pe_exe_build_sections (link_info.output_bfd, &link_info);
 #endif
 #endif /* DLL_SUPPORT */