From: H.J. Lu Date: Fri, 25 May 2001 22:48:14 +0000 (+0000) Subject: 2001-05-25 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db8d4f2320fac666c1cc06afdf68d1bd172c90a0;p=binutils-gdb.git 2001-05-25 H.J. Lu * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move setting of output_filename after bfd_scan_arch. * emultempl/pe.em: Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index ab8d25679b6..15c0d744b77 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2001-05-25 H.J. Lu + + * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move + setting of output_filename after bfd_scan_arch. + * emultempl/pe.em: Likewise. + 2001-05-25 H.J. Lu * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em index 4ad033bf4ec..c2a63f17ffa 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 f8dee33aff7..69bea209f9c 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;