From 51536a7acdda4971b8270ba0079a9b5d846ffe6d Mon Sep 17 00:00:00 2001 From: John Reiser Date: Tue, 23 May 2006 17:42:35 -0700 Subject: [PATCH] decompression PackLinuxElf32x86.ET_DYN --- src/p_lx_elf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index 814616e3..f589ab0c 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -1858,7 +1858,9 @@ void PackLinuxElf32x86::unpack(OutputFile *fo) fi->seek(0, SEEK_SET); fi->readx(bufehdr, MAX_ELF_HDR); unsigned const e_entry = get_native32(&ehdr->e_entry); - if (e_entry < 0x401180) { /* old style, 8-byte b_info */ + if (e_entry < 0x401180 + && e_entry >=0x100000 // beware ET_DYN.e_entry==0x10f0 or so + ) { /* old style, 8-byte b_info */ szb_info = 2*sizeof(unsigned); } }