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
+3 -1
View File
@@ -104,7 +104,9 @@ PackMachBase<T>::addStubEntrySections(Filter const *)
: M_IS_NRV2B(ph.method) ? "NRV_HEAD,NRV2B,NRV_TAIL"
: M_IS_LZMA(ph.method) ? "LZMA_ELF00,LZMA_DEC20,LZMA_DEC30"
: NULL), NULL);
addLoader("CFLUSH,ELFMAINY,IDENTSTR,+40,ELFMAINZ,FOLDEXEC", NULL);
if (hasLoaderSection("CFLUSH"))
addLoader("CFLUSH");
addLoader("ELFMAINY,IDENTSTR,+40,ELFMAINZ,FOLDEXEC", NULL);
}
void PackMachI386::addStubEntrySections(Filter const *ft)