aout_machdep.h revision 1.1 1 1.1 eeh /* $NetBSD: aout_machdep.h,v 1.1 1998/06/20 04:58:51 eeh Exp $ */
2 1.1 eeh
3 1.1 eeh /*
4 1.1 eeh * Copyright (c) 1993 Christopher G. Demetriou
5 1.1 eeh * All rights reserved.
6 1.1 eeh *
7 1.1 eeh * Redistribution and use in source and binary forms, with or without
8 1.1 eeh * modification, are permitted provided that the following conditions
9 1.1 eeh * are met:
10 1.1 eeh * 1. Redistributions of source code must retain the above copyright
11 1.1 eeh * notice, this list of conditions and the following disclaimer.
12 1.1 eeh * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 eeh * notice, this list of conditions and the following disclaimer in the
14 1.1 eeh * documentation and/or other materials provided with the distribution.
15 1.1 eeh * 3. The name of the author may not be used to endorse or promote products
16 1.1 eeh * derived from this software without specific prior written permission
17 1.1 eeh *
18 1.1 eeh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 1.1 eeh * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 1.1 eeh * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 1.1 eeh * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 1.1 eeh * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 1.1 eeh * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 1.1 eeh * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 1.1 eeh * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 1.1 eeh * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 1.1 eeh * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 1.1 eeh */
29 1.1 eeh
30 1.1 eeh #ifndef _SPARC_EXEC_H_
31 1.1 eeh #define _SPARC_EXEC_H_
32 1.1 eeh
33 1.1 eeh #define __LDPGSZ 8192 /* linker page size */
34 1.1 eeh
35 1.1 eeh enum reloc_type {
36 1.1 eeh RELOC_8, RELOC_16, RELOC_32,
37 1.1 eeh RELOC_DISP8, RELOC_DISP16, RELOC_DISP32,
38 1.1 eeh RELOC_WDISP30, RELOC_WDISP22,
39 1.1 eeh RELOC_HI22, RELOC_22,
40 1.1 eeh RELOC_13, RELOC_LO10,
41 1.1 eeh RELOC_UNUSED1, RELOC_UNUSED2,
42 1.1 eeh RELOC_BASE10, RELOC_BASE13, RELOC_BASE22,
43 1.1 eeh RELOC_PC10, RELOC_PC22,
44 1.1 eeh RELOC_JMP_TBL,
45 1.1 eeh RELOC_UNUSED3,
46 1.1 eeh RELOC_GLOB_DAT, RELOC_JMP_SLOT, RELOC_RELATIVE
47 1.1 eeh };
48 1.1 eeh
49 1.1 eeh /* Relocation format. */
50 1.1 eeh struct relocation_info_sparc {
51 1.1 eeh int r_address; /* offset in text or data segment */
52 1.1 eeh unsigned int r_symbolnum : 24, /* ordinal number of add symbol */
53 1.1 eeh r_extern : 1, /* 1 if need to add symbol to value */
54 1.1 eeh : 2; /* unused bits */
55 1.1 eeh enum reloc_type r_type : 5; /* relocation type time copy */
56 1.1 eeh long r_addend; /* relocation addend */
57 1.1 eeh };
58 1.1 eeh #define relocation_info relocation_info_sparc
59 1.1 eeh
60 1.1 eeh #endif /* _SPARC_EXEC_H_ */
61