Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / arch / ppc / boot / utils / elf.pl
blobd3e9d9d5b84e43d2537c9b548d8c96b950cf0c7e
2 # ELF header field numbers
5 $e_ident = 0; # Identification bytes / magic number
6 $e_type = 1; # ELF file type
7 $e_machine = 2; # Target machine type
8 $e_version = 3; # File version
9 $e_entry = 4; # Start address
10 $e_phoff = 5; # Program header file offset
11 $e_shoff = 6; # Section header file offset
12 $e_flags = 7; # File flags
13 $e_ehsize = 8; # Size of ELF header
14 $e_phentsize = 9; # Size of program header
15 $e_phnum = 10; # Number of program header entries
16 $e_shentsize = 11; # Size of section header
17 $e_shnum = 12; # Number of section header entries
18 $e_shstrndx = 13; # Section header table string index
21 # Section header field numbers
24 $sh_name = 0; # Section name
25 $sh_type = 1; # Section header type
26 $sh_flags = 2; # Section header flags
27 $sh_addr = 3; # Virtual address
28 $sh_offset = 4; # File offset
29 $sh_size = 5; # Section size
30 $sh_link = 6; # Miscellaneous info
31 $sh_info = 7; # More miscellaneous info
32 $sh_addralign = 8; # Memory alignment
33 $sh_entsize = 9; # Entry size if this is a table