summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-19 15:22:03 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-19 15:22:03 +0000
commit2079b7c9403c49b83d9889b207dacc114936cdb8 (patch)
treeff1b36c9b9e6530d47fb3bcc7c8e8db4f33fe233 /sys/arch/sparc64/include
parenteed17f2149d268e5188137807944008d69f05d36 (diff)
match our reality.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/exec.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/exec.h b/sys/arch/sparc64/include/exec.h
index 2a3a05b9d63..c3a343a2c60 100644
--- a/sys/arch/sparc64/include/exec.h
+++ b/sys/arch/sparc64/include/exec.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.h,v 1.1 2001/08/18 16:19:28 jason Exp $ */
+/* $OpenBSD: exec.h,v 1.2 2001/08/19 15:22:02 art Exp $ */
/* $NetBSD: elf_machdep.h,v 1.7 2001/02/11 00:18:49 eeh Exp $ */
#define ELF32_MACHDEP_ENDIANNESS ELFDATA2MSB
@@ -15,10 +15,16 @@
#ifdef __arch64__
#define ARCH_ELFSIZE 64 /* MD native binary size */
+#define ELF_TARG_CLASS ELFCLASS64
+#define ELF_TARG_MACH EM_SPARCV9
#else
#define ARCH_ELFSIZE 32 /* MD native binary size */
+#define ELF_TARG_CLASS ELFCLASS32
+#define ELF_TARG_MACH EM_SPARC
#endif
+#define ELF_TARG_DATA ELFDATA2MSB
+
/* The following are what is used for AT_SUN_HWCAP: */
#define AV_SPARC_HWMUL_32x32 1 /* 32x32-bit smul/umul is efficient */
#define AV_SPARC_HWDIV_32x32 2 /* 32x32-bit sdiv/udiv is efficient */