Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
fail0verflow
mini
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
mini
/
elf.h
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
62 lines (51 loc) · 1.03 KB
master
Breadcrumbs
mini
/
elf.h
Copy path
Top
File metadata and controls
Code
Blame
62 lines (51 loc) · 1.03 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
mini - a Free Software replacement for the Nintendo/BroadOn IOS.
ELF structures
Copyright (C) 2008, 2009 Hector Martin "marcan" <marcan@marcansoft.com>
# This code is licensed to you under the terms of the GNU GPL, version 2;
# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
#ifndef
__ELF_H__
#define
__ELF_H__
#include
"types.h"
#define
EI_NIDENT
16
typedef
struct
{
unsigned
char
e_ident
[
EI_NIDENT
];
u16
e_type
;
u16
e_machine
;
u32
e_version
;
u32
e_entry
;
u32
e_phoff
;
u32
e_shoff
;
u32
e_flags
;
u16
e_ehsize
;
u16
e_phentsize
;
u16
e_phnum
;
u16
e_shentsize
;
u16
e_shnum
;
u16
e_shtrndx
;
}
Elf32_Ehdr
;
typedef
struct
{
u32
p_type
;
u32
p_offset
;
u32
p_vaddr
;
u32
p_paddr
;
u32
p_filesz
;
u32
p_memsz
;
u32
p_flags
;
u32
p_align
;
}
Elf32_Phdr
;
#define
PT_NULL
0
#define
PT_LOAD
1
#define
PT_DYNAMIC
2
#define
PT_INTERP
3
#define
PT_NOTE
4
#define
PT_SHLIB
5
#define
PT_PHDR
6
typedef
struct
{
u32
hdrsize
;
u32
loadersize
;
u32
elfsize
;
u32
argument
;
}
ioshdr
;
#endif
You can’t perform that action at this time.