Handle SPARC V8+ on Sun Studio compiler
diff --git a/src/local-elf.h b/src/local-elf.h
index f7cbd83..c11bf6e 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -186,7 +186,7 @@
#define ELF_TARG_MACH EM_SPARCV9
#define ELF_TARG_CLASS ELFCLASS64
#else
-#if defined(__sparc_v9__)
+#if defined(__sparc_v9__) || defined(__sparcv9)
#define ELF_TARG_MACH EM_SPARC32PLUS
#else
#define ELF_TARG_MACH EM_SPARC