xref: /linux/arch/arc/include/uapi/asm/elf.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28ccfe667SVineet Gupta /*
38ccfe667SVineet Gupta  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
48ccfe667SVineet Gupta  *
58ccfe667SVineet Gupta  * This program is free software; you can redistribute it and/or modify
68ccfe667SVineet Gupta  * it under the terms of the GNU General Public License version 2 as
78ccfe667SVineet Gupta  * published by the Free Software Foundation.
88ccfe667SVineet Gupta  */
98ccfe667SVineet Gupta 
108ccfe667SVineet Gupta #ifndef _UAPI__ASM_ARC_ELF_H
118ccfe667SVineet Gupta #define _UAPI__ASM_ARC_ELF_H
128ccfe667SVineet Gupta 
138ccfe667SVineet Gupta #include <asm/ptrace.h>		/* for user_regs_struct */
148ccfe667SVineet Gupta 
158ccfe667SVineet Gupta /* Machine specific ELF Hdr flags */
168ccfe667SVineet Gupta #define EF_ARC_OSABI_MSK	0x00000f00
17840c054fSVineet Gupta 
18840c054fSVineet Gupta #define EF_ARC_OSABI_V3		0x00000300   /* v3 (no legacy syscalls) */
19840c054fSVineet Gupta #define EF_ARC_OSABI_V4		0x00000400   /* v4 (64bit data any reg align) */
20840c054fSVineet Gupta 
21840c054fSVineet Gupta #if __GNUC__ < 6
22840c054fSVineet Gupta #define EF_ARC_OSABI_CURRENT	EF_ARC_OSABI_V3
23840c054fSVineet Gupta #else
24840c054fSVineet Gupta #define EF_ARC_OSABI_CURRENT	EF_ARC_OSABI_V4
25840c054fSVineet Gupta #endif
268ccfe667SVineet Gupta 
278ccfe667SVineet Gupta typedef unsigned long elf_greg_t;
288ccfe667SVineet Gupta typedef unsigned long elf_fpregset_t;
298ccfe667SVineet Gupta 
308ccfe667SVineet Gupta #define ELF_NGREG	(sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
3165c02a55SVineet Gupta #define ELF_ARCV2REG	(sizeof(struct user_regs_arcv2) / sizeof(elf_greg_t))
328ccfe667SVineet Gupta 
338ccfe667SVineet Gupta typedef elf_greg_t elf_gregset_t[ELF_NGREG];
348ccfe667SVineet Gupta 
358ccfe667SVineet Gupta #endif
36