From 31b94bbb7b178be4e688bd250a111b0848af5b76 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 8 Apr 2015 09:46:50 -0700 Subject: Skip empty EMULATION_NAME * emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME. --- ld/emulparams/elf32bmipn32-defs.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ld/emulparams') 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 -- cgit v1.1