Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
elf_64.h File Reference
#include <asm/ptrace.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <asm/spitfire.h>

Go to the source code of this file.

Data Structures

struct  elf_fpregset_t
 
struct  compat_elf_fpregset_t
 
struct  elf_xregset_t
 

Macros

#define STT_REGISTER   13
 
#define R_SPARC_NONE   0
 
#define R_SPARC_8   1
 
#define R_SPARC_16   2
 
#define R_SPARC_32   3
 
#define R_SPARC_DISP8   4
 
#define R_SPARC_DISP16   5
 
#define R_SPARC_DISP32   6
 
#define R_SPARC_WDISP30   7
 
#define R_SPARC_WDISP22   8
 
#define R_SPARC_HI22   9
 
#define R_SPARC_22   10
 
#define R_SPARC_13   11
 
#define R_SPARC_LO10   12
 
#define R_SPARC_GOT10   13
 
#define R_SPARC_GOT13   14
 
#define R_SPARC_GOT22   15
 
#define R_SPARC_PC10   16
 
#define R_SPARC_PC22   17
 
#define R_SPARC_WPLT30   18
 
#define R_SPARC_COPY   19
 
#define R_SPARC_GLOB_DAT   20
 
#define R_SPARC_JMP_SLOT   21
 
#define R_SPARC_RELATIVE   22
 
#define R_SPARC_UA32   23
 
#define R_SPARC_PLT32   24
 
#define R_SPARC_HIPLT22   25
 
#define R_SPARC_LOPLT10   26
 
#define R_SPARC_PCPLT32   27
 
#define R_SPARC_PCPLT22   28
 
#define R_SPARC_PCPLT10   29
 
#define R_SPARC_10   30
 
#define R_SPARC_11   31
 
#define R_SPARC_64   32
 
#define R_SPARC_OLO10   33
 
#define R_SPARC_WDISP16   40
 
#define R_SPARC_WDISP19   41
 
#define R_SPARC_7   43
 
#define R_SPARC_5   44
 
#define R_SPARC_6   45
 
#define HWCAP_SPARC_FLUSH   0x00000001
 
#define HWCAP_SPARC_STBAR   0x00000002
 
#define HWCAP_SPARC_SWAP   0x00000004
 
#define HWCAP_SPARC_MULDIV   0x00000008
 
#define HWCAP_SPARC_V9   0x00000010
 
#define HWCAP_SPARC_ULTRA3   0x00000020
 
#define HWCAP_SPARC_BLKINIT   0x00000040
 
#define HWCAP_SPARC_N2   0x00000080
 
#define AV_SPARC_MUL32   0x00000100 /* 32x32 multiply is efficient */
 
#define AV_SPARC_DIV32   0x00000200 /* 32x32 divide is efficient */
 
#define AV_SPARC_FSMULD   0x00000400 /* 'fsmuld' is efficient */
 
#define AV_SPARC_V8PLUS   0x00000800 /* v9 insn available to 32bit */
 
#define AV_SPARC_POPC   0x00001000 /* 'popc' is efficient */
 
#define AV_SPARC_VIS   0x00002000 /* VIS insns available */
 
#define AV_SPARC_VIS2   0x00004000 /* VIS2 insns available */
 
#define AV_SPARC_ASI_BLK_INIT   0x00008000 /* block init ASIs available */
 
#define AV_SPARC_FMAF   0x00010000 /* fused multiply-add */
 
#define AV_SPARC_VIS3   0x00020000 /* VIS3 insns available */
 
#define AV_SPARC_HPC   0x00040000 /* HPC insns available */
 
#define AV_SPARC_RANDOM   0x00080000 /* 'random' insn available */
 
#define AV_SPARC_TRANS   0x00100000 /* transaction insns available */
 
#define AV_SPARC_FJFMAU   0x00200000 /* unfused multiply-add */
 
#define AV_SPARC_IMA   0x00400000 /* integer multiply-add */
 
#define AV_SPARC_ASI_CACHE_SPARING   0x00800000 /* cache sparing ASIs available */
 
#define AV_SPARC_PAUSE   0x01000000 /* PAUSE available */
 
#define AV_SPARC_CBCOND   0x02000000 /* CBCOND insns available */
 
#define HWCAP_SPARC_CRYPTO   0x04000000 /* CRYPTO insns available */
 
#define CORE_DUMP_USE_REGSET
 
#define ELF_ARCH   EM_SPARCV9
 
#define ELF_CLASS   ELFCLASS64
 
#define ELF_DATA   ELFDATA2MSB
 
#define ELF_NGREG   36
 
#define COMPAT_ELF_NGREG   38
 
#define elf_check_arch(x)   ((x)->e_machine == ELF_ARCH)
 
#define compat_elf_check_arch(x)
 
#define compat_start_thread   start_thread32
 
#define ELF_EXEC_PAGESIZE   PAGE_SIZE
 
#define ELF_ET_DYN_BASE   0x0000010000000000UL
 
#define COMPAT_ELF_ET_DYN_BASE   0x0000000070000000UL
 
#define ELF_HWCAP   sparc64_elf_hwcap
 
#define ELF_PLATFORM   (NULL)
 
#define SET_PERSONALITY(ex)
 

Typedefs

typedef unsigned long elf_greg_t
 
typedef elf_greg_t elf_gregset_t [ELF_NGREG]
 
typedef unsigned int compat_elf_greg_t
 
typedef compat_elf_greg_t compat_elf_gregset_t [COMPAT_ELF_NGREG]
 

Variables

unsigned long sparc64_elf_hwcap
 

Macro Definition Documentation

#define AV_SPARC_ASI_BLK_INIT   0x00008000 /* block init ASIs available */

Definition at line 79 of file elf_64.h.

#define AV_SPARC_ASI_CACHE_SPARING   0x00800000 /* cache sparing ASIs available */

Definition at line 87 of file elf_64.h.

#define AV_SPARC_CBCOND   0x02000000 /* CBCOND insns available */

Definition at line 90 of file elf_64.h.

#define AV_SPARC_DIV32   0x00000200 /* 32x32 divide is efficient */

Definition at line 73 of file elf_64.h.

#define AV_SPARC_FJFMAU   0x00200000 /* unfused multiply-add */

Definition at line 85 of file elf_64.h.

#define AV_SPARC_FMAF   0x00010000 /* fused multiply-add */

Definition at line 80 of file elf_64.h.

#define AV_SPARC_FSMULD   0x00000400 /* 'fsmuld' is efficient */

Definition at line 74 of file elf_64.h.

#define AV_SPARC_HPC   0x00040000 /* HPC insns available */

Definition at line 82 of file elf_64.h.

#define AV_SPARC_IMA   0x00400000 /* integer multiply-add */

Definition at line 86 of file elf_64.h.

#define AV_SPARC_MUL32   0x00000100 /* 32x32 multiply is efficient */

Definition at line 72 of file elf_64.h.

#define AV_SPARC_PAUSE   0x01000000 /* PAUSE available */

Definition at line 89 of file elf_64.h.

#define AV_SPARC_POPC   0x00001000 /* 'popc' is efficient */

Definition at line 76 of file elf_64.h.

#define AV_SPARC_RANDOM   0x00080000 /* 'random' insn available */

Definition at line 83 of file elf_64.h.

#define AV_SPARC_TRANS   0x00100000 /* transaction insns available */

Definition at line 84 of file elf_64.h.

#define AV_SPARC_V8PLUS   0x00000800 /* v9 insn available to 32bit */

Definition at line 75 of file elf_64.h.

#define AV_SPARC_VIS   0x00002000 /* VIS insns available */

Definition at line 77 of file elf_64.h.

#define AV_SPARC_VIS2   0x00004000 /* VIS2 insns available */

Definition at line 78 of file elf_64.h.

#define AV_SPARC_VIS3   0x00020000 /* VIS3 insns available */

Definition at line 81 of file elf_64.h.

#define compat_elf_check_arch (   x)
Value:
((x)->e_machine == EM_SPARC || \
(x)->e_machine == EM_SPARC32PLUS)

Definition at line 178 of file elf_64.h.

#define COMPAT_ELF_ET_DYN_BASE   0x0000000070000000UL

Definition at line 190 of file elf_64.h.

#define COMPAT_ELF_NGREG   38

Definition at line 137 of file elf_64.h.

#define compat_start_thread   start_thread32

Definition at line 180 of file elf_64.h.

#define CORE_DUMP_USE_REGSET

Definition at line 99 of file elf_64.h.

#define ELF_ARCH   EM_SPARCV9

Definition at line 104 of file elf_64.h.

#define elf_check_arch (   x)    ((x)->e_machine == ELF_ARCH)

Definition at line 177 of file elf_64.h.

#define ELF_CLASS   ELFCLASS64

Definition at line 105 of file elf_64.h.

#define ELF_DATA   ELFDATA2MSB

Definition at line 106 of file elf_64.h.

#define ELF_ET_DYN_BASE   0x0000010000000000UL

Definition at line 189 of file elf_64.h.

#define ELF_EXEC_PAGESIZE   PAGE_SIZE

Definition at line 182 of file elf_64.h.

#define ELF_HWCAP   sparc64_elf_hwcap

Definition at line 193 of file elf_64.h.

#define ELF_NGREG   36

Definition at line 119 of file elf_64.h.

#define ELF_PLATFORM   (NULL)

Definition at line 199 of file elf_64.h.

#define HWCAP_SPARC_BLKINIT   0x00000040

Definition at line 68 of file elf_64.h.

#define HWCAP_SPARC_CRYPTO   0x04000000 /* CRYPTO insns available */

Definition at line 97 of file elf_64.h.

#define HWCAP_SPARC_FLUSH   0x00000001

Definition at line 62 of file elf_64.h.

#define HWCAP_SPARC_MULDIV   0x00000008

Definition at line 65 of file elf_64.h.

#define HWCAP_SPARC_N2   0x00000080

Definition at line 69 of file elf_64.h.

#define HWCAP_SPARC_STBAR   0x00000002

Definition at line 63 of file elf_64.h.

#define HWCAP_SPARC_SWAP   0x00000004

Definition at line 64 of file elf_64.h.

#define HWCAP_SPARC_ULTRA3   0x00000020

Definition at line 67 of file elf_64.h.

#define HWCAP_SPARC_V9   0x00000010

Definition at line 66 of file elf_64.h.

#define R_SPARC_10   30

Definition at line 51 of file elf_64.h.

#define R_SPARC_11   31

Definition at line 52 of file elf_64.h.

#define R_SPARC_13   11

Definition at line 32 of file elf_64.h.

#define R_SPARC_16   2

Definition at line 23 of file elf_64.h.

#define R_SPARC_22   10

Definition at line 31 of file elf_64.h.

#define R_SPARC_32   3

Definition at line 24 of file elf_64.h.

#define R_SPARC_5   44

Definition at line 58 of file elf_64.h.

#define R_SPARC_6   45

Definition at line 59 of file elf_64.h.

#define R_SPARC_64   32

Definition at line 53 of file elf_64.h.

#define R_SPARC_7   43

Definition at line 57 of file elf_64.h.

#define R_SPARC_8   1

Definition at line 22 of file elf_64.h.

#define R_SPARC_COPY   19

Definition at line 40 of file elf_64.h.

#define R_SPARC_DISP16   5

Definition at line 26 of file elf_64.h.

#define R_SPARC_DISP32   6

Definition at line 27 of file elf_64.h.

#define R_SPARC_DISP8   4

Definition at line 25 of file elf_64.h.

#define R_SPARC_GLOB_DAT   20

Definition at line 41 of file elf_64.h.

#define R_SPARC_GOT10   13

Definition at line 34 of file elf_64.h.

#define R_SPARC_GOT13   14

Definition at line 35 of file elf_64.h.

#define R_SPARC_GOT22   15

Definition at line 36 of file elf_64.h.

#define R_SPARC_HI22   9

Definition at line 30 of file elf_64.h.

#define R_SPARC_HIPLT22   25

Definition at line 46 of file elf_64.h.

#define R_SPARC_JMP_SLOT   21

Definition at line 42 of file elf_64.h.

#define R_SPARC_LO10   12

Definition at line 33 of file elf_64.h.

#define R_SPARC_LOPLT10   26

Definition at line 47 of file elf_64.h.

#define R_SPARC_NONE   0

Definition at line 21 of file elf_64.h.

#define R_SPARC_OLO10   33

Definition at line 54 of file elf_64.h.

#define R_SPARC_PC10   16

Definition at line 37 of file elf_64.h.

#define R_SPARC_PC22   17

Definition at line 38 of file elf_64.h.

#define R_SPARC_PCPLT10   29

Definition at line 50 of file elf_64.h.

#define R_SPARC_PCPLT22   28

Definition at line 49 of file elf_64.h.

#define R_SPARC_PCPLT32   27

Definition at line 48 of file elf_64.h.

#define R_SPARC_PLT32   24

Definition at line 45 of file elf_64.h.

#define R_SPARC_RELATIVE   22

Definition at line 43 of file elf_64.h.

#define R_SPARC_UA32   23

Definition at line 44 of file elf_64.h.

#define R_SPARC_WDISP16   40

Definition at line 55 of file elf_64.h.

#define R_SPARC_WDISP19   41

Definition at line 56 of file elf_64.h.

#define R_SPARC_WDISP22   8

Definition at line 29 of file elf_64.h.

#define R_SPARC_WDISP30   7

Definition at line 28 of file elf_64.h.

#define R_SPARC_WPLT30   18

Definition at line 39 of file elf_64.h.

#define SET_PERSONALITY (   ex)
Value:
do { if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
set_thread_flag(TIF_32BIT); \
else \
clear_thread_flag(TIF_32BIT); \
/* flush_thread will update pgd cache */ \
if (personality(current->personality) != PER_LINUX32) \
set_personality(PER_LINUX | \
(current->personality & (~PER_MASK))); \
} while (0)

Definition at line 201 of file elf_64.h.

#define STT_REGISTER   13

Definition at line 16 of file elf_64.h.

Typedef Documentation

typedef unsigned int compat_elf_greg_t

Definition at line 136 of file elf_64.h.

Definition at line 138 of file elf_64.h.

typedef unsigned long elf_greg_t

Definition at line 118 of file elf_64.h.

Definition at line 120 of file elf_64.h.

Variable Documentation

unsigned long sparc64_elf_hwcap

Definition at line 348 of file setup_64.c.