aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2009-02-16 10:42:12 +0000
committerDave Korn <dave.korn@artimi.com>2009-02-16 10:42:12 +0000
commit1491f1f0d14d80a1bcd93d228c5b506811f7ae8c (patch)
treedc743567597a951a718adbfb937556283ee2d954 /ld
parent7f1003b875e9c9540bfce968b2ad29e9666bae1f (diff)
downloadgdb-1491f1f0d14d80a1bcd93d228c5b506811f7ae8c.zip
gdb-1491f1f0d14d80a1bcd93d228c5b506811f7ae8c.tar.gz
gdb-1491f1f0d14d80a1bcd93d228c5b506811f7ae8c.tar.bz2
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
inadvertent .reloc sections caused by refactoring accident.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/pe.em4
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index fdb319a..d5a1288 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 858f6da..79f383a 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -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 */