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
+1
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;
+1 -1
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();
};
+2 -2
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
{
+1 -1
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()
+1 -1
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);