1*16031f7dSrin /* $NetBSD: aout_machdep.h,v 1.6 2020/07/06 09:34:17 rin Exp $ */ 25804d3f6Sws 35804d3f6Sws /*- 45804d3f6Sws * Copyright (C) 1995 Wolfgang Solfrank. 55804d3f6Sws * Copyright (C) 1995 TooLs GmbH. 65804d3f6Sws * All rights reserved. 75804d3f6Sws * 85804d3f6Sws * Redistribution and use in source and binary forms, with or without 95804d3f6Sws * modification, are permitted provided that the following conditions 105804d3f6Sws * are met: 115804d3f6Sws * 1. Redistributions of source code must retain the above copyright 125804d3f6Sws * notice, this list of conditions and the following disclaimer. 135804d3f6Sws * 2. Redistributions in binary form must reproduce the above copyright 145804d3f6Sws * notice, this list of conditions and the following disclaimer in the 155804d3f6Sws * documentation and/or other materials provided with the distribution. 165804d3f6Sws * 3. All advertising materials mentioning features or use of this software 175804d3f6Sws * must display the following acknowledgement: 185804d3f6Sws * This product includes software developed by TooLs GmbH. 195804d3f6Sws * 4. The name of TooLs GmbH may not be used to endorse or promote products 205804d3f6Sws * derived from this software without specific prior written permission. 215804d3f6Sws * 225804d3f6Sws * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 235804d3f6Sws * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 245804d3f6Sws * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 255804d3f6Sws * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 265804d3f6Sws * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 275804d3f6Sws * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 285804d3f6Sws * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 295804d3f6Sws * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 305804d3f6Sws * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 315804d3f6Sws * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 325804d3f6Sws */ 33*16031f7dSrin 34f9cac3b1Smanu #ifndef _POWERPC_AOUT_MACHDEP_H_ 35f9cac3b1Smanu #define _POWERPC_AOUT_MACHDEP_H_ 365804d3f6Sws 375804d3f6Sws #include <machine/reloc.h> 385804d3f6Sws 395804d3f6Sws /* No special executable format (yet) */ 405804d3f6Sws #define cpu_exec_aout_makecmds(a, b) ENOEXEC 415804d3f6Sws 425804d3f6Sws /* Relocation format. */ 435804d3f6Sws struct relocation_info_ppc { 445804d3f6Sws int r_address; /* offset in text or data segment */ 455804d3f6Sws unsigned int r_symbolnum : 24, /* ordinal number of add symbol */ 465804d3f6Sws r_extern : 1, /* 1 if need to add symbol to value */ 4764ba00beSsakamoto : 1; /* unused bits */ 4808ca85d0Swiz u_int32_t r_type : 6; /* relocation type */ 495804d3f6Sws long r_addend; /* relocation addend */ 505804d3f6Sws }; 515804d3f6Sws #define relocation_info relocation_info_ppc 525804d3f6Sws 53e8cc3884Sthorpej #define AOUT_LDPGSZ 4096 545804d3f6Sws 55f9cac3b1Smanu #endif /* _POWERPC_AOUT_MACHDEP_H_ */ 56