Add workaround for bash 4.2 scripting problem.
authorLudovic Court?s <ludo@gnu.org>
Thu, 6 Oct 2016 12:49:09 +0000 (13:49 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 6 Oct 2016 12:49:09 +0000 (13:49 +0100)
* 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>.

ld/ChangeLog
ld/emulparams/elf32bmipn32-defs.sh

index 40d6c1455c3623aa8a0b2b4aaac73b10fb634a9b..d70cdf068bc6b37385f67494c2823a6091baf187 100644 (file)
@@ -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
index af8f01ddf43b04e3c6712fb97231dfa95f0267c5..46b3f83c847aaadcb414225d35202cc323acb839 100644 (file)
@@ -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) ;;