mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Renamed ElfLinker::addSection(sname) to addLoader().
This commit is contained in:
parent
601cd95277
commit
6f1cc2c1e5
|
@ -285,7 +285,7 @@ void ElfLinker::init(const void *pdata, int plen)
|
|||
preprocessSections(psections, psymbols);
|
||||
preprocessSymbols(psymbols, prelocs);
|
||||
preprocessRelocations(prelocs, (char*) input + inputlen);
|
||||
addSection("*UND*");
|
||||
addLoader("*UND*");
|
||||
}
|
||||
|
||||
void ElfLinker::setLoaderAlignOffset(int phase)
|
||||
|
@ -294,7 +294,7 @@ void ElfLinker::setLoaderAlignOffset(int phase)
|
|||
printf("\nFIXME: ElfLinker::setLoaderAlignOffset %d\n", phase);
|
||||
}
|
||||
|
||||
int ElfLinker::addSection(const char *sname)
|
||||
int ElfLinker::addLoader(const char *sname)
|
||||
{
|
||||
assert(!frozen);
|
||||
if (sname[0] == 0)
|
||||
|
|
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
virtual void init(const void *pdata, int plen);
|
||||
virtual void setLoaderAlignOffset(int phase);
|
||||
virtual int addSection(const char *sname);
|
||||
virtual int addLoader(const char *sname);
|
||||
virtual void addSection(const char *sname, const void *sdata, int slen, int align);
|
||||
virtual void freeze();
|
||||
virtual int getSection(const char *sname, int *slen=NULL);
|
||||
|
|
|
@ -1066,7 +1066,7 @@ void __acc_cdecl_va Packer::addLoader(const char *s, ...)
|
|||
while (s != NULL)
|
||||
{
|
||||
if (*s)
|
||||
linker->addSection(s);
|
||||
linker->addLoader(s);
|
||||
s = va_arg(ap, const char *);
|
||||
}
|
||||
va_end(ap);
|
||||
|
|
Loading…
Reference in New Issue
Block a user