xref: /linux/arch/arc/include/uapi/asm/elf.h (revision 840c054fd0efb048df6fceb0c46385ec5b66dfe6)
18ccfe667SVineet Gupta /*
28ccfe667SVineet Gupta  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
38ccfe667SVineet Gupta  *
48ccfe667SVineet Gupta  * This program is free software; you can redistribute it and/or modify
58ccfe667SVineet Gupta  * it under the terms of the GNU General Public License version 2 as
68ccfe667SVineet Gupta  * published by the Free Software Foundation.
78ccfe667SVineet Gupta  */
88ccfe667SVineet Gupta 
98ccfe667SVineet Gupta #ifndef _UAPI__ASM_ARC_ELF_H
108ccfe667SVineet Gupta #define _UAPI__ASM_ARC_ELF_H
118ccfe667SVineet Gupta 
128ccfe667SVineet Gupta #include <asm/ptrace.h>		/* for user_regs_struct */
138ccfe667SVineet Gupta 
148ccfe667SVineet Gupta /* Machine specific ELF Hdr flags */
158ccfe667SVineet Gupta #define EF_ARC_OSABI_MSK	0x00000f00
16*840c054fSVineet Gupta 
17*840c054fSVineet Gupta #define EF_ARC_OSABI_V3		0x00000300   /* v3 (no legacy syscalls) */
18*840c054fSVineet Gupta #define EF_ARC_OSABI_V4		0x00000400   /* v4 (64bit data any reg align) */
19*840c054fSVineet Gupta 
20*840c054fSVineet Gupta #if __GNUC__ < 6
21*840c054fSVineet Gupta #define EF_ARC_OSABI_CURRENT	EF_ARC_OSABI_V3
22*840c054fSVineet Gupta #else
23*840c054fSVineet Gupta #define EF_ARC_OSABI_CURRENT	EF_ARC_OSABI_V4
24*840c054fSVineet Gupta #endif
258ccfe667SVineet Gupta 
268ccfe667SVineet Gupta typedef unsigned long elf_greg_t;
278ccfe667SVineet Gupta typedef unsigned long elf_fpregset_t;
288ccfe667SVineet Gupta 
298ccfe667SVineet Gupta #define ELF_NGREG	(sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
308ccfe667SVineet Gupta 
318ccfe667SVineet Gupta typedef elf_greg_t elf_gregset_t[ELF_NGREG];
328ccfe667SVineet Gupta 
338ccfe667SVineet Gupta #endif
34