Commit 0093ca2b0e3fcbb71649682a84def684340f01c9

Guillem Jover 2018-03-05T00:02:34

Handle SPARC V8+ on Sun Studio compiler

1
2
3
4
5
6
7
8
9
10
11
12
13
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