2 * Copyright (c) 1995 by Sun Microsystems, Inc.
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.
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.
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.
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.
30 * Sun Microsystems, Inc.
32 * Mountain View, California 94043
35 #pragma ident "@(#) $Id: machdep.h,v 1.2 1995/02/16 22:58:55 georgn Exp $ - SMI"
38 * Global include file for all sgs SPARC machine dependent macros, constants
45 #include <sys/elf_SPARC.h>
48 * Make machine class dependent data types transparent to the common code
50 #define Word Elf32_Word
51 #define Sword Elf32_Sword
52 #define Half Elf32_Half
53 #define Addr Elf32_Addr
55 #define Byte unsigned char
57 #define Ehdr Elf32_Ehdr
58 #define Shdr Elf32_Shdr
60 #define Rel Elf32_Rela
61 #define Phdr Elf32_Phdr
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
71 * Make machine class dependent functions transparent to the common code
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
87 * Make relocation types transparent to the common code
89 #define M_REL_SHT_TYPE SHT_RELA /* section header type */