From 0ac2971fc1d4ea2a6e779112647f32dc3d774710 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Mon, 21 Aug 2006 12:09:46 -0700 Subject: [PATCH] add UPX_F_BSD_ELF_i386 to the exceptions for patchDecompressor() --- src/packer_c.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/packer_c.cpp b/src/packer_c.cpp index 0700969e..af374dd0 100644 --- a/src/packer_c.cpp +++ b/src/packer_c.cpp @@ -244,7 +244,9 @@ void Packer::patchDecompressor(void *loader, int lsize) || UPX_F_LINUX_ELF64_AMD ==ph.format || UPX_F_LINUX_ELF32_ARMLE==ph.format || UPX_F_LINUX_ELFPPC32 ==ph.format - || UPX_F_LINUX_ELF32_ARMBE==ph.format ) { + || UPX_F_LINUX_ELF32_ARMBE==ph.format + || UPX_F_BSD_ELF_i386 ==ph.format + ) { // ELF calls the decompressor many times; the parameters change! return; } @@ -272,7 +274,9 @@ void Packer::defineDecompressorSymbols() || UPX_F_LINUX_ELF64_AMD ==ph.format || UPX_F_LINUX_ELF32_ARMLE==ph.format || UPX_F_LINUX_ELFPPC32 ==ph.format - || UPX_F_LINUX_ELF32_ARMBE==ph.format ) { + || UPX_F_LINUX_ELF32_ARMBE==ph.format + || UPX_F_BSD_ELF_i386 ==ph.format + ) { // ELF calls the decompressor many times; the parameters change! return; }