Contents in 1999-06-04-13 of release-21-2.
[chise/xemacs-chise.git.1] / dynodump / i386 / machdep.h
1 /*
2  *      Copyright (c) 1995 by Sun Microsystems, Inc.
3  *      All rights reserved.
4  *
5  * This source code is a product of Sun Microsystems, Inc. and is provided
6  * for unrestricted use provided that this legend is included on all tape
7  * media and as a part of the software program in whole or part.  Users
8  * may copy or modify this source code without charge, but are not authorized
9  * to license or distribute it to anyone else except as part of a product or
10  * program developed by the user.
11  *
12  * THIS PROGRAM CONTAINS SOURCE CODE COPYRIGHTED BY SUN MICROSYSTEMS, INC.
13  * SUN MICROSYSTEMS, INC., MAKES NO REPRESENTATIONS ABOUT THE SUITABLITY
14  * OF SUCH SOURCE CODE FOR ANY PURPOSE.  IT IS PROVIDED "AS IS" WITHOUT
15  * EXPRESS OR IMPLIED WARRANTY OF ANY KIND.  SUN MICROSYSTEMS, INC. DISCLAIMS
16  * ALL WARRANTIES WITH REGARD TO SUCH SOURCE CODE, INCLUDING ALL IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN
18  * NO EVENT SHALL SUN MICROSYSTEMS, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT,
19  * INCIDENTAL, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
20  * FROM USE OF SUCH SOURCE CODE, REGARDLESS OF THE THEORY OF LIABILITY.
21  * 
22  * This source code is provided with no support and without any obligation on
23  * the part of Sun Microsystems, Inc. to assist in its use, correction, 
24  * modification or enhancement.
25  *
26  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
27  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS
28  * SOURCE CODE OR ANY PART THEREOF.
29  *
30  * Sun Microsystems, Inc.
31  * 2550 Garcia Avenue
32  * Mountain View, California 94043
33  */
34
35 #pragma ident   "@(#) $Id: machdep.h,v 1.3 1997/05/29 04:23:02 steve Exp $ - SMI"
36
37 /*
38  * Global include file for all sgs Intel machine dependent macros, constants
39  * and declarations.
40  */
41 #ifndef MACHDEP_DOT_H
42 #define MACHDEP_DOT_H
43
44 #include        <link.h>
45 #include        <sys/elf_386.h>
46
47 /*
48  * Make machine class dependent data types transparent to the common code
49  */
50 #define Word            Elf32_Word
51 #define Sword           Elf32_Sword
52 #define Half            Elf32_Half
53 #define Addr            Elf32_Addr
54 #define Off             Elf32_Off
55 #define Byte            unsigned char
56
57 #define Ehdr            Elf32_Ehdr
58 #define Shdr            Elf32_Shdr
59 #define Sym             Elf32_Sym
60 #define Rel             Elf32_Rel
61 #define Phdr            Elf32_Phdr
62 #define Dyn             Elf32_Dyn
63 #define Boot            Elf32_Boot
64 #define Verdef          Elf32_Verdef
65 #define Verdaux         Elf32_Verdaux
66 #define Verneed         Elf32_Verneed
67 #define Vernaux         Elf32_Vernaux
68 #define Versym          Elf32_Versym
69
70 /*
71  * Make machine class dependent functions transparent to the common code
72  */
73 #define ELF_R_TYPE      ELF32_R_TYPE
74 #define ELF_R_INFO      ELF32_R_INFO
75 #define ELF_R_SYM       ELF32_R_SYM
76 #define ELF_ST_BIND     ELF32_ST_BIND
77 #define ELF_ST_TYPE     ELF32_ST_TYPE
78 #define ELF_ST_INFO     ELF32_ST_INFO
79 #define elf_fsize       elf32_fsize
80 #define elf_getehdr     elf32_getehdr
81 #define elf_getphdr     elf32_getphdr
82 #define elf_newehdr     elf32_newehdr
83 #define elf_newphdr     elf32_newphdr
84 #define elf_getshdr     elf32_getshdr
85 #define elf_xlatetof    elf32_xlatetof
86 #define elf_xlatetom    elf32_xlatetom
87
88 /*
89  * Make relocation types transparent to the common code
90  */
91 #define M_REL_SHT_TYPE  SHT_REL         /* section header type */
92
93 #endif