Back to index

php5  5.3.10
Classes | Defines | Typedefs
readelf.h File Reference

Go to the source code of this file.

Classes

struct  Elf32_Ehdr
struct  Elf64_Ehdr
struct  Elf32_Phdr
struct  Elf64_Phdr
struct  Elf32_Shdr
struct  Elf64_Shdr
struct  elf_note
struct  Elf64_Nhdr
struct  Elf32_Cap
struct  Elf64_Cap
union  Elf32_Cap.c_un
union  Elf64_Cap.c_un

Defines

#define USE_ARRAY_FOR_64BIT_TYPES
#define EI_NIDENT   16
#define ET_REL   1
#define ET_EXEC   2
#define ET_DYN   3
#define ET_CORE   4
#define EM_SPARC   2
#define EM_386   3
#define EM_SPARC32PLUS   18
#define EM_SPARCV9   43
#define EM_IA_64   50
#define EM_AMD64   62
#define SHT_SYMTAB   2
#define SHT_NOTE   7
#define SHT_DYNSYM   11
#define SHT_SUNW_cap   0x6ffffff5 /* SunOS 5.x hw/sw capabilites */
#define ELFDATANONE   0 /* e_ident[EI_DATA] */
#define ELFDATA2LSB   1
#define ELFDATA2MSB   2
#define ELFCLASSNONE   0
#define ELFCLASS32   1
#define ELFCLASS64   2
#define EI_MAG0   0 /* e_ident[] indexes */
#define EI_MAG1   1
#define EI_MAG2   2
#define EI_MAG3   3
#define EI_CLASS   4
#define EI_DATA   5
#define EI_VERSION   6
#define EI_PAD   7
#define ELFMAG0   0x7f /* EI_MAG */
#define ELFMAG1   'E'
#define ELFMAG2   'L'
#define ELFMAG3   'F'
#define ELFMAG   "\177ELF"
#define OLFMAG1   'O'
#define OLFMAG   "\177OLF"
#define PT_NULL   0 /* p_type */
#define PT_LOAD   1
#define PT_DYNAMIC   2
#define PT_INTERP   3
#define PT_NOTE   4
#define PT_SHLIB   5
#define PT_PHDR   6
#define PT_NUM   7
#define NT_NETBSD_CORE_PROCINFO   1
#define NT_PRSTATUS   1
#define NT_PRFPREG   2
#define NT_PRPSINFO   3
#define NT_PRXREG   4
#define NT_TASKSTRUCT   4
#define NT_PLATFORM   5
#define NT_AUXV   6
#define NT_NETBSD_VERSION   1
#define NT_NETBSD_EMULATION   2
#define NT_FREEBSD_VERSION   1
#define NT_OPENBSD_VERSION   1
#define NT_DRAGONFLY_VERSION   1
#define NT_GNU_VERSION   1
#define GNU_OS_LINUX   0
#define GNU_OS_HURD   1
#define GNU_OS_SOLARIS   2
#define GNU_OS_KFREEBSD   3
#define GNU_OS_KNETBSD   4
#define CA_SUNW_NULL   0
#define CA_SUNW_HW_1   1
#define CA_SUNW_SF_1   2
#define SF1_SUNW_FPKNWN   0x01
#define SF1_SUNW_FPUSED   0x02
#define SF1_SUNW_MASK   0x03
#define AV_SPARC_MUL32   0x0001
#define AV_SPARC_DIV32   0x0002
#define AV_SPARC_FSMULD   0x0004
#define AV_SPARC_V8PLUS   0x0008
#define AV_SPARC_POPC   0x0010
#define AV_SPARC_VIS   0x0020
#define AV_SPARC_VIS2   0x0040
#define AV_SPARC_ASI_BLK_INIT   0x0080
#define AV_SPARC_FMAF   0x0100
#define AV_SPARC_FJFMAU   0x4000
#define AV_SPARC_IMA   0x8000
#define AV_386_FPU   0x00000001
#define AV_386_TSC   0x00000002
#define AV_386_CX8   0x00000004
#define AV_386_SEP   0x00000008
#define AV_386_AMD_SYSC   0x00000010
#define AV_386_CMOV   0x00000020
#define AV_386_MMX   0x00000040
#define AV_386_AMD_MMX   0x00000080
#define AV_386_AMD_3DNow   0x00000100
#define AV_386_AMD_3DNowx   0x00000200
#define AV_386_FXSR   0x00000400
#define AV_386_SSE   0x00000800
#define AV_386_SSE2   0x00001000
#define AV_386_PAUSE   0x00002000
#define AV_386_SSE3   0x00004000
#define AV_386_MON   0x00008000
#define AV_386_CX16   0x00010000
#define AV_386_AHF   0x00020000
#define AV_386_TSCP   0x00040000
#define AV_386_AMD_SSE4A   0x00080000
#define AV_386_POPCNT   0x00100000
#define AV_386_AMD_LZCNT   0x00200000
#define AV_386_SSSE3   0x00400000
#define AV_386_SSE4_1   0x00800000
#define AV_386_SSE4_2   0x01000000

Typedefs

typedef uint32_t Elf32_Addr
typedef uint32_t Elf32_Off
typedef uint16_t Elf32_Half
typedef uint32_t Elf32_Word
typedef uint8_t Elf32_Char
typedef uint32_t Elf64_Addr [2]
typedef uint32_t Elf64_Off [2]
typedef uint32_t Elf64_Xword [2]
typedef uint16_t Elf64_Half
typedef uint32_t Elf64_Word
typedef uint8_t Elf64_Char
typedef struct elf_note Elf32_Nhdr

Class Documentation

struct Elf32_Ehdr

Definition at line 64 of file readelf.h.

Class Members
Elf32_Half e_ehsize
Elf32_Addr e_entry
Elf32_Word e_flags
Elf32_Char e_ident
Elf32_Half e_machine
Elf32_Half e_phentsize
Elf32_Half e_phnum
Elf32_Off e_phoff
Elf32_Half e_shentsize
Elf32_Half e_shnum
Elf32_Off e_shoff
Elf32_Half e_shstrndx
Elf32_Half e_type
Elf32_Word e_version
struct Elf64_Ehdr

Definition at line 81 of file readelf.h.

Class Members
Elf64_Half e_ehsize
Elf64_Addr e_entry
Elf64_Word e_flags
Elf64_Char e_ident
Elf64_Half e_machine
Elf64_Half e_phentsize
Elf64_Half e_phnum
Elf64_Off e_phoff
Elf64_Half e_shentsize
Elf64_Half e_shnum
Elf64_Off e_shoff
Elf64_Half e_shstrndx
Elf64_Half e_type
Elf64_Word e_version
struct Elf32_Phdr

Definition at line 147 of file readelf.h.

Class Members
Elf32_Word p_align
Elf32_Word p_filesz
Elf32_Word p_flags
Elf32_Word p_memsz
Elf32_Off p_offset
Elf32_Addr p_paddr
Elf32_Word p_type
Elf32_Addr p_vaddr
struct Elf64_Phdr

Definition at line 158 of file readelf.h.

Class Members
Elf64_Xword p_align
Elf64_Xword p_filesz
Elf64_Word p_flags
Elf64_Xword p_memsz
Elf64_Off p_offset
Elf64_Addr p_paddr
Elf64_Word p_type
Elf64_Addr p_vaddr
struct Elf32_Shdr

Definition at line 178 of file readelf.h.

Class Members
Elf32_Addr sh_addr
Elf32_Word sh_addralign
Elf32_Word sh_entsize
Elf32_Word sh_flags
Elf32_Word sh_info
Elf32_Word sh_link
Elf32_Word sh_name
Elf32_Off sh_offset
Elf32_Word sh_size
Elf32_Word sh_type
struct Elf64_Shdr

Definition at line 191 of file readelf.h.

Class Members
Elf64_Addr sh_addr
Elf64_Off sh_addralign
Elf64_Off sh_entsize
Elf64_Off sh_flags
Elf64_Word sh_info
Elf64_Word sh_link
Elf64_Word sh_name
Elf64_Off sh_offset
Elf64_Off sh_size
Elf64_Word sh_type
struct elf_note

Definition at line 207 of file readelf.h.

Class Members
Elf32_Word n_descsz
Elf32_Word n_namesz
Elf32_Word n_type
struct Elf64_Nhdr

Definition at line 213 of file readelf.h.

Class Members
Elf64_Word n_descsz
Elf64_Word n_namesz
Elf64_Word n_type
struct Elf32_Cap

Definition at line 246 of file readelf.h.

Class Members
Elf32_Word c_tag
union Elf32_Cap c_un
struct Elf64_Cap

Definition at line 254 of file readelf.h.

Class Members
Elf64_Xword c_tag
union Elf64_Cap c_un
union Elf32_Cap.c_un

Definition at line 248 of file readelf.h.

Class Members
Elf32_Addr c_ptr
Elf32_Word c_val
union Elf64_Cap.c_un

Definition at line 256 of file readelf.h.

Class Members
Elf64_Addr c_ptr
Elf64_Xword c_val

Define Documentation

#define AV_386_AHF   0x00020000

Definition at line 303 of file readelf.h.

#define AV_386_AMD_3DNow   0x00000100

Definition at line 294 of file readelf.h.

#define AV_386_AMD_3DNowx   0x00000200

Definition at line 295 of file readelf.h.

#define AV_386_AMD_LZCNT   0x00200000

Definition at line 307 of file readelf.h.

#define AV_386_AMD_MMX   0x00000080

Definition at line 293 of file readelf.h.

#define AV_386_AMD_SSE4A   0x00080000

Definition at line 305 of file readelf.h.

#define AV_386_AMD_SYSC   0x00000010

Definition at line 290 of file readelf.h.

#define AV_386_CMOV   0x00000020

Definition at line 291 of file readelf.h.

#define AV_386_CX16   0x00010000

Definition at line 302 of file readelf.h.

#define AV_386_CX8   0x00000004

Definition at line 288 of file readelf.h.

#define AV_386_FPU   0x00000001

Definition at line 286 of file readelf.h.

#define AV_386_FXSR   0x00000400

Definition at line 296 of file readelf.h.

#define AV_386_MMX   0x00000040

Definition at line 292 of file readelf.h.

#define AV_386_MON   0x00008000

Definition at line 301 of file readelf.h.

#define AV_386_PAUSE   0x00002000

Definition at line 299 of file readelf.h.

#define AV_386_POPCNT   0x00100000

Definition at line 306 of file readelf.h.

#define AV_386_SEP   0x00000008

Definition at line 289 of file readelf.h.

#define AV_386_SSE   0x00000800

Definition at line 297 of file readelf.h.

#define AV_386_SSE2   0x00001000

Definition at line 298 of file readelf.h.

#define AV_386_SSE3   0x00004000

Definition at line 300 of file readelf.h.

#define AV_386_SSE4_1   0x00800000

Definition at line 309 of file readelf.h.

#define AV_386_SSE4_2   0x01000000

Definition at line 310 of file readelf.h.

#define AV_386_SSSE3   0x00400000

Definition at line 308 of file readelf.h.

#define AV_386_TSC   0x00000002

Definition at line 287 of file readelf.h.

#define AV_386_TSCP   0x00040000

Definition at line 304 of file readelf.h.

#define AV_SPARC_ASI_BLK_INIT   0x0080

Definition at line 280 of file readelf.h.

#define AV_SPARC_DIV32   0x0002

Definition at line 274 of file readelf.h.

#define AV_SPARC_FJFMAU   0x4000

Definition at line 282 of file readelf.h.

#define AV_SPARC_FMAF   0x0100

Definition at line 281 of file readelf.h.

#define AV_SPARC_FSMULD   0x0004

Definition at line 275 of file readelf.h.

#define AV_SPARC_IMA   0x8000

Definition at line 283 of file readelf.h.

#define AV_SPARC_MUL32   0x0001

Definition at line 273 of file readelf.h.

#define AV_SPARC_POPC   0x0010

Definition at line 277 of file readelf.h.

#define AV_SPARC_V8PLUS   0x0008

Definition at line 276 of file readelf.h.

#define AV_SPARC_VIS   0x0020

Definition at line 278 of file readelf.h.

#define AV_SPARC_VIS2   0x0040

Definition at line 279 of file readelf.h.

#define CA_SUNW_HW_1   1

Definition at line 264 of file readelf.h.

#define CA_SUNW_NULL   0

Definition at line 263 of file readelf.h.

#define CA_SUNW_SF_1   2

Definition at line 265 of file readelf.h.

#define EI_CLASS   4

Definition at line 133 of file readelf.h.

#define EI_DATA   5

Definition at line 134 of file readelf.h.

#define EI_MAG0   0 /* e_ident[] indexes */

Definition at line 129 of file readelf.h.

#define EI_MAG1   1

Definition at line 130 of file readelf.h.

#define EI_MAG2   2

Definition at line 131 of file readelf.h.

#define EI_MAG3   3

Definition at line 132 of file readelf.h.

#define EI_NIDENT   16

Definition at line 62 of file readelf.h.

#define EI_PAD   7

Definition at line 136 of file readelf.h.

#define EI_VERSION   6

Definition at line 135 of file readelf.h.

#define ELFCLASS32   1

Definition at line 125 of file readelf.h.

#define ELFCLASS64   2

Definition at line 126 of file readelf.h.

#define ELFCLASSNONE   0

Definition at line 124 of file readelf.h.

#define ELFDATA2LSB   1

Definition at line 120 of file readelf.h.

#define ELFDATA2MSB   2

Definition at line 121 of file readelf.h.

#define ELFDATANONE   0 /* e_ident[EI_DATA] */

Definition at line 119 of file readelf.h.

#define ELFMAG   "\177ELF"

Definition at line 142 of file readelf.h.

#define ELFMAG0   0x7f /* EI_MAG */

Definition at line 138 of file readelf.h.

#define ELFMAG1   'E'

Definition at line 139 of file readelf.h.

#define ELFMAG2   'L'

Definition at line 140 of file readelf.h.

#define ELFMAG3   'F'

Definition at line 141 of file readelf.h.

#define EM_386   3

Definition at line 106 of file readelf.h.

#define EM_AMD64   62

Definition at line 110 of file readelf.h.

#define EM_IA_64   50

Definition at line 109 of file readelf.h.

#define EM_SPARC   2

Definition at line 105 of file readelf.h.

#define EM_SPARC32PLUS   18

Definition at line 107 of file readelf.h.

#define EM_SPARCV9   43

Definition at line 108 of file readelf.h.

#define ET_CORE   4

Definition at line 102 of file readelf.h.

#define ET_DYN   3

Definition at line 101 of file readelf.h.

#define ET_EXEC   2

Definition at line 100 of file readelf.h.

#define ET_REL   1

Definition at line 99 of file readelf.h.

#define GNU_OS_HURD   1

Definition at line 240 of file readelf.h.

#define GNU_OS_KFREEBSD   3

Definition at line 242 of file readelf.h.

#define GNU_OS_KNETBSD   4

Definition at line 243 of file readelf.h.

#define GNU_OS_LINUX   0

Definition at line 239 of file readelf.h.

#define GNU_OS_SOLARIS   2

Definition at line 241 of file readelf.h.

#define NT_AUXV   6

Definition at line 226 of file readelf.h.

#define NT_DRAGONFLY_VERSION   1

Definition at line 234 of file readelf.h.

#define NT_FREEBSD_VERSION   1

Definition at line 232 of file readelf.h.

#define NT_GNU_VERSION   1

Definition at line 236 of file readelf.h.

#define NT_NETBSD_CORE_PROCINFO   1

Definition at line 204 of file readelf.h.

#define NT_NETBSD_EMULATION   2

Definition at line 231 of file readelf.h.

#define NT_NETBSD_VERSION   1

Definition at line 230 of file readelf.h.

#define NT_OPENBSD_VERSION   1

Definition at line 233 of file readelf.h.

#define NT_PLATFORM   5

Definition at line 225 of file readelf.h.

#define NT_PRFPREG   2

Definition at line 221 of file readelf.h.

#define NT_PRPSINFO   3

Definition at line 222 of file readelf.h.

#define NT_PRSTATUS   1

Definition at line 220 of file readelf.h.

#define NT_PRXREG   4

Definition at line 223 of file readelf.h.

#define NT_TASKSTRUCT   4

Definition at line 224 of file readelf.h.

#define OLFMAG   "\177OLF"

Definition at line 145 of file readelf.h.

#define OLFMAG1   'O'

Definition at line 144 of file readelf.h.

#define PT_DYNAMIC   2

Definition at line 171 of file readelf.h.

#define PT_INTERP   3

Definition at line 172 of file readelf.h.

#define PT_LOAD   1

Definition at line 170 of file readelf.h.

#define PT_NOTE   4

Definition at line 173 of file readelf.h.

#define PT_NULL   0 /* p_type */

Definition at line 169 of file readelf.h.

#define PT_NUM   7

Definition at line 176 of file readelf.h.

#define PT_PHDR   6

Definition at line 175 of file readelf.h.

#define PT_SHLIB   5

Definition at line 174 of file readelf.h.

#define SF1_SUNW_FPKNWN   0x01

Definition at line 268 of file readelf.h.

#define SF1_SUNW_FPUSED   0x02

Definition at line 269 of file readelf.h.

#define SF1_SUNW_MASK   0x03

Definition at line 270 of file readelf.h.

#define SHT_DYNSYM   11

Definition at line 115 of file readelf.h.

#define SHT_NOTE   7

Definition at line 114 of file readelf.h.

#define SHT_SUNW_cap   0x6ffffff5 /* SunOS 5.x hw/sw capabilites */

Definition at line 116 of file readelf.h.

#define SHT_SYMTAB   2

Definition at line 113 of file readelf.h.

Definition at line 48 of file readelf.h.


Typedef Documentation

Definition at line 41 of file readelf.h.

Definition at line 45 of file readelf.h.

Definition at line 43 of file readelf.h.

typedef struct elf_note Elf32_Nhdr

Definition at line 42 of file readelf.h.

Definition at line 44 of file readelf.h.

typedef uint32_t Elf64_Addr[2]

Definition at line 49 of file readelf.h.

Definition at line 60 of file readelf.h.

Definition at line 58 of file readelf.h.

typedef uint32_t Elf64_Off[2]

Definition at line 50 of file readelf.h.

Definition at line 59 of file readelf.h.

typedef uint32_t Elf64_Xword[2]

Definition at line 51 of file readelf.h.