aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-04-08 09:46:50 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-04-08 09:46:50 -0700
commit31b94bbb7b178be4e688bd250a111b0848af5b76 (patch)
treed3c6bd9057489ab1e066d824f5a404c530d69c34 /ld/emulparams
parent5150992626e67d2f6d1573737e06126bfb712c30 (diff)
downloadgdb-31b94bbb7b178be4e688bd250a111b0848af5b76.zip
gdb-31b94bbb7b178be4e688bd250a111b0848af5b76.tar.gz
gdb-31b94bbb7b178be4e688bd250a111b0848af5b76.tar.bz2
Skip empty EMULATION_NAME
* emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/elf32bmipn32-defs.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/emulparams/elf32bmipn32-defs.sh b/ld/emulparams/elf32bmipn32-defs.sh
index 723eac8..af8f01d 100644
--- a/ld/emulparams/elf32bmipn32-defs.sh
+++ b/ld/emulparams/elf32bmipn32-defs.sh
@@ -13,9 +13,10 @@ LITTLE_OUTPUT_FORMAT="elf32-littlemips"
TEMPLATE_NAME=elf32
EXTRA_EM_FILE=mipself
-case "$EMULATION_NAME" in
-elf32*n32*) ELFSIZE=32 ;;
-elf64*) ELFSIZE=64 ;;
+case x"$EMULATION_NAME" in
+xelf32*n32*) ELFSIZE=32 ;;
+xelf64*) ELFSIZE=64 ;;
+x) ;;
*) echo $0: unhandled emulation $EMULATION_NAME >&2; exit 1 ;;
esac