Return ELF_CLASS_BOTH by default

* elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
This commit is contained in:
H.J. Lu 2015-05-13 03:57:46 -07:00
parent 6604eb5f40
commit aa9f728672
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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;
}
}