[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/2225] New: cisco IOS MIPS ELF causes coredump

From: alec at sensi dot org
Subject: [Bug binutils/2225] New: cisco IOS MIPS ELF causes coredump
Date: 27 Jan 2006 16:53:49 -0000

$ 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*.

 ELF files without section name causes coredump in all MIPS BFD utilities.

$ /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 
  [ 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)

           Summary: cisco IOS  MIPS ELF causes coredump
           Product: binutils
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P3
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: alec at sensi dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: mips-unknown-elf


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]