[Top][All Lists]

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

[Bug binutils/12467] New: libbfd cant recognize valid ELF file

From: anton.kochkov at gmail dot com
Subject: [Bug binutils/12467] New: libbfd cant recognize valid ELF file
Date: Sat, 5 Feb 2011 14:22:06 +0000


           Summary: libbfd cant recognize valid ELF file
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden

Created attachment 5227
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5227
Binary "dream" file

objdump cant parse valid elf file "dream", which is available

objdump: file is not valid elf file

but readelf succesfully do this:
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:               0x8048e28
  Start of program headers:          52 (bytes into file)
  Start of section headers:          180 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         4
  Size of section headers:           40 (bytes)
  Number of section headers:         0 (0)
  Section header string table index: 0

There are no sections in this file.

There are no sections in this file.

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  INTERP         0x0001d6 0x080481d6 0x00000000 0x00013 0x00013 R   0x1000
      [Requesting program interpreter: /lib/ld-linux.so.2]
  DYNAMIC        0x0000fc 0x080480fc 0x00000000 0x00048 0x00048 RW  0x1000
  LOAD           0x000000 0x08048000 0x00000000 0x07a8b 0x07a8b R E 0x1000
  LOAD           0x007a8b 0x0804fa8b 0x00000000 0x01ef5 0x1f7e5a1 RWE 0x1000

Dynamic section at offset 0xfc contains 9 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000004 (HASH)                       0x80480dc
 0x00000005 (STRTAB)                     0x80481ac
 0x00000006 (SYMTAB)                     0x8048144
 0x0000000a (STRSZ)                      42 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000011 (REL)                        0x8048194
 0x00000012 (RELSZ)                      24 (bytes)
 0x00000013 (RELENT)                     8 (bytes)

There are no relocations in this file.

There are no unwind sections in this file.

Histogram for bucket list length (total of 1 buckets):
 Length  Number     % of total  Coverage
      0  1          (100.0%)

No version information found in this file.

Also scanelf write something: 

ET_EXEC PeMRxS 0755 LE --- --- RWX    -      -   LAZY dream 

P.S. This bug was created from understanding another bug with paxctl from
grsecurity from gentoo: https://bugs.gentoo.org/show_bug.cgi?id=353731 .

difference between paxctl (dont recognize "dream" ) and chpax (recignize

Attached "dream" binary and source of it's elf.scm (describe "dream" elf file

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

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