Add Packer::hasLoaderSection() to handle missing CFLUSH sections.

This commit is contained in:
Markus F.X.J. Oberhumer
2008-04-07 18:44:00 +02:00
parent 6c8bb3a22e
commit d54f947c98
4 changed files with 12 additions and 2 deletions
+5
View File
@@ -1121,6 +1121,11 @@ int Packer::getLoaderSize() const
return size;
}
bool Packer::hasLoaderSection(const char *name) const
{
void *section = linker->findSection(name, false);
return section != NULL;
}
int Packer::getLoaderSection(const char *name, int *slen) const
{