4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 1985 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
33 * format of the exec header
34 * known by kernel and by user programs
37 unsigned char a_dynamic
:1; /* has a __DYNAMIC */
38 unsigned char a_toolversion
:7;/* version of toolset used to create this file */
39 unsigned char a_machtype
; /* machine type */
40 unsigned short a_magic
; /* magic number */
41 unsigned long a_text
; /* size of text segment */
42 unsigned long a_data
; /* size of initialized data */
43 unsigned long a_bss
; /* size of uninitialized data */
44 unsigned long a_syms
; /* size of symbol table */
45 unsigned long a_entry
; /* entry point */
46 unsigned long a_trsize
; /* size of text relocation */
47 unsigned long a_drsize
; /* size of data relocation */
50 #define OMAGIC 0407 /* old impure format */
51 #define NMAGIC 0410 /* read-only text */
52 #define ZMAGIC 0413 /* demand load format */
56 #define M_OLDSUN2 0 /* old sun-2 executable files */
57 #define M_68010 1 /* runs on either 68010 or 68020 */
58 #define M_68020 2 /* runs only on 68020 */
59 #define M_SPARC 3 /* runs only on SPARC */
61 #define TV_SUN2_SUN3 0
64 #endif /* !_sys_exec_h */