/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */1/*2* Copyright (C) 2011 Tobias Klauser <[email protected]>3*4* This program is free software; you can redistribute it and/or modify5* it under the terms of the GNU General Public License as published by6* the Free Software Foundation; either version 2 of the License, or7* (at your option) any later version.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program. If not, see <http://www.gnu.org/licenses/>.16*17*/181920#ifndef _UAPI_ASM_NIOS2_ELF_H21#define _UAPI_ASM_NIOS2_ELF_H2223#include <linux/ptrace.h>2425/* Relocation types */26#define R_NIOS2_NONE 027#define R_NIOS2_S16 128#define R_NIOS2_U16 229#define R_NIOS2_PCREL16 330#define R_NIOS2_CALL26 431#define R_NIOS2_IMM5 532#define R_NIOS2_CACHE_OPX 633#define R_NIOS2_IMM6 734#define R_NIOS2_IMM8 835#define R_NIOS2_HI16 936#define R_NIOS2_LO16 1037#define R_NIOS2_HIADJ16 1138#define R_NIOS2_BFD_RELOC_32 1239#define R_NIOS2_BFD_RELOC_16 1340#define R_NIOS2_BFD_RELOC_8 1441#define R_NIOS2_GPREL 1542#define R_NIOS2_GNU_VTINHERIT 1643#define R_NIOS2_GNU_VTENTRY 1744#define R_NIOS2_UJMP 1845#define R_NIOS2_CJMP 1946#define R_NIOS2_CALLR 2047#define R_NIOS2_ALIGN 2148/* Keep this the last entry. */49#define R_NIOS2_NUM 225051typedef unsigned long elf_greg_t;5253#define ELF_NGREG 4954typedef elf_greg_t elf_gregset_t[ELF_NGREG];5556typedef unsigned long elf_fpregset_t;5758/*59* These are used to set parameters in the core dumps.60*/61#define ELF_CLASS ELFCLASS3262#define ELF_DATA ELFDATA2LSB63#define ELF_ARCH EM_ALTERA_NIOS26465#endif /* _UAPI_ASM_NIOS2_ELF_H */666768