Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Elf64_Word should be 32 bits; alpha is the exception...



details:   https://anonhg.NetBSD.org/src/rev/cb2fd9f3aaf4
branches:  trunk
changeset: 511470:cb2fd9f3aaf4
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed Jun 20 01:07:22 2001 +0000

description:
Elf64_Word should be 32 bits; alpha is the exception rather than
the rule, so change the ifdef to reflect this.

diffstat:

 sys/sys/exec_elf.h |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (36 lines):

diff -r 6678eef8c612 -r cb2fd9f3aaf4 sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Tue Jun 19 23:59:20 2001 +0000
+++ b/sys/sys/exec_elf.h        Wed Jun 20 01:07:22 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.47 2001/06/19 09:10:30 fvdl Exp $       */
+/*     $NetBSD: exec_elf.h,v 1.48 2001/06/20 01:07:22 fvdl Exp $       */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -60,17 +60,19 @@
 #define        ELF64_FSZ_OFF   8
 typedef        __int32_t       Elf64_Shalf;
 #define        ELF64_FSZ_SHALF 4
-#ifdef __sparc_v9__
+
+#ifdef __alpha__
+typedef        __int64_t       Elf64_Sword;
+#define        ELF64_FSZ_SWORD 8
+typedef        __uint64_t      Elf64_Word;
+#define        ELF64_FSZ_WORD  8
+#else
 typedef        __int32_t       Elf64_Sword;
 #define        ELF64_FSZ_SWORD 4
 typedef        __uint32_t      Elf64_Word;
 #define        ELF64_FSZ_WORD  4
-#else
-typedef        __int64_t       Elf64_Sword;
-#define        ELF64_FSZ_SWORD 8
-typedef        __uint64_t      Elf64_Word;
-#define        ELF64_FSZ_WORD  8
-#endif /* __sparc_v9__ */
+#endif /* __alpha__ */
+
 typedef        __int64_t       Elf64_Sxword;
 #define        ELF64_FSZ_XWORD 8
 typedef        __uint64_t      Elf64_Xword;



Home | Main Index | Thread Index | Old Index