HSI: hsi_char: Delete an error message for a failed memory allocation in hsc_probe()
[sfrench/cifs-2.6.git] / arch / cris / include / uapi / asm / elf.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __ASMCRIS_ELF_H
3 #define __ASMCRIS_ELF_H
4
5 /*
6  * ELF register definitions..
7  */
8
9 #ifdef __arch_v32
10 #include <asm/elf_v32.h>
11 #else
12 #include <asm/elf_v10.h>
13 #endif
14
15 #define R_CRIS_NONE             0
16 #define R_CRIS_8                1
17 #define R_CRIS_16               2
18 #define R_CRIS_32               3
19 #define R_CRIS_8_PCREL          4
20 #define R_CRIS_16_PCREL         5
21 #define R_CRIS_32_PCREL         6
22 #define R_CRIS_GNU_VTINHERIT    7
23 #define R_CRIS_GNU_VTENTRY      8
24 #define R_CRIS_COPY             9
25 #define R_CRIS_GLOB_DAT         10
26 #define R_CRIS_JUMP_SLOT        11
27 #define R_CRIS_RELATIVE         12
28 #define R_CRIS_16_GOT           13
29 #define R_CRIS_32_GOT           14
30 #define R_CRIS_16_GOTPLT        15
31 #define R_CRIS_32_GOTPLT        16
32 #define R_CRIS_32_GOTREL        17
33 #define R_CRIS_32_PLT_GOTREL    18
34 #define R_CRIS_32_PLT_PCREL     19
35
36 typedef unsigned long elf_greg_t;
37
38 /* Note that NGREG is defined to ELF_NGREG in include/linux/elfcore.h, and is
39    thus exposed to user-space. */
40 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
41
42 /* A placeholder; CRIS does not have any fp regs.  */
43 typedef unsigned long elf_fpregset_t;
44
45 /*
46  * These are used to set parameters in the core dumps.
47  */
48 #define ELF_CLASS       ELFCLASS32
49 #define ELF_DATA        ELFDATA2LSB
50 #define ELF_ARCH        EM_CRIS
51
52 /* The master for these definitions is {binutils}/include/elf/cris.h:  */
53 /* User symbols in this file have a leading underscore.  */
54 #define EF_CRIS_UNDERSCORE              0x00000001
55
56 /* This is a mask for different incompatible machine variants.  */
57 #define EF_CRIS_VARIANT_MASK            0x0000000e
58
59 /* Variant 0; may contain v0..10 object.  */
60 #define EF_CRIS_VARIANT_ANY_V0_V10      0x00000000
61
62 /* Variant 1; contains v32 object.  */
63 #define EF_CRIS_VARIANT_V32             0x00000002
64
65 /* Variant 2; contains object compatible with v32 and v10.  */
66 #define EF_CRIS_VARIANT_COMMON_V10_V32  0x00000004
67 /* End of excerpt from {binutils}/include/elf/cris.h.  */
68
69 #define ELF_EXEC_PAGESIZE       8192
70
71 /* This is the location that an ET_DYN program is loaded if exec'ed.  Typical
72    use of this is to invoke "./ld.so someprog" to test out a new version of
73    the loader.  We need to make sure that it is out of the way of the program
74    that it will "exec", and that there is sufficient room for the brk.  */
75
76 #define ELF_ET_DYN_BASE         (TASK_SIZE / 3 * 2)
77
78 /* This yields a mask that user programs can use to figure out what
79    instruction set this CPU supports.  This could be done in user space,
80    but it's not easy, and we've already done it here.  */
81
82 #define ELF_HWCAP       (0)
83
84 /* This yields a string that ld.so will use to load implementation
85    specific libraries for optimization.  This is more specific in
86    intent than poking at uname or /proc/cpuinfo.
87 */
88
89 #define ELF_PLATFORM  (NULL)
90
91 #endif