This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH MIPS] Work around Bash 4.2 bug
- From: ludo at gnu dot org (Ludovic Courtès)
- To: binutils at sourceware dot org
- Date: Fri, 30 Sep 2016 11:35:14 +0200
- Subject: [PATCH MIPS] Work around Bash 4.2 bug
- Authentication-results: sourceware.org; auth=none
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) ;;