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