Here is readelf -a for an elfImage with no ramdisk.
Sorry for the long message but I know there are very smart people on this
list who might get it.
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x82070
Start of program headers: 52 (bytes into file)
Start of section headers: 2154704 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 5
Size of section headers: 40 (bytes)
Number of section headers: 16
Section header string table index: 13
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk
Inf Al
[ 0] NULL 00000000 000000 000000 00 0
0 0
[ 1] .note NOTE 00080000 001000 000208 00 A 0
0 4
[ 2] .text PROGBITS 00080208 001208 002030 00 AX 0
0 4
[ 3] .rodata PROGBITS 00082238 003238 000011 00 A 0
0 1
[ 4] .rodata.str1.1 PROGBITS 00082249 090249 0005cd 01 AMS 0
0 1
[ 5] .rodata.str1.32 PROGBITS 00082820 090820 000023 01 AMS 0
0 32
[ 6] .data PROGBITS 00082850 003850 000018 00 WA 0
0 4
[ 7] .bss NOBITS 00082868 003868 0042b8 00 WA 0
0 32
[ 8] .nokill PROGBITS 00091000 004000 000028 00 WAX 0
0 1
[ 9] .kernel PROGBITS 00100000 005000 08b197 00 WA 0
0 1
[10] .ramdisk PROGBITS 00200000 20e000 000000 00 WA 0
0 1
[11] .comment PROGBITS 00000000 20e000 000036 00 0
0 1
[12] .note.1 NOTE 00000000 20e036 000014 00 0
0 1
[13] .shstrtab STRTAB 00000000 20e04a 000083 00 0
0 1
[14] .symtab SYMTAB 00000000 20e350 0006b0 10 15
45 4
[15] .strtab STRTAB 00000000 20ea00 0005e8 00 0
0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
NOTE 0x001000 0x00080000 0x00080000 0x00208 0x00208 R 0x4
LOAD 0x001000 0x00080000 0x00080000 0x02868 0x06b20 RWE 0x1000
LOAD 0x004000 0x00091000 0x00091000 0x00028 0x00028 RWE 0x1000
LOAD 0x005000 0x00100000 0x00100000 0x8b197 0x8b197 RW 0x1000
LOAD 0x090249 0x00082249 0x00082249 0x17ddb7 0x17ddb7 RW
0x1000
Section to Segment mapping:
Segment Sections...
00 .note
01 .note .text .rodata .rodata.str1.1 .rodata.str1.32 .data .bss
02 .nokill
03 .kernel
04 .rodata.str1.1 .rodata.str1.32 .data .bss .nokill .kernel
There is no dynamic segment in this file.
There are no relocations in this file.
There are no unwind sections in this file.
Symbol table '.symtab' contains 107 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00080000 0 SECTION LOCAL DEFAULT 1
2: 00080208 0 SECTION LOCAL DEFAULT 2
3: 00082238 0 SECTION LOCAL DEFAULT 3
4: 00082249 0 SECTION LOCAL DEFAULT 4
5: 00082820 0 SECTION LOCAL DEFAULT 5
6: 00082850 0 SECTION LOCAL DEFAULT 6
7: 00082868 0 SECTION LOCAL DEFAULT 7
8: 00091000 0 SECTION LOCAL DEFAULT 8
9: 00100000 0 SECTION LOCAL DEFAULT 9
10: 00200000 0 SECTION LOCAL DEFAULT 10
11: 00000000 0 SECTION LOCAL DEFAULT 11
12: 00000000 0 SECTION LOCAL DEFAULT 12
13: 00000000 0 SECTION LOCAL DEFAULT 13
14: 00000000 0 SECTION LOCAL DEFAULT 14
15: 00000000 0 SECTION LOCAL DEFAULT 15
16: 00000001 0 NOTYPE LOCAL DEFAULT ABS CR0_PE
17: 0008222f 0 NOTYPE LOCAL DEFAULT 2 gdt_48
18: 00082229 0 NOTYPE LOCAL DEFAULT 2 idt_48
19: 000820ec 0 NOTYPE LOCAL DEFAULT 2 jmpe820
20: 0008211a 0 NOTYPE LOCAL DEFAULT 2 bail820
21: 0008210a 0 NOTYPE LOCAL DEFAULT 2 good820
22: 00082114 0 NOTYPE LOCAL DEFAULT 2 again820
23: 00082166 0 NOTYPE LOCAL DEFAULT 2 e801absent
24: 0008214c 0 NOTYPE LOCAL DEFAULT 2 e801usecxdx
25: 00082169 0 NOTYPE LOCAL DEFAULT 2 e801out
26: 00082223 0 NOTYPE LOCAL DEFAULT 2 idt_real
27: 00091000 0 NOTYPE LOCAL DEFAULT 8 gdt
28: 00000000 0 FILE LOCAL DEFAULT ABS convert_params.c
29: 00080208 0 NOTYPE LOCAL DEFAULT 2 gcc2_compiled.
30: 00082854 4 OBJECT LOCAL DEFAULT 6 faked_real_mode
31: 00080208 36 FUNC LOCAL DEFAULT 2 ttys0_tx_byte
32: 0008022c 35 FUNC LOCAL DEFAULT 2 put_char_serial
33: 00080250 9 FUNC LOCAL DEFAULT 2 put_char
34: 0008025c 41 FUNC LOCAL DEFAULT 2 puts
35: 00082238 17 OBJECT LOCAL DEFAULT 3 digit.0
36: 00080288 77 FUNC LOCAL DEFAULT 2 __put_hex
37: 000802d8 41 FUNC LOCAL DEFAULT 2 put_hex
38: 00080304 43 FUNC LOCAL DEFAULT 2 put_lhex
39: 0008039c 85 FUNC LOCAL DEFAULT 2 checksum_partial
40: 000803f4 15 FUNC LOCAL DEFAULT 2 checksum_final
41: 00080404 28 FUNC LOCAL DEFAULT 2 compute_checksum
42: 00080488 79 FUNC LOCAL DEFAULT 2 set_memsize_k
43: 000804d8 168 FUNC LOCAL DEFAULT 2 add_e820_map
44: 00080580 71 FUNC LOCAL DEFAULT 2
convert_multiboot_memmap
45: 000805c8 128 FUNC LOCAL DEFAULT 2 convert_multiboot
46: 00080648 162 FUNC LOCAL DEFAULT 2
convert_uniform_boot_memory
47: 000806ec 99 FUNC LOCAL DEFAULT 2 convert_uniform_boot
48: 00080750 61 FUNC LOCAL DEFAULT 2 setup_i8259
49: 00080790 23 FUNC LOCAL DEFAULT 2 hardware_setup
50: 000807a8 79 FUNC LOCAL DEFAULT 2 count_elf_notes
51: 000807f8 147 FUNC LOCAL DEFAULT 2 find_elf_note
52: 0008088c 33 FUNC LOCAL DEFAULT 2
convert_elf_command_line
53: 000808b0 257 FUNC LOCAL DEFAULT 2 convert_elf_boot
54: 000809b4 44 FUNC LOCAL DEFAULT 2 count_lb_records
55: 000809e0 117 FUNC LOCAL DEFAULT 2 __find_lb_table
56: 00080a58 79 FUNC LOCAL DEFAULT 2 find_lb_table
57: 00080aa8 136 FUNC LOCAL DEFAULT 2 convert_lb_memory
58: 00080b30 70 FUNC LOCAL DEFAULT 2 query_lb_values
59: 00080b78 170 FUNC LOCAL DEFAULT 2 get_meminfo
60: 00082880 644 OBJECT LOCAL DEFAULT 7 meminfo
61: 00080c24 12 FUNC LOCAL DEFAULT 2 query_pcbios_values
62: 00080c30 528 FUNC LOCAL DEFAULT 2
query_bootloader_param_class
63: 00080e40 80 FUNC LOCAL DEFAULT 2 query_bootloader_values
64: 00080e90 330 FUNC LOCAL DEFAULT 2
bootloader_query_firmware_class
65: 00080fdc 138 FUNC LOCAL DEFAULT 2 query_firmware_class
66: 00081068 53 FUNC LOCAL DEFAULT 2 query_firmware_values
67: 000810a0 2214 FUNC LOCAL DEFAULT 2 print_offsets
68: 00081948 1253 FUNC LOCAL DEFAULT 2 print_linux_params
69: 0008212a 0 NOTYPE GLOBAL DEFAULT 2 meme801
70: 0008b197 0 NOTYPE GLOBAL DEFAULT ABS
_binary__root_src_mkelfnew_kernel_piggy_6683_o_obj_size
71: 00082850 0 OBJECT GLOBAL DEFAULT ABS _etext
72: 00000000 0 OBJECT GLOBAL DEFAULT ABS ramdisk_data_size
73: 000821e5 0 NOTYPE GLOBAL DEFAULT 2 _prot_to_real
74: 00080374 37 FUNC GLOBAL DEFAULT 2 memcpy
75: 00200000 0 OBJECT GLOBAL DEFAULT ABS initrd_base
76: 00081fc0 175 FUNC GLOBAL DEFAULT 2 convert_params
77: 00100000 0 OBJECT GLOBAL DEFAULT 9 kernel_data
78: 000801bc 0 NOTYPE GLOBAL DEFAULT 1 note_root_dev
79: 00080330 29 FUNC GLOBAL DEFAULT 2 strnlen
80: 00082070 0 NOTYPE GLOBAL DEFAULT 2 startup_32
81: 00082850 4 OBJECT GLOBAL DEFAULT 6 stack_start
82: 000820d1 0 NOTYPE GLOBAL DEFAULT 2 meme820
83: 000801d4 0 NOTYPE GLOBAL DEFAULT 1 note_ramdisk_flags
84: 00200000 0 NOTYPE GLOBAL DEFAULT 10
_binary__root_src_mkelfnew_ramdisk_piggy_6683_o_obj_start
85: 00082173 0 NOTYPE GLOBAL DEFAULT 2 mem88
86: 00082b20 16384 OBJECT GLOBAL DEFAULT 7 user_stack
87: 0018b197 0 OBJECT GLOBAL DEFAULT 9 kernel_data_end
88: 00200000 0 OBJECT GLOBAL DEFAULT 10 ramdisk_data
89: 00080204 0 NOTYPE GLOBAL DEFAULT 1 note_initrd_size
90: 00080000 0 OBJECT GLOBAL DEFAULT ABS _text
91: 00080420 102 FUNC GLOBAL DEFAULT 2 append_command_line
92: 00082868 0 OBJECT GLOBAL DEFAULT ABS __bss_start
93: 00080350 33 FUNC GLOBAL DEFAULT 2 memset
94: 000821a2 0 NOTYPE GLOBAL DEFAULT 2 _real_to_prot
95: 000800a8 0 NOTYPE GLOBAL DEFAULT 1 note_command_line
96: 0018b197 0 NOTYPE GLOBAL DEFAULT 9
_binary__root_src_mkelfnew_kernel_piggy_6683_o_obj_end
97: 00200000 0 NOTYPE GLOBAL DEFAULT 10
_binary__root_src_mkelfnew_ramdisk_piggy_6683_o_obj_end
98: 0008218f 0 NOTYPE GLOBAL DEFAULT 2 basememsize
99: 00000000 0 NOTYPE GLOBAL DEFAULT ABS
_binary__root_src_mkelfnew_ramdisk_piggy_6683_o_obj_size
100: 00081e30 397 FUNC GLOBAL DEFAULT 2 initialize_linux_params
101: 00082868 0 OBJECT GLOBAL DEFAULT ABS _edata
102: 00086b20 0 OBJECT GLOBAL DEFAULT ABS _end
103: 00200000 0 OBJECT GLOBAL DEFAULT 10 ramdisk_data_end
104: 000801ec 0 NOTYPE GLOBAL DEFAULT 1 note_initrd_start
105: 00100000 0 NOTYPE GLOBAL DEFAULT 9
_binary__root_src_mkelfnew_kernel_piggy_6683_o_obj_start
106: 00082858 16 OBJECT GLOBAL DEFAULT 6 elf_notes
No version information found in this file.
Please note that segment 04 is really bogus.
ron