xref: /linux/arch/arc/include/uapi/asm/elf.h (revision 65c02a556bc4f374e9002ded1ea11a0263da7b63)
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
16840c054fSVineet Gupta 
17840c054fSVineet Gupta #define EF_ARC_OSABI_V3		0x00000300   /* v3 (no legacy syscalls) */
18840c054fSVineet Gupta #define EF_ARC_OSABI_V4		0x00000400   /* v4 (64bit data any reg align) */
19840c054fSVineet Gupta 
20840c054fSVineet Gupta #if __GNUC__ < 6
21840c054fSVineet Gupta #define EF_ARC_OSABI_CURRENT	EF_ARC_OSABI_V3
22840c054fSVineet Gupta #else
23840c054fSVineet Gupta #define EF_ARC_OSABI_CURRENT	EF_ARC_OSABI_V4
24840c054fSVineet 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))
30*65c02a55SVineet Gupta #define ELF_ARCV2REG	(sizeof(struct user_regs_arcv2) / sizeof(elf_greg_t))
318ccfe667SVineet Gupta 
328ccfe667SVineet Gupta typedef elf_greg_t elf_gregset_t[ELF_NGREG];
338ccfe667SVineet Gupta 
348ccfe667SVineet Gupta #endif
35