DOS Header magic not found

3,123 views
Skip to first unread message

larytet

unread,
Feb 12, 2011, 10:50:18 AM2/12/11
to pefile
Hi,

I am trying to parse this object file
https://www.assembla.com/spaces/OpenTI/documents/beuClmnoir4l8zeJe5cbLA/download/beuClmnoir4l8zeJe5cbLA

The object file format is not ELF/DWARF - there is no 'ELF' stamp at
the beginning of the file. I assume that this is COFF. I get this

>>> import pefile
>>> pe = pefile.PE('/home/arkady/OpenTI/Fw18xxr1c_sta_cortex.out' )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pefile.py", line 1692, in __init__
self.__parse__(name, data, fast_load)
File "pefile.py", line 1743, in __parse__
raise PEFormatError('DOS Header magic not found.')
pefile.PEFormatError: 'DOS Header magic not found.'


I will appreciate any tip.

Thank you.

Ero Carrera

unread,
Feb 12, 2011, 11:55:33 AM2/12/11
to pefile
It's definitely not a PE file, it's some sort of data file. The "file"
tool can't recognize it so I guess it's not too well-known. But for
sure pefile won't help

--
ero

On Feb 12, 4:50 pm, larytet <lary...@gmail.com> wrote:
> Hi,
>
> I am trying to parse this object filehttps://www.assembla.com/spaces/OpenTI/documents/beuClmnoir4l8zeJe5cb...
Reply all
Reply to author
Forward
0 new messages