This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Skip empty EMULATION_NAME


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=31b94bbb7b178be4e688bd250a111b0848af5b76

commit 31b94bbb7b178be4e688bd250a111b0848af5b76
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Apr 8 09:46:50 2015 -0700

    Skip empty EMULATION_NAME
    
    	* emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.

Diff:
---
 ld/ChangeLog                       | 4 ++++
 ld/emulparams/elf32bmipn32-defs.sh | 7 ++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index a76dcb3..b83c11e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* emulparams/elf32bmipn32-defs.sh: Skip empty EMULATION_NAME.
+
+2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* Makefile.am (ELF_CLFAGS): New.
 	(AM_CFLAGS): Add $(ELF_CLFAGS).
 	* configure.ac (elf_list_options): New.  AC_SUBST.
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]