Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add IDs for x86-64.



details:   https://anonhg.NetBSD.org/src/rev/a06b18f3d9d8
branches:  trunk
changeset: 511390:a06b18f3d9d8
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Jun 19 00:41:53 2001 +0000

description:
Add IDs for x86-64.

diffstat:

 sys/sys/exec_aout.h |   3 ++-
 sys/sys/exec_elf.h  |  37 +++++++++++++++++++------------------
 2 files changed, 21 insertions(+), 19 deletions(-)

diffs (110 lines):

diff -r 30336c3720f6 -r a06b18f3d9d8 sys/sys/exec_aout.h
--- a/sys/sys/exec_aout.h       Tue Jun 19 00:40:57 2001 +0000
+++ b/sys/sys/exec_aout.h       Tue Jun 19 00:41:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_aout.h,v 1.23 1999/09/13 10:31:44 itojun Exp $    */
+/*     $NetBSD: exec_aout.h,v 1.24 2001/06/19 00:41:54 fvdl Exp $      */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -82,6 +82,7 @@
 #define        MID_POWERPC     149     /* big-endian PowerPC */
 #define        MID_VAX         150     /* vax */
 #define        MID_SPARC64     151     /* LP64 sparc */
+#define MID_X86_64     152     /* AMD x86-64 */
 #define        MID_HP300       300     /* hp300 (68020+68881) BSD binary */
 #define        MID_HPUX        0x20C   /* hp200/300 HP-UX binary */
 #define        MID_HPUX800     0x20B   /* hp800 HP-UX binary */
diff -r 30336c3720f6 -r a06b18f3d9d8 sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Tue Jun 19 00:40:57 2001 +0000
+++ b/sys/sys/exec_elf.h        Tue Jun 19 00:41:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.45 2001/04/25 12:18:48 kleink Exp $     */
+/*     $NetBSD: exec_elf.h,v 1.46 2001/06/19 00:41:53 fvdl Exp $       */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 #define        ELF64_FSZ_SWORD 8
 typedef        __uint64_t      Elf64_Word;
 #define        ELF64_FSZ_WORD  8
-#endif /* __sparc_v9__ */
+#endif
 typedef        __int64_t       Elf64_Sxword;
 #define        ELF64_FSZ_XWORD 8
 typedef        __uint64_t      Elf64_Xword;
@@ -222,6 +222,7 @@
 #define        EM_MIPS_X       51      /* Stanford MIPS-X */
 #define        EM_COLDFIRE     52      /* Motorola Coldfire */
 #define        EM_68HC12       53      /* Motorola MC68HC12 */
+#define EM_X8664       62      /* AMD x86-64 */
 #define        EM_VAX          75      /* DIGITAL VAX */
 #define        EM_ALPHA_EXP    36902   /* used by NetBSD/alpha; obsolete */
 #define        EM_NUM          36903
@@ -304,18 +305,18 @@
 } Elf64_Shdr;
 
 /* sh_type */
-#define        SHT_NULL        0               /* Section header table entry unused */
-#define        SHT_PROGBITS    1               /* Program information */
-#define        SHT_SYMTAB      2               /* Symbol table */
-#define        SHT_STRTAB      3               /* String table */
-#define        SHT_RELA        4               /* Relocation information w/ addend */
-#define        SHT_HASH        5               /* Symbol hash table */
-#define        SHT_DYNAMIC     6               /* Dynamic linking information */
-#define        SHT_NOTE        7               /* Auxiliary information */
-#define        SHT_NOBITS      8               /* No space allocated in file image */
-#define        SHT_REL         9               /* Relocation information w/o addend */
-#define        SHT_SHLIB       10              /* Reserved, unspecified semantics */
-#define        SHT_DYNSYM      11              /* Symbol table for dynamic linker */
+#define        SHT_NULL        0
+#define        SHT_PROGBITS    1
+#define        SHT_SYMTAB      2
+#define        SHT_STRTAB      3
+#define        SHT_RELA        4
+#define        SHT_HASH        5
+#define        SHT_DYNAMIC     6
+#define        SHT_NOTE        7
+#define        SHT_NOBITS      8
+#define        SHT_REL         9
+#define        SHT_SHLIB       10
+#define        SHT_DYNSYM      11
 #define        SHT_NUM         12
 
 #define        SHT_LOOS        0x60000000      /* Operating system specific range */
@@ -422,7 +423,7 @@
        Elf32_Word      r_offset;       /* where to do it */
        Elf32_Word      r_info;         /* index & type of relocation */
        Elf32_Sword     r_addend;       /* adjustment value */
-} Elf32_Rela;
+} Elf32_RelA;
 
 /* r_info utility macros */
 #define        ELF32_R_SYM(info)       ((info) >> 8)
@@ -438,7 +439,7 @@
        Elf64_Addr      r_offset;       /* where to do it */
        Elf64_Xword     r_info;         /* index & type of relocation */
        Elf64_Sxword    r_addend;       /* adjustment value */
-} Elf64_Rela;
+} Elf64_RelA;
 
 /* r_info utility macros */
 #define        ELF64_R_SYM(info)       ((info) >> 32)
@@ -607,7 +608,7 @@
 #define        Elf_Shdr        Elf32_Shdr
 #define        Elf_Sym         Elf32_Sym
 #define        Elf_Rel         Elf32_Rel
-#define        Elf_Rela        Elf32_Rela
+#define        Elf_RelA        Elf32_RelA
 #define        Elf_Dyn         Elf32_Dyn
 #define        Elf_Word        Elf32_Word
 #define        Elf_Sword       Elf32_Sword
@@ -630,7 +631,7 @@
 #define        Elf_Shdr        Elf64_Shdr
 #define        Elf_Sym         Elf64_Sym
 #define        Elf_Rel         Elf64_Rel
-#define        Elf_Rela        Elf64_Rela
+#define        Elf_RelA        Elf64_RelA
 #define        Elf_Dyn         Elf64_Dyn
 #define        Elf_Word        Elf64_Word
 #define        Elf_Sword       Elf64_Sword



Home | Main Index | Thread Index | Old Index