aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/pe.em
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-05-25 22:48:14 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-05-25 22:48:14 +0000
commitdb8d4f2320fac666c1cc06afdf68d1bd172c90a0 (patch)
tree4509a74279cd2c77ee6bd61970020f5e97f93b04 /ld/emultempl/pe.em
parentb55039f458b3abfce861618444bf96fa8b64fe6b (diff)
downloadgdb-db8d4f2320fac666c1cc06afdf68d1bd172c90a0.zip
gdb-db8d4f2320fac666c1cc06afdf68d1bd172c90a0.tar.gz
gdb-db8d4f2320fac666c1cc06afdf68d1bd172c90a0.tar.bz2
2001-05-25 H.J. Lu <hjl@gnu.org>
* emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move setting of output_filename after bfd_scan_arch. * emultempl/pe.em: Likewise.
Diffstat (limited to 'ld/emultempl/pe.em')
-rw-r--r--ld/emultempl/pe.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index f8dee33..69bea20 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -135,7 +135,6 @@ extern const char *output_filename;
static void
gld_${EMULATION_NAME}_before_parse()
{
- output_filename = "${EXECUTABLE_NAME:-a.exe}";
const bfd_arch_info_type *arch = bfd_scan_arch ("${OUTPUT_ARCH}");
if (arch)
{
@@ -145,6 +144,7 @@ gld_${EMULATION_NAME}_before_parse()
}
else
ldfile_output_architecture = bfd_arch_${ARCH};
+ output_filename = "${EXECUTABLE_NAME:-a.exe}";
#ifdef DLL_SUPPORT
config.has_shared = 1;