diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/ppc/boot/utils/elf.pl |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/ppc/boot/utils/elf.pl')
-rw-r--r-- | arch/ppc/boot/utils/elf.pl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/ppc/boot/utils/elf.pl b/arch/ppc/boot/utils/elf.pl new file mode 100644 index 000000000000..d3e9d9d5b84e --- /dev/null +++ b/arch/ppc/boot/utils/elf.pl | |||
@@ -0,0 +1,33 @@ | |||
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 | ||