This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH MIPS] Work around Bash 4.2 bug


Hello,

The patch below works around the Bash 4.2 bug described at
<http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-007>.

The effect of this bug would be that building a cross-Binutils for
mips64el-linux-gnu would lead to an ‘ld/configure’ error when Bash 4.2
is used:

  binutils-2.27/ld/configure: unhandled emulation

(See
<https://lists.gnu.org/archive/html/guix-devel/2016-09/msg01083.html>
for an earlier discussion of this issue.)

Thanks,
Ludo’.


ld/ChangeLog

2016-09-30  Ludovic Courtès  <ludo@gnu.org>

	* emulparams/elf32bmipn32-defs.sh: Shift quote of
	"x$EMULATION_NAME" to the left to work around
	<http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-007>.

--- a/ld/emulparams/elf32bmipn32-defs.sh
+++ b/ld/emulparams/elf32bmipn32-defs.sh
@@ -13,7 +13,7 @@ LITTLE_OUTPUT_FORMAT="elf32-littlemips"
 TEMPLATE_NAME=elf32
 EXTRA_EM_FILE=mipself
 
-case x"$EMULATION_NAME" in
+case "x$EMULATION_NAME" in
 xelf32*n32*) ELFSIZE=32 ;;
 xelf64*) ELFSIZE=64 ;;
 x) ;;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]