Commit 0b65d439 authored by James Clarke's avatar James Clarke Committed by Guillem Jover

Add support for ELF machine EM_SPARC32PLUS

32-bit SPARC on V8+ uses a different ELF machine type.

Fixes: https://bugs.gentoo.org/634550Signed-off-by: Guillem Jover's avatarGuillem Jover <guillem@hadrons.org>
parent 0b61c5ff
......@@ -186,7 +186,11 @@
#define ELF_TARG_MACH EM_SPARCV9
#define ELF_TARG_CLASS ELFCLASS64
#else
#if defined(__sparc_v9__)
#define ELF_TARG_MACH EM_SPARC32PLUS
#else
#define ELF_TARG_MACH EM_SPARC
#endif
#define ELF_TARG_CLASS ELFCLASS32
#endif
#define ELF_TARG_DATA ELFDATA2MSB
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment