11.8Sryo/*	$NetBSD: aout_machdep.h,v 1.8 2018/03/17 04:16:09 ryo Exp $	*/
21.1Sbjh21
31.1Sbjh21/*
41.1Sbjh21 * Copyright (c) 1994-1996 Mark Brinicombe.
51.1Sbjh21 * All rights reserved.
61.1Sbjh21 *
71.1Sbjh21 * Redistribution and use in source and binary forms, with or without
81.1Sbjh21 * modification, are permitted provided that the following conditions
91.1Sbjh21 * are met:
101.1Sbjh21 * 1. Redistributions of source code must retain the above copyright
111.1Sbjh21 *    notice, this list of conditions and the following disclaimer.
121.1Sbjh21 * 2. Redistributions in binary form must reproduce the above copyright
131.1Sbjh21 *    notice, this list of conditions and the following disclaimer in the
141.1Sbjh21 *    documentation and/or other materials provided with the distribution.
151.1Sbjh21 * 3. All advertising materials mentioning features or use of this software
161.1Sbjh21 *    must display the following acknowledgement:
171.1Sbjh21 *	This product includes software developed by Mark Brinicombe
181.1Sbjh21 * 4. The name of the author may not be used to endorse or promote
191.1Sbjh21 *    products derived from this software without specific prior written
201.1Sbjh21 *    permission.
211.1Sbjh21 *
221.1Sbjh21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
231.1Sbjh21 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
241.1Sbjh21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
251.1Sbjh21 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
261.1Sbjh21 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
271.1Sbjh21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
281.1Sbjh21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
291.1Sbjh21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
301.1Sbjh21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
311.1Sbjh21 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
321.1Sbjh21 * SUCH DAMAGE.
331.1Sbjh21 */
341.1Sbjh21
351.7Schristos#ifndef _ARM_AOUT_MACHDEP_H_
361.7Schristos#define _ARM_AOUT_MACHDEP_H_
371.1Sbjh21
381.2Sthorpej#define	AOUT_LDPGSZ	4096
391.1Sbjh21
401.1Sbjh21/* Relocation format. */
411.1Sbjh21
421.1Sbjh21struct relocation_info_arm6 {
431.1Sbjh21	int r_address;		/* offset in text or data segment */
441.1Sbjh21	unsigned r_symbolnum:24;/* ordinal number of add symbol */
451.1Sbjh21	unsigned r_pcrel:1;	/* 1 if value should be pc-relative */
461.1Sbjh21	unsigned r_length:2;	/* 0=byte, 1=word, 2=long, 3=24bits shifted by 2 */
471.1Sbjh21	unsigned r_extern:1;	/* 1 if need to add symbol to value */
481.1Sbjh21	unsigned r_neg:1;	/* 1 if addend is negative */
491.1Sbjh21	unsigned r_baserel:1;	/* 1 if linkage table relative */
501.1Sbjh21	unsigned r_jmptable:1;	/* 1 if relocation to jump table */
511.1Sbjh21	unsigned r_relative:1;	/* 1 if load address relative */
521.1Sbjh21};
531.1Sbjh21
541.1Sbjh21#define relocation_info relocation_info_arm6
551.8Sryo
561.1Sbjh21/* No special executable format */
571.4Sjmc#define	cpu_exec_aout_makecmds(a, b)	ENOEXEC
581.1Sbjh21
591.6Smatt#endif	/* _ARM_AOUT_MACHDEP_H_ */
60