This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
readelf cisco-ios.bin => core dump
- From: "Alexander Voropay" <a dot voropay at equant dot ru>
- To: <binutils at sourceware dot org>
- Date: Fri, 27 Jan 2006 16:18:22 +0300
- Subject: readelf cisco-ios.bin => core dump
- Reply-to: "Alexander Voropay" <a dot voropay at equant dot ru>
Hi!
Could you please correct a tiny bug in the MIPS ELF BFD ?
$ file c3640-is-mz.120-28a.bin
c3640-is-mz.120-28a.bin: ELF 32-bit MSB executable, version 1 (SYSV),
statically linked, stripped
CISCO IOS for 3600 is a conventional MIPS-BE ELF.
For obscurity reason they've deleted a ELF *section names*.
$ /opt/cross/bin/mips-elf-readelf.exe -a c3640-is-mz.120-28a.bin
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: <unknown>: 1e
Version: 0x1
Entry point address: 0x80008000
Start of program headers: 52 (bytes into file)
Start of section headers: 84 (bytes into file)
Flags: 0x20000001
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 1
Size of section headers: 40 (bytes)
Number of section headers: 5
Section header string table index: 8
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk
Inf Al
[ 0] <corrupt> PROGBITS 80008000 00011c 004000 00 AX 0
0 8
[ 1] <corrupt> PROGBITS 8000c000 00411c 000700 00 A 0
0 4
[ 2] <corrupt> PROGBITS 8000c700 00481c 0002e0 00 WA 0
0 4
[ 3] <corrupt> PROGBITS 8000c9e0 004afc 0000a0 00 WAp 0
0 8
[ 4] <corrupt> PROGBITS 8000ca80 004b9c 52e098 00 WAp 0
0 8
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)
There are no section groups in this file.
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x00011c 0x80008000 0x80008000 0x532b18 0x55afc0 RWE 0x11c
Section to Segment mapping:
Segment Sections...
assertion "string_table != NULL" failed: file "readelf.c", line 3376
Aborted (core dumped)
---
-=AV=-