1
0
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:
Markus F.X.J. Oberhumer 2006-08-21 20:07:42 +02:00
parent 601cd95277
commit 6f1cc2c1e5
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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);