PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
elf.h
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# (c) 2020 Francisco Javier Trujillo Mata <fjtrujy@gmail.com>
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#ifndef __ELF_H__
12
#define __ELF_H__
13
14
#include <
tamtypes.h
>
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
20
typedef
struct
21
{
22
u8 ident[16];
// struct definition for ELF object header
23
u16 type;
24
u16 machine;
25
u32
version
;
26
u32 entry;
27
u32 phoff;
28
u32 shoff;
29
u32 flags;
30
u16 ehsize;
31
u16 phentsize;
32
u16 phnum;
33
u16 shentsize;
34
u16 shnum;
35
u16 shstrndx;
36
}
elf_header_t
;
37
38
typedef
struct
39
{
40
u32 type;
// struct definition for ELF program section header
41
u32 offset;
42
void
*vaddr;
43
u32 paddr;
44
u32 filesz;
45
u32 memsz;
46
u32 flags;
47
u32 align;
48
}
elf_pheader_t
;
49
50
#ifdef __cplusplus
51
}
52
#endif
53
54
#endif
/* __ELF_H__ */
version
unsigned int version
Definition
fileXio.h:3
elf_header_t
Definition
elf.h:21
elf_pheader_t
Definition
elf.h:39
tamtypes.h
ee
elf-loader
src
elf.h
Generated on Thu Nov 14 2024 05:25:24 for PS2SDK by
1.9.8