diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-17 08:55:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-17 08:55:52 +0000 |
commit | 4f535b771398bc54070bec2dacdfe5b8a8e84ff8 (patch) | |
tree | 88431d0bbb5fe8379404632269e35b055b7bfec3 | |
parent | 6ed55286588674abaf0e82fa1d91cb72ba2c5b51 (diff) |
This will never be a default exec type
-rw-r--r-- | sys/sys/exec_som.h | 189 |
1 files changed, 0 insertions, 189 deletions
diff --git a/sys/sys/exec_som.h b/sys/sys/exec_som.h deleted file mode 100644 index a8adfd580fb..00000000000 --- a/sys/sys/exec_som.h +++ /dev/null @@ -1,189 +0,0 @@ -/* $OpenBSD: exec_som.h,v 1.3 1998/07/14 17:16:21 mickey Exp $ */ - -/* - * Copyright 1996 1995 by Open Software Foundation, Inc. - * All Rights Reserved - * - * Permission to use, copy, modify, and distribute this software and - * its documentation for any purpose and without fee is hereby granted, - * provided that the above copyright notice appears in all copies and - * that both the copyright notice and this permission notice appear in - * supporting documentation. - * - * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE - * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE. - * - * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR - * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, - * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ -/* - * (c) Copyright 1991 HEWLETT-PACKARD COMPANY - * - * To anyone who acknowledges that this file is provided "AS IS" - * without any express or implied warranty: - * permission to use, copy, modify, and distribute this file - * for any purpose is hereby granted without fee, provided that - * the above copyright notice and this notice appears in all - * copies, and that the name of Hewlett-Packard Company not be - * used in advertising or publicity pertaining to distribution - * of the software without specific, written prior permission. - * Hewlett-Packard Company makes no representations about the - * suitability of this software for any purpose. - */ - -/* - * Copyright (c) 1990,1994 The University of Utah and - * the Computer Systems Laboratory (CSL). All rights reserved. - * - * THE UNIVERSITY OF UTAH AND CSL PROVIDE THIS SOFTWARE IN ITS "AS IS" - * CONDITION, AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES - * WHATSOEVER RESULTING FROM ITS USE. - * - * CSL requests users of this software to return to csl-dist@cs.utah.edu any - * improvements that they make and grant CSL redistribution rights. - * - * Utah $Hdr: exec.h 1.8 94/12/14$ - */ - -/* - * HP object formats - */ - -#ifndef _SYS_EXEC_SOM_H_ -#define _SYS_EXEC_SOM_H_ - -#include <machine/som.h> - -struct som_aux_id { - u_int mandatory : 1; - u_int copy : 1; - u_int append : 1; - u_int ignore : 1; - u_int reserved : 12; - u_int type : 16; - u_int length; -}; - -struct som_exec_auxhdr { - struct som_aux_id som_auxhdr; /* som auxiliary header header */ - long exec_tsize; /* text size in bytes */ - long exec_tmem; /* offset of text in memory */ - long exec_tfile; /* location of text in file */ - long exec_dsize; /* initialized data */ - long exec_dmem; /* offset of data in memory */ - long exec_dfile; /* location of data in file */ - long exec_bsize; /* uninitialized data (bss) */ - long exec_entry; /* offset of entrypoint */ - long exec_flags; /* loader flags */ - long exec_bfill; /* bss initialization value */ -}; - -struct som_sys_clock { - u_int secs; - u_int nanosecs; -}; - -/* - * a_magic values - */ - -#define SOM_EXEC_MAGIC 0x0107 /* normal executable */ -#define SOM_SHARE_MAGIC 0x0108 /* shared executable */ -#define SOM_DEMAND_MAGIC 0x010B /* demand-load executable */ - - -struct som_filehdr { - short int system_id; /* magic number - system */ - short int a_magic; /* magic number - file type */ - u_int version_id; /* version id; format= YYMMDDHH */ - struct som_sys_clock file_time; /* system clock- zero if unused */ - u_int entry_space; /* idx of space containing entry pt */ - u_int entry_subspace; /* idx of subspace for entry point */ - u_int entry_offset; /* offset of entry point */ - u_int aux_header_location; /* auxiliary header location */ - u_int aux_header_size; /* auxiliary header size */ - u_int som_length; /* length in bytes of entire som*/ - u_int presumed_dp; /* DP val assumed during compilation */ - u_int space_location; /* loc in file of space dictionary */ - u_int space_total; /* number of space entries */ - u_int subspace_location; /* location of subspace entries */ - u_int subspace_total; /* number of subspace entries */ - u_int loader_fixup_location; /* space reference array */ - u_int loader_fixup_total; /* total number of space ref recs */ - u_int space_strings_location; /* file location of string area - for space and subspace names */ - u_int space_strings_size; /* size of string area for space - and subspace names */ - u_int init_array_location; /* location in file of init pointers */ - u_int init_array_total; /* number of init. pointers */ - u_int compiler_location; /* loc in file of module dictionary*/ - u_int compiler_total; /* number of modules */ - u_int symbol_location; /* loc in file of symbol dictionary*/ - u_int symbol_total; /* number of symbol records */ - u_int fixup_request_location; /* loc in file of fix_up requests */ - u_int fixup_request_total; /* number of fixup requests */ - u_int symbol_strings_location; /* file location of string area - for module and symbol names */ - u_int symbol_strings_size; /* size of string area for - module and symbol names */ - u_int unloadable_sp_location; /* byte offset of first byte of - data for unloadable spaces */ - u_int unloadable_sp_size; /* bytes of data for unloadable spaces*/ - u_int checksum; -}; - -/****************************************************************************** -* * -* The symbol dictionary consists of a sequence of symbol blocks * -* An entry into the symbol dictionary requires at least the * -* symbol_dictionary_record; The symbol_extension and argument_descriptor * -* records are optional * -* * -*******************************************************************************/ - -struct som_symbol_dictionary_record { - - u_int symbol_type : 8; - u_int symbol_scope : 4; - u_int check_level : 3; - u_int must_qualify : 1; - u_int initially_frozen : 1; - u_int memory_resident : 1; - u_int is_common : 1; - u_int dup_common : 1; - u_int xleast : 2; - u_int arg_reloc :10; - union { char *n_name; u_int n_strx; } name, qualifier_name; - u_int symbol_info; - u_int symbol_value; -}; - -/* The following is a list of the valid symbol types */ -#define ST_NULL 0 -#define ST_ABSOLUTE 1 -#define ST_DATA 2 -#define ST_CODE 3 -#define ST_PRI_PROG 4 -#define ST_SEC_PROG 5 -#define ST_ENTRY 6 -#define ST_STORAGE 7 -#define ST_STUB 8 -#define ST_MODULE 9 -#define ST_SYM_EXT 10 -#define ST_ARG_EXT 11 -#define ST_MILLICODE 12 -#define ST_PLABEL 13 - -/* The following is a list of the valid symbol scopes */ - -#define SS_UNSAT 0 -#define SS_EXTERNAL 1 -#define SS_GLOBAL 2 -#define SS_UNIVERSAL 3 - -#endif /* _SYS_EXEC_SOM_H_ */ - |