summaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-05-25 22:48:14 +0000
committerH.J. Lu <hjl@lucon.org>2001-05-25 22:48:14 +0000
commit0f2b3989c137d5ff511061489fe988e7d3714cb8 (patch)
tree51c72b058bb127fbab5229fa18b58314d22f0929 /ld/emultempl
parent4ad7d3fcb0d7b9b3d7dbc49c872bd8fba9e7f66b (diff)
downloadbinutils-redhat-0f2b3989c137d5ff511061489fe988e7d3714cb8.tar.gz
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')
-rw-r--r--ld/emultempl/beos.em2
-rw-r--r--ld/emultempl/pe.em2
2 files changed, 2 insertions, 2 deletions
diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em
index 4ad033bf4e..c2a63f17ff 100644
--- a/ld/emultempl/beos.em
+++ b/ld/emultempl/beos.em
@@ -76,7 +76,6 @@ extern const char *output_filename;
static void
gld_${EMULATION_NAME}_before_parse()
{
- output_filename = "a.exe";
const bfd_arch_info_type *arch = bfd_scan_arch ("${OUTPUT_ARCH}");
if (arch)
{
@@ -86,6 +85,7 @@ gld_${EMULATION_NAME}_before_parse()
}
else
ldfile_output_architecture = bfd_arch_${ARCH};
+ output_filename = "a.exe";
}
/* PE format extra command line options. */
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index f8dee33aff..69bea209f9 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;