FireBirdLib - Topfield TMS PVR TAP Programming Library
ELF.h
Go to the documentation of this file.
1
#ifndef __ELFH__
2
#define __ELFH__
3
4
#define EI_NIDENT 16
5
#define Elf32_Half unsigned short
6
#define Elf32_Word unsigned long
7
#define Elf32_Addr unsigned long
8
#define Elf32_Off unsigned long
9
10
#define SHT_NULL 0
11
#define SHT_PROGBITS 1
12
#define SHT_SYMTAB 2
13
#define SHT_STRTAB 3
14
#define SHT_RELA 4
15
#define SHT_HASH 5
16
#define SHT_DYNAMIC 6
17
#define SHT_NOTE 7
18
#define SHT_NOBITS 8
19
#define SHT_REL 9
20
#define SHT_SHLIB 10
21
#define SHT_DYNSYM 11
22
23
#define STB_GLOBAL 1
24
#define STT_FUNC 2
25
26
#define bool int
27
#define true 1
28
#define false 0
29
30
typedef
struct
31
{
32
unsigned
char
e_ident[
EI_NIDENT
];
33
Elf32_Half
e_type
;
34
Elf32_Half
e_machine
;
35
Elf32_Word
e_version
;
36
Elf32_Addr
e_entry
;
37
Elf32_Off
e_phoff
;
38
Elf32_Off
e_shoff
;
39
Elf32_Word
e_flags
;
40
Elf32_Half
e_ehsize
;
41
Elf32_Half
e_phentsize
;
42
Elf32_Half
e_phnum
;
43
Elf32_Half
e_shentsize
;
44
Elf32_Half
e_shnum
;
45
Elf32_Half
e_shstrndx
;
46
}
Elf32_Ehdr
;
47
48
typedef
struct
49
{
50
Elf32_Word
sh_name
;
51
Elf32_Word
sh_type
;
52
Elf32_Word
sh_flags
;
53
Elf32_Addr
sh_addr
;
54
Elf32_Off
sh_offset
;
55
Elf32_Word
sh_size
;
56
Elf32_Word
sh_link
;
57
Elf32_Word
sh_info
;
58
Elf32_Word
sh_addralign
;
59
Elf32_Word
sh_entsize
;
60
}
Elf32_Shdr
;
61
62
typedef
struct
63
{
64
Elf32_Word
p_type
;
65
Elf32_Off
p_offset
;
66
Elf32_Addr
p_vaddr
;
67
Elf32_Addr
p_paddr
;
68
Elf32_Word
p_filesz
;
69
Elf32_Word
p_memsz
;
70
Elf32_Word
p_flags
;
71
Elf32_Word
p_align
;
72
}
Elf32_Phdr
;
73
74
typedef
struct
75
{
76
Elf32_Word
st_name
;
77
Elf32_Addr
st_value
;
78
Elf32_Word
st_size
;
79
unsigned
char
st_info
;
80
unsigned
char
st_other
;
81
Elf32_Half
st_shndx
;
82
}
Elf32_Sym
;
83
84
#endif
Elf32_Off
#define Elf32_Off
Definition:
ELF.h:8
Elf32_Addr
#define Elf32_Addr
Definition:
ELF.h:7
Elf32_Half
#define Elf32_Half
Definition:
ELF.h:5
Elf32_Word
#define Elf32_Word
Definition:
ELF.h:6
EI_NIDENT
#define EI_NIDENT
Definition:
ELF.h:4
Elf32_Ehdr
Definition:
ELF.h:31
Elf32_Ehdr::e_shoff
Elf32_Off e_shoff
Definition:
ELF.h:38
Elf32_Ehdr::e_ehsize
Elf32_Half e_ehsize
Definition:
ELF.h:40
Elf32_Ehdr::e_shnum
Elf32_Half e_shnum
Definition:
ELF.h:44
Elf32_Ehdr::e_machine
Elf32_Half e_machine
Definition:
ELF.h:34
Elf32_Ehdr::e_phoff
Elf32_Off e_phoff
Definition:
ELF.h:37
Elf32_Ehdr::e_phnum
Elf32_Half e_phnum
Definition:
ELF.h:42
Elf32_Ehdr::e_shstrndx
Elf32_Half e_shstrndx
Definition:
ELF.h:45
Elf32_Ehdr::e_type
Elf32_Half e_type
Definition:
ELF.h:33
Elf32_Ehdr::e_flags
Elf32_Word e_flags
Definition:
ELF.h:39
Elf32_Ehdr::e_version
Elf32_Word e_version
Definition:
ELF.h:35
Elf32_Ehdr::e_shentsize
Elf32_Half e_shentsize
Definition:
ELF.h:43
Elf32_Ehdr::e_entry
Elf32_Addr e_entry
Definition:
ELF.h:36
Elf32_Ehdr::e_phentsize
Elf32_Half e_phentsize
Definition:
ELF.h:41
Elf32_Phdr
Definition:
ELF.h:63
Elf32_Phdr::p_vaddr
Elf32_Addr p_vaddr
Definition:
ELF.h:66
Elf32_Phdr::p_flags
Elf32_Word p_flags
Definition:
ELF.h:70
Elf32_Phdr::p_type
Elf32_Word p_type
Definition:
ELF.h:64
Elf32_Phdr::p_offset
Elf32_Off p_offset
Definition:
ELF.h:65
Elf32_Phdr::p_filesz
Elf32_Word p_filesz
Definition:
ELF.h:68
Elf32_Phdr::p_memsz
Elf32_Word p_memsz
Definition:
ELF.h:69
Elf32_Phdr::p_paddr
Elf32_Addr p_paddr
Definition:
ELF.h:67
Elf32_Phdr::p_align
Elf32_Word p_align
Definition:
ELF.h:71
Elf32_Shdr
Definition:
ELF.h:49
Elf32_Shdr::sh_entsize
Elf32_Word sh_entsize
Definition:
ELF.h:59
Elf32_Shdr::sh_flags
Elf32_Word sh_flags
Definition:
ELF.h:52
Elf32_Shdr::sh_addralign
Elf32_Word sh_addralign
Definition:
ELF.h:58
Elf32_Shdr::sh_offset
Elf32_Off sh_offset
Definition:
ELF.h:54
Elf32_Shdr::sh_name
Elf32_Word sh_name
Definition:
ELF.h:50
Elf32_Shdr::sh_addr
Elf32_Addr sh_addr
Definition:
ELF.h:53
Elf32_Shdr::sh_size
Elf32_Word sh_size
Definition:
ELF.h:55
Elf32_Shdr::sh_type
Elf32_Word sh_type
Definition:
ELF.h:51
Elf32_Shdr::sh_link
Elf32_Word sh_link
Definition:
ELF.h:56
Elf32_Shdr::sh_info
Elf32_Word sh_info
Definition:
ELF.h:57
Elf32_Sym
Definition:
ELF.h:75
Elf32_Sym::st_size
Elf32_Word st_size
Definition:
ELF.h:78
Elf32_Sym::st_other
unsigned char st_other
Definition:
ELF.h:80
Elf32_Sym::st_shndx
Elf32_Half st_shndx
Definition:
ELF.h:81
Elf32_Sym::st_name
Elf32_Word st_name
Definition:
ELF.h:76
Elf32_Sym::st_info
unsigned char st_info
Definition:
ELF.h:79
Elf32_Sym::st_value
Elf32_Addr st_value
Definition:
ELF.h:77
elf
ELF.h
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3