[binutils-gdb] Add workaround for bash 4.2 scripting problem.
Nick Clifton
nickc@sourceware.org
Thu Oct 6 12:49:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=249471c08ad2ba2c325d691753b327a108138c89
commit 249471c08ad2ba2c325d691753b327a108138c89
Author: Ludovic Court?s <ludo@gnu.org>
Date: Thu Oct 6 13:49:09 2016 +0100
Add workaround for bash 4.2 scripting problem.
* 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>.
Diff:
---
ld/ChangeLog | 6 ++++++
ld/emulparams/elf32bmipn32-defs.sh | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 40d6c14..d70cdf0 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-06 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>.
+
2016-10-06 Alan Modra <amodra@gmail.com>
* lexsup.c: Spell fall through comments consistently and add
diff --git a/ld/emulparams/elf32bmipn32-defs.sh b/ld/emulparams/elf32bmipn32-defs.sh
index af8f01d..46b3f83 100644
--- a/ld/emulparams/elf32bmipn32-defs.sh
+++ b/ld/emulparams/elf32bmipn32-defs.sh
@@ -13,7 +13,8 @@ LITTLE_OUTPUT_FORMAT="elf32-littlemips"
TEMPLATE_NAME=elf32
EXTRA_EM_FILE=mipself
-case x"$EMULATION_NAME" in
+# Note: use "x$var" not x"$var" in case directive in order to work around bug in bash 4.2
+case "x$EMULATION_NAME" in
xelf32*n32*) ELFSIZE=32 ;;
xelf64*) ELFSIZE=64 ;;
x) ;;
More information about the Binutils-cvs
mailing list