Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/include Add SuperH ELF header flags.
details: https://anonhg.NetBSD.org/src/rev/f194e18767eb
branches: trunk
changeset: 521359:f194e18767eb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Jan 29 01:42:57 2002 +0000
description:
Add SuperH ELF header flags.
diffstat:
sys/arch/sh3/include/elf_machdep.h | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 9eef0936577c -r f194e18767eb sys/arch/sh3/include/elf_machdep.h
--- a/sys/arch/sh3/include/elf_machdep.h Tue Jan 29 01:35:36 2002 +0000
+++ b/sys/arch/sh3/include/elf_machdep.h Tue Jan 29 01:42:57 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elf_machdep.h,v 1.6 2002/01/29 01:35:36 thorpej Exp $ */
+/* $NetBSD: elf_machdep.h,v 1.7 2002/01/29 01:42:57 thorpej Exp $ */
#ifndef _BYTE_ORDER
#error Define _BYTE_ORDER!
@@ -21,6 +21,24 @@
#define ARCH_ELFSIZE 32 /* MD native binary size */
+/*
+ * SuperH ELF header flags.
+ */
+#define EF_SH_MACH_MASK 0x1f
+
+#define EF_SH_UNKNOWN 0x00
+#define EF_SH_SH1 0x01
+#define EF_SH_SH2 0x02
+#define EF_SH_SH3 0x03
+#define EF_SH_DSP 0x04
+#define EF_SH_SH3_DSP 0x05
+#define EF_SH_SH3E 0x08
+#define EF_SH_SH4 0x09
+
+#define EF_SH_HAS_DSP(x) ((x) & EF_SH_DSP)
+#define EF_SH_HAS_FP(x) ((x) & EF_SH_SH3E)
+
+
#define R_SH_NONE 0
#define R_SH_DIR32 1
#define R_SH_REL32 2
Home |
Main Index |
Thread Index |
Old Index