From 1491f1f0d14d80a1bcd93d228c5b506811f7ae8c Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Mon, 16 Feb 2009 10:42:12 +0000 Subject: [PATCH] * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit inadvertent .reloc sections caused by refactoring accident. --- ld/ChangeLog | 5 +++++ ld/emultempl/pe.em | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index fdb319a508..d5a1288aff 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2009-02-16 Dave Korn + + * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit + inadvertent .reloc sections caused by refactoring accident. + 2009-02-16 Alan Modra * ldlang.c (process_insert_statements): ASSERT that output section diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 858f6da76d..79f383a9b4 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 */ -- 2.34.1