Add IDs for x86-64.

This commit is contained in:
fvdl 2001-06-19 00:41:53 +00:00
parent e2ff2f5762
commit 2563e4390d
2 changed files with 21 additions and 19 deletions

View File

@ -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 @@ struct exec {
#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 */

View File

@ -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 @@ typedef __int64_t Elf64_Sword;
#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 @@ typedef struct {
#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 @@ typedef struct {
} 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 @@ typedef struct {
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 @@ typedef struct {
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 @@ typedef struct {
#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 @@ typedef struct {
#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