From db3bfcd64cab692328aa2adfe7a1585e4e83512e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 14 Feb 1996 16:10:18 +0000 Subject: [PATCH] * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip `:foo' from ${ARCH}. --- ld/ChangeLog | 5 +++++ ld/emultempl/elf32.em | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index bedbedf7c96..81c80daba09 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 14 11:09:25 1996 Ian Lance Taylor + + * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip + `:foo' from ${ARCH}. + Tue Feb 13 15:58:58 1996 Bryan Ford * scripttempl/i386msdos.sc: Don't pad the .text section. Put diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 16a96affe0c..ebb391e98da 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}; } -- 2.30.2