[binutils-gdb] Return ELF_CLASS_BOTH by default

H.J.Lu hjl@sourceware.org
Wed May 13 10:58:00 GMT 2015


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

commit aa9f7286724c2e47077f2f5456d464a961f8e8a4
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed May 13 03:57:46 2015 -0700

    Return ELF_CLASS_BOTH by default
    
    	* elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.

Diff:
---
 binutils/ChangeLog | 4 ++++
 binutils/elfedit.c | 3 +--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ee9a793f..333a82d 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
+
 2015-05-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
 
 	* MAINTAINERS: Add myself as s390 and s390x maintainer.
diff --git a/binutils/elfedit.c b/binutils/elfedit.c
index 1bcb48a..02b9c98 100644
--- a/binutils/elfedit.c
+++ b/binutils/elfedit.c
@@ -82,8 +82,7 @@ elf_class (int mach)
     case EM_NONE:
       return ELF_CLASS_BOTH;
     default:
-      error (_("Unknown machine type: %d\n"), mach);
-      return ELF_CLASS_UNKNOWN;
+      return ELF_CLASS_BOTH;
     }
 }



More information about the Binutils-cvs mailing list