sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
elf.h
Go to the documentation of this file.
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
15
#ifndef __ELF_H__
16
#define __ELF_H__
17
18
#include <
tamtypes.h
>
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
typedef
struct
25
{
26
u8 ident[16];
// struct definition for ELF object header
27
u16 type;
28
u16 machine;
29
u32 version;
30
u32 entry;
31
u32 phoff;
32
u32 shoff;
33
u32 flags;
34
u16 ehsize;
35
u16 phentsize;
36
u16 phnum;
37
u16 shentsize;
38
u16 shnum;
39
u16 shstrndx;
40
}
elf_header_t
;
41
42
typedef
struct
43
{
44
u32 type;
// struct definition for ELF program section header
45
u32 offset;
46
void
*vaddr;
47
u32 paddr;
48
u32 filesz;
49
u32 memsz;
50
u32 flags;
51
u32 align;
52
}
elf_pheader_t
;
53
54
#ifdef __cplusplus
55
}
56
#endif
57
58
#endif
/* __ELF_H__ */
elf_header_t
Definition
elf.h:25
elf_pheader_t
Definition
elf.h:43
tamtypes.h
core
elf-loader-nocolour
src
elf.h
Generated by
1.18.0