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

Added an overloaded addLoader() method.

committer: mfx <mfx> 1139913550 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2006-02-14 10:39:10 +00:00
parent 40cf489290
commit 452ac52fcb
2 changed files with 7 additions and 0 deletions

View File

@ -1072,6 +1072,12 @@ void Packer::initLoader(const void *pdata, int plen, int pinfo, int small)
}
void Packer::addLoader(const char *s)
{
if (*s)
linker->addSection(s);
}
void __acc_cdecl_va Packer::addLoader(const char *s, ...)
{
va_list ap;

View File

@ -208,6 +208,7 @@ protected:
virtual const upx_byte *getLoader() const;
virtual int getLoaderSize() const;
virtual void initLoader(const void *pdata, int plen, int pinfo=-1, int small=-1);
virtual void addLoader(const char *s);
virtual void __acc_cdecl_va addLoader(const char *s, ...);
virtual int getLoaderSection(const char *name, int *slen=NULL) const;
virtual int getLoaderSectionStart(const char *name, int *slen=NULL) const;