Added class BeLinker.

committer: mfx <mfx> 978797683 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2001-01-06 16:14:43 +00:00
parent dee289e2d9
commit 47168972da
4 changed files with 40 additions and 12 deletions
+6 -2
View File
@@ -925,10 +925,14 @@ unsigned Packer::unoptimizeReloc32(upx_byte **in, upx_byte *image,
void Packer::initLoader(const void *pdata, int plen, int pinfo)
{
delete linker;
if (pinfo < 0)
pinfo = ~3 & (3 + get_le16(pdata, plen - 2));
linker = new Linker(pdata,plen,pinfo);
delete linker;
if (getFormat() < 128)
linker = new Linker(pdata, plen, pinfo); // little endian
else
linker = new BeLinker(pdata, plen, pinfo); // big endian
static const char identbig[] =
"\n\0"