add UPX_F_BSD_ELF_i386 to the exceptions for patchDecompressor()

This commit is contained in:
John Reiser
2006-08-21 12:09:46 -07:00
parent c19ffafd8d
commit 0ac2971fc1
+6 -2
View File
@@ -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;
}