ZwoELF icon indicating copy to clipboard operation
ZwoELF copied to clipboard

Segment of type PT_DYNAMIC was not found

Open razaina opened this issue 10 years ago • 4 comments

Hi,

I tried to work on a stripped ELF32 Binary.

The output of the file command is: file my_binary
/path/to/my_binary: ELF 32-bit LSB executable, version 1 (SYSV), statically linked, stripped

when I try to use the example "readELF.py" I got the following error: python readELF.py /path/to/my_binary

Traceback (most recent call last): File "readElf.py", line 18, in test = ElfParser(x86File) File "/media/Share/ElfParser/ZwoELF-master/ZwoELF/ElfParserLib.py", line 41, in init self.parseElf(self.data, onlyParseHeader=onlyParseHeader) File "/media/Share/ElfParser/ZwoELF-master/ZwoELF/ElfParserLib.py", line 1150, in parseElf raise ValueError("Segment of type PT_DYNAMIC was not found.") ValueError: Segment of type PT_DYNAMIC was not found.

It seems that the case of statically linked binaries was not taken into account?

Regards.

razaina avatar Jun 11 '14 13:06 razaina