* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
authorIan Lance Taylor <ian@airs.com>
Wed, 14 Feb 1996 16:10:18 +0000 (16:10 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 14 Feb 1996 16:10:18 +0000 (16:10 +0000)
`:foo' from ${ARCH}.

ld/ChangeLog
ld/emultempl/elf32.em

index bedbedf7c96617e9501e11dedead6842f5c0459d..81c80daba096d97c692a13aa9d12840c6d3eaee0 100644 (file)
@@ -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
index 16a96affe0ce499d1ffee5bd8edcf24e97184041..ebb391e98da3ac48a8f91d631c30860d0e20e6e9 100644 (file)
@@ -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};
 }