1*36fd90dcSjsg /* $OpenBSD: exec.h,v 1.16 2021/03/11 11:16:59 jsg Exp $ */ 2f33a460bSpefo 347bc79e1Srahnds /* 4f33a460bSpefo * Copyright (c) 1997 Per Fogelstrom, Opsycon AB. 547bc79e1Srahnds * 647bc79e1Srahnds * Redistribution and use in source and binary forms, with or without 747bc79e1Srahnds * modification, are permitted provided that the following conditions 847bc79e1Srahnds * are met: 947bc79e1Srahnds * 1. Redistributions of source code must retain the above copyright 1047bc79e1Srahnds * notice, this list of conditions and the following disclaimer. 1147bc79e1Srahnds * 2. Redistributions in binary form must reproduce the above copyright 1247bc79e1Srahnds * notice, this list of conditions and the following disclaimer in the 1347bc79e1Srahnds * documentation and/or other materials provided with the distribution. 1447bc79e1Srahnds * 15f33a460bSpefo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 16f33a460bSpefo * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17f33a460bSpefo * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18f33a460bSpefo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 19f33a460bSpefo * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20f33a460bSpefo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21f33a460bSpefo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22f33a460bSpefo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23f33a460bSpefo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24f33a460bSpefo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25f33a460bSpefo * SUCH DAMAGE. 2647bc79e1Srahnds * 27*36fd90dcSjsg * $Id: exec.h,v 1.16 2021/03/11 11:16:59 jsg Exp $ 2847bc79e1Srahnds */ 2947bc79e1Srahnds 3052c13d20Sdrahn #ifndef _POWERPC_EXEC_H_ 3152c13d20Sdrahn #define _POWERPC_EXEC_H_ 3247bc79e1Srahnds 3347bc79e1Srahnds #define __LDPGSZ 4096 /* linker page size */ 3447bc79e1Srahnds 35710c1cd8Sart #define ARCH_ELFSIZE 32 36710c1cd8Sart 3747bc79e1Srahnds #define ELF_TARG_CLASS ELFCLASS32 3847bc79e1Srahnds #define ELF_TARG_DATA ELFDATA2MSB 3947bc79e1Srahnds #define ELF_TARG_MACH EM_PPC 4047bc79e1Srahnds 41*36fd90dcSjsg /* Processor specific dynamic tag values. */ 422bf2b428Skettenis #define DT_PPC_GOT 0x70000000 432bf2b428Skettenis 442bf2b428Skettenis #define DT_PROCNUM (DT_PPC_GOT - DT_LOPROC + 1) 452bf2b428Skettenis 4652c13d20Sdrahn #endif /* _POWERPC_EXEC_H_ */ 47