sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
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
21extern "C" {
22#endif
23
24typedef 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;
41
42typedef 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;
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif /* __ELF_H__ */