Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5/include Sync with reality.
details: https://anonhg.NetBSD.org/src/rev/e595dfb08c1c
branches: trunk
changeset: 533977:e595dfb08c1c
user: scw <scw%NetBSD.org@localhost>
date: Thu Jul 11 21:20:23 2002 +0000
description:
Sync with reality.
diffstat:
sys/arch/sh5/include/elf_machdep.h | 63 +++++++++++++++++++++++++++++++++----
1 files changed, 56 insertions(+), 7 deletions(-)
diffs (101 lines):
diff -r ff27c775629d -r e595dfb08c1c sys/arch/sh5/include/elf_machdep.h
--- a/sys/arch/sh5/include/elf_machdep.h Thu Jul 11 21:14:24 2002 +0000
+++ b/sys/arch/sh5/include/elf_machdep.h Thu Jul 11 21:20:23 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elf_machdep.h,v 1.1 2002/07/05 13:31:57 scw Exp $ */
+/* $NetBSD: elf_machdep.h,v 1.2 2002/07/11 21:20:23 scw Exp $ */
#ifndef _BYTE_ORDER
#error Define _BYTE_ORDER!
@@ -16,11 +16,11 @@
break;
#define ELF64_MACHDEP_ID_CASES \
- case EM_SH64: /* XXX: Check this */ \
+ case EM_SH: \
break;
#define ELF32_MACHDEP_ID EM_SH
-#define ELF64_MACHDEP_ID EM_SH64 /* XXX: Check this */
+#define ELF64_MACHDEP_ID EM_SH
#ifndef _LP64
#define ARCH_ELFSIZE 32 /* MD native binary size */
@@ -41,11 +41,10 @@
#define EF_SH_SH3_DSP 0x05
#define EF_SH_SH3E 0x08
#define EF_SH_SH4 0x09
-#define EF_SH_SH5 0x0a /* XXX: Check this */
+#define EF_SH_SH5 0x0a
-#define EF_SH_HAS_DSP(x) (XXXX)
-#define EF_SH_HAS_FP(x) (XXXX)
-
+#define EF_SH_HAS_DSP(x) ((x)&4)
+#define EF_SH_HAS_FP(x) ((x)&8)
#define R_SH_NONE 0
#define R_SH_DIR32 1
@@ -70,6 +69,13 @@
#define R_SH_GNU_VTENTRY 35
#define R_SH_LOOP_START 36
#define R_SH_LOOP_END 37
+#define R_SH_DIR5U 45
+#define R_SH_DIR6U 46
+#define R_SH_DIR6S 47
+#define R_SH_DIR10S 48
+#define R_SH_DIR10SW 49
+#define R_SH_DIR10SL 50
+#define R_SH_DIR10SQ 51
#define R_SH_GOT32 160
#define R_SH_PLT32 161
#define R_SH_COPY 162
@@ -78,5 +84,48 @@
#define R_SH_RELATIVE 165
#define R_SH_GOTOFF 166
#define R_SH_GOTPC 167
+#define R_SH_GOTPLT32 168
+#define R_SH_GOT_LOW16 169
+#define R_SH_GOT_MEDLOW16 170
+#define R_SH_GOT_MEDHI16 171
+#define R_SH_GOT_HI16 172
+#define R_SH_GOTPLT_LOW16 173
+#define R_SH_GOTPLT_MEDLOW16 174
+#define R_SH_GOTPLT_MEDHI16 175
+#define R_SH_GOTPLT_HI16 176
+#define R_SH_PLT_LOW16 177
+#define R_SH_PLT_MEDLOW16 178
+#define R_SH_PLT_MEDHI16 179
+#define R_SH_PLT_HI16 180
+#define R_SH_GOTOFF_LOW16 181
+#define R_SH_GOTOFF_MEDLOW16 182
+#define R_SH_GOTOFF_MEDHI16 183
+#define R_SH_GOTOFF_HI16 184
+#define R_SH_GOTPC_LOW16 185
+#define R_SH_GOTPC_MEDLOW16 186
+#define R_SH_GOTPC_MEDHI16 187
+#define R_SH_GOTPC_HI16 188
+#define R_SH_GOT10BY4 189
+#define R_SH_GOTPLT10BY4 190
+#define R_SH_GOT10BY8 191
+#define R_SH_GOTPLT10BY8 192
+#define R_SH_COPY64 193
+#define R_SH_GLOB_DAT64 194
+#define R_SH_JMP_SLOT64 195
+#define R_SH_RELATIVE64 196
+#define R_SH_SHMEDIA_CODE 242
+#define R_SH_PT_16 243
+#define R_SH_IMMS16 244
+#define R_SH_IMMU16 245
+#define R_SH_IMM_LOW16 246
+#define R_SH_IMM_LOW16_PCREL 247
+#define R_SH_IMM_MEDLOW16 248
+#define R_SH_IMM_MEDLOW16_PCREL 249
+#define R_SH_IMM_MEDHI16 250
+#define R_SH_IMM_MEDHI16_PCREL 251
+#define R_SH_IMM_HI16 252
+#define R_SH_IMM_HI16_PCREL 253
+#define R_SH_64 254
+#define R_SH_64_PCREL 255
#define R_TYPE(name) __CONCAT(R_SH_,name)
Home |
Main Index |
Thread Index |
Old Index