Made EM_SPARC32PLUS be recognized as belonging to the SPARC architecture. Programs...
authorGabe Black <gblack@eecs.umich.edu>
Mon, 15 May 2006 03:55:07 +0000 (23:55 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 15 May 2006 03:55:07 +0000 (23:55 -0400)
--HG--
extra : convert_revision : b770045cad02d30445de0d7cc4d8c611a0ac931f

base/loader/elf_object.cc

index a104719af470fb38f0d9325512f89cb8ef26a1a6..9f30a1bbe93d893e800d985e24c5d697a4addd3f 100644 (file)
@@ -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) {