Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
elfio mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Third Party Mirrors
elfio mirror
Commits
f8e87082
Commit
f8e87082
authored
3 years ago
by
Serge Lamikhov-Center
Browse files
Options
Downloads
Patches
Plain Diff
OS specific segment types added
parent
162fd7a9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
elfio/elf_types.hpp
+23
-14
23 additions, 14 deletions
elfio/elf_types.hpp
elfio/elfio_dump.hpp
+9
-0
9 additions, 0 deletions
elfio/elfio_dump.hpp
with
32 additions
and
14 deletions
elfio/elf_types.hpp
+
23
−
14
View file @
f8e87082
...
...
@@ -693,20 +693,29 @@ typedef uint64_t Elf64_Off;
#define R_X86_64_GNU_VTENTRY 251
// Segment types
#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
#define PT_TLS 7
#define PT_GNU_EH_FRAME 0x6474e550
#define PT_GNU_STACK 0x6474e551
#define PT_LOOS 0x60000000
#define PT_HIOS 0x6fffffff
#define PT_LOPROC 0x70000000
#define PT_HIPROC 0x7FFFFFFF
#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
#define PT_TLS 7
#define PT_LOOS 0X60000000
#define PT_GNU_EH_FRAME 0X6474E550 // Frame unwind information
#define PT_GNU_STACK 0X6474E551 // Stack flags
#define PT_GNU_RELRO 0X6474E552 // Read only after relocs
#define PT_GNU_PROPERTY 0X6474E553 // GNU property
#define PT_GNU_MBIND_LO 0X6474E555 // Mbind segments start
#define PT_GNU_MBIND_HI 0X6474F554 // Mbind segments finish
#define PT_PAX_FLAGS 0X65041580
#define PT_OPENBSD_RANDOMIZE 0X65A3DBE6
#define PT_OPENBSD_WXNEEDED 0X65A3DBE7
#define PT_OPENBSD_BOOTDATA 0X65A41BE6
#define PT_SUNWSTACK 0X6FFFFFFB
#define PT_HIOS 0X6FFFFFFF
#define PT_LOPROC 0X70000000
#define PT_HIPROC 0X7FFFFFFF
// Segment flags
#define PF_X 1 // Execute
...
...
This diff is collapsed.
Click to expand it.
elfio/elfio_dump.hpp
+
9
−
0
View file @
f8e87082
...
...
@@ -387,6 +387,15 @@ static struct segment_type_table_t
{
PT_TLS
,
"TLS"
},
{
PT_GNU_EH_FRAME
,
"GNU_EH_FRAME"
},
{
PT_GNU_STACK
,
"GNU_STACK"
},
{
PT_GNU_RELRO
,
"GNU_RELRO"
},
{
PT_GNU_PROPERTY
,
"GNU_PROPERTY"
},
{
PT_GNU_MBIND_LO
,
"GNU_MBIND_LO"
},
{
PT_GNU_MBIND_HI
,
"GNU_MBIND_HI"
},
{
PT_PAX_FLAGS
,
"PAX_FLAGS"
},
{
PT_OPENBSD_RANDOMIZE
,
"OPENBSD_RANDOMIZE"
},
{
PT_OPENBSD_WXNEEDED
,
"OPENBSD_WXNEEDED "
},
{
PT_OPENBSD_BOOTDATA
,
"OPENBSD_BOOTDATA "
},
{
PT_SUNWSTACK
,
"SUNWSTACK"
},
};
static
struct
segment_flag_table_t
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment