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

Consistency cleanups.

committer: mfx <mfx> 978180862 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2000-12-30 12:54:22 +00:00
parent ceebd3518b
commit 0b01be7b29
5 changed files with 6 additions and 5 deletions

View File

@ -271,6 +271,7 @@ void PackDjgpp2::pack(OutputFile *fo)
// filter
Filter ft(opt->level);
tryFilters(&ft, ibuf, usize - data->size, text->vaddr & ~0x1ff);
buildLoader(&ft);
// compress
ph.filter = ft.id;

View File

@ -55,6 +55,7 @@ public:
protected:
virtual int buildLoader(const Filter *ft);
virtual void handleStub(OutputFile *fo);
virtual bool readFileHeader();
long coff_offset;
@ -94,7 +95,6 @@ protected:
external_scnhdr_t *text,*data,*bss;
bool readFileHeader();
void stripDebug();
};

View File

@ -57,8 +57,8 @@ protected:
virtual const upx_byte *getLoader() const;
virtual int getLoaderSize() const;
bool readFileHeader();
bool checkFileHeader();
virtual bool readFileHeader();
virtual bool checkFileHeader();
struct tos_header_t
{

View File

@ -1619,6 +1619,7 @@ void PackW32Pe::pack(OutputFile *fo)
Filter ft(opt->level);
if (allow_filter)
tryFilters(&ft, ibuf + ih.codebase, ih.codesize);
buildLoader(&ft);
// compress
ph.filter = ft.id;
@ -1629,7 +1630,6 @@ void PackW32Pe::pack(OutputFile *fo)
// verify filter
ft.verifyUnfilter();
buildLoader(&ft);
#else
// new version using compressWithFilters()

View File

@ -64,12 +64,12 @@ public:
{ return (version == 12); }
protected:
virtual bool readFileHeader();
virtual bool testUnpackVersion(int version) const;
virtual int buildLoader(const Filter *ft);
unsigned pe_offset;
bool isrtm;
bool readFileHeader();
unsigned processImports();
void processImports(unsigned);