1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

*** empty log message ***

committer: mfx <mfx> 977425661 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2000-12-21 19:07:41 +00:00
parent b0226b54bd
commit 09eb201b76

View File

@ -31,11 +31,12 @@
#include "packmast.h"
#include "packer.h"
#include "lefile.h"
#include "p_elf.h"
#include "p_com.h"
#include "p_djgpp2.h"
#include "p_exe.h"
#include "p_unix.h"
#include "p_elf.h"
#include "p_lx_exc.h"
#include "p_lx_elf.h"
#include "p_lx_sep.h"
@ -173,6 +174,14 @@ static Packer* try_packers(InputFile *f, try_function func)
if ((p = func(new PackTos(f),f)) != NULL)
return p;
//
// linux kernel
//
if ((p = func(new PackBvmlinuzI386(f),f)) != NULL)
return p;
if ((p = func(new PackVmlinuzI386(f),f)) != NULL)
return p;
//
// linux
//
@ -187,9 +196,41 @@ static Packer* try_packers(InputFile *f, try_function func)
return p;
if ((p = func(new PackLinuxI386sh(f),f)) != NULL)
return p;
if ((p = func(new PackBvmlinuzI386(f),f)) != NULL)
if ((p = func(new PackLinuxI386(f),f)) != NULL)
return p;
if ((p = func(new PackVmlinuzI386(f),f)) != NULL)
//
// .sys and .com
//
if ((p = func(new PackSys(f),f)) != NULL)
return p;
if ((p = func(new PackCom(f),f)) != NULL)
return p;
return NULL;
}
static Packer *getPacker(InputFile *f)
{
Packer *p = try_packers(f, try_pack);
if (!p)
throwUnknownExecutableFormat();
return p;
}
static Packer *getUnpacker(InputFile *f)
{
#if 0
if (opt->unix.script_name)
{
if ((p = func(new PackLinuxI386sep(f),f)) != NULL)
return p;
}
#endif
if ((p = func(new PackLinuxI386elf(f),f)) != NULL)
return p;
if ((p = func(new PackLinuxI386sh(f),f)) != NULL)
return p;
if ((p = func(new PackLinuxI386(f),f)) != NULL)
return p;