Made EM_SPARC32PLUS be recognized as belonging to the SPARC architecture. Programs which have this set will not work because the stack works differently, so this should probably throw an error and quit.
--HG-- extra : convert_revision : b770045cad02d30445de0d7cc4d8c611a0ac931f
This commit is contained in:
parent
9955ebd03c
commit
b91b877e9a
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,8 @@ ElfObject::tryFile(const string &fname, int fd, size_t len, uint8_t *data)
|
|||
//what it must be.
|
||||
if (ehdr.e_machine == EM_SPARC64 ||
|
||||
ehdr.e_machine == EM_SPARC ||
|
||||
ehdr.e_machine == EM_SPARCV9) {
|
||||
ehdr.e_machine == EM_SPARCV9 ||
|
||||
ehdr.e_machine == EM_SPARC32PLUS) {
|
||||
arch = ObjectFile::SPARC;
|
||||
} else if (ehdr.e_machine == EM_MIPS
|
||||
&& ehdr.e_ident[EI_CLASS] == ELFCLASS32) {
|
||||
|
|
Loading…
Reference in a new issue