Go to the documentation of this file. 1 #ifndef __ASMSPARC_ELF_H
2 #define __ASMSPARC_ELF_H
8 #include <asm/ptrace.h>
13 #define STT_REGISTER 13
18 #define R_SPARC_NONE 0
22 #define R_SPARC_DISP8 4
23 #define R_SPARC_DISP16 5
24 #define R_SPARC_DISP32 6
25 #define R_SPARC_WDISP30 7
26 #define R_SPARC_WDISP22 8
27 #define R_SPARC_HI22 9
30 #define R_SPARC_LO10 12
31 #define R_SPARC_GOT10 13
32 #define R_SPARC_GOT13 14
33 #define R_SPARC_GOT22 15
34 #define R_SPARC_PC10 16
35 #define R_SPARC_PC22 17
36 #define R_SPARC_WPLT30 18
37 #define R_SPARC_COPY 19
38 #define R_SPARC_GLOB_DAT 20
39 #define R_SPARC_JMP_SLOT 21
40 #define R_SPARC_RELATIVE 22
41 #define R_SPARC_UA32 23
42 #define R_SPARC_PLT32 24
43 #define R_SPARC_HIPLT22 25
44 #define R_SPARC_LOPLT10 26
45 #define R_SPARC_PCPLT32 27
46 #define R_SPARC_PCPLT22 28
47 #define R_SPARC_PCPLT10 29
51 #define R_SPARC_OLO10 33
52 #define R_SPARC_WDISP16 40
53 #define R_SPARC_WDISP19 41
60 #define HWCAP_SPARC_FLUSH 1
61 #define HWCAP_SPARC_STBAR 2
62 #define HWCAP_SPARC_SWAP 4
63 #define HWCAP_SPARC_MULDIV 8
64 #define HWCAP_SPARC_V9 16
65 #define HWCAP_SPARC_ULTRA3 32
67 #define CORE_DUMP_USE_REGSET
82 unsigned long pr_regs[32];
90 unsigned int pr_q[64];
98 #define elf_check_arch(x) ((x)->e_machine == EM_SPARC)
103 #define ELF_ARCH EM_SPARC
104 #define ELF_CLASS ELFCLASS32
105 #define ELF_DATA ELFDATA2MSB
107 #define ELF_EXEC_PAGESIZE 4096
115 #define ELF_ET_DYN_BASE (TASK_UNMAPPED_BASE)
122 #define ELF_HWCAP (HWCAP_SPARC_FLUSH | HWCAP_SPARC_STBAR | \
123 HWCAP_SPARC_SWAP | HWCAP_SPARC_MULDIV)
129 #define ELF_PLATFORM (NULL)
131 #define SET_PERSONALITY(ex) \
132 set_personality(PER_LINUX | (current->personality & (~PER_MASK)))