xref: /linux/arch/arc/include/uapi/asm/elf.h (revision 8ccfe6675fa974bd06d64f74d0fdee6a5267d2aa)
1*8ccfe667SVineet Gupta /*
2*8ccfe667SVineet Gupta  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3*8ccfe667SVineet Gupta  *
4*8ccfe667SVineet Gupta  * This program is free software; you can redistribute it and/or modify
5*8ccfe667SVineet Gupta  * it under the terms of the GNU General Public License version 2 as
6*8ccfe667SVineet Gupta  * published by the Free Software Foundation.
7*8ccfe667SVineet Gupta  */
8*8ccfe667SVineet Gupta 
9*8ccfe667SVineet Gupta #ifndef _UAPI__ASM_ARC_ELF_H
10*8ccfe667SVineet Gupta #define _UAPI__ASM_ARC_ELF_H
11*8ccfe667SVineet Gupta 
12*8ccfe667SVineet Gupta #include <asm/ptrace.h>		/* for user_regs_struct */
13*8ccfe667SVineet Gupta 
14*8ccfe667SVineet Gupta /* Machine specific ELF Hdr flags */
15*8ccfe667SVineet Gupta #define EF_ARC_OSABI_MSK	0x00000f00
16*8ccfe667SVineet Gupta #define EF_ARC_OSABI_ORIG	0x00000000   /* MUST be zero for back-compat */
17*8ccfe667SVineet Gupta #define EF_ARC_OSABI_CURRENT	0x00000300   /* v3 (no legacy syscalls) */
18*8ccfe667SVineet Gupta 
19*8ccfe667SVineet Gupta typedef unsigned long elf_greg_t;
20*8ccfe667SVineet Gupta typedef unsigned long elf_fpregset_t;
21*8ccfe667SVineet Gupta 
22*8ccfe667SVineet Gupta #define ELF_NGREG	(sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
23*8ccfe667SVineet Gupta 
24*8ccfe667SVineet Gupta typedef elf_greg_t elf_gregset_t[ELF_NGREG];
25*8ccfe667SVineet Gupta 
26*8ccfe667SVineet Gupta #endif
27