aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-14 16:10:18 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-14 16:10:18 +0000
commitdb3bfcd64cab692328aa2adfe7a1585e4e83512e (patch)
tree49a9bf2ef09b9398631637d6b9995945c6e1530c
parentf1d39876d02e254c892b58e14c18b40cd188cede (diff)
downloadfsf-binutils-gdb-db3bfcd64cab692328aa2adfe7a1585e4e83512e.zip
fsf-binutils-gdb-db3bfcd64cab692328aa2adfe7a1585e4e83512e.tar.gz
fsf-binutils-gdb-db3bfcd64cab692328aa2adfe7a1585e4e83512e.tar.bz2
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
`:foo' from ${ARCH}.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/elf32.em2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index bedbedf..81c80da 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
+ `:foo' from ${ARCH}.
+
Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
* scripttempl/i386msdos.sc: Don't pad the .text section. Put
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 16a96af..ebb391e 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -66,7 +66,7 @@ static char *gld${EMULATION_NAME}_get_script PARAMS ((int *isfile));
static void
gld${EMULATION_NAME}_before_parse()
{
- ldfile_output_architecture = bfd_arch_${ARCH};
+ ldfile_output_architecture = bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`;
config.dynamic_link = ${DYNAMIC_LINK-true};
}