PageRenderTime 27ms CodeModel.GetById 12ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/ppc/boot/utils/elf.pl

https://bitbucket.org/evzijst/gittest
Perl | 33 lines | 24 code | 3 blank | 6 comment | 0 complexity | 130f2570361837b83f84ce714020382d MD5 | raw file
 1#
 2# ELF header field numbers
 3#
 4
 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
19
20#
21# Section header field numbers
22#
23
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