Fix conflict between VDSO and unfolded decompressor for ET_DYN

(-fPIE) with unlimited stack on Linux-2.6.34 et al.
This commit is contained in:
John Reiser
2010-07-16 20:58:52 -07:00
parent d08a51d7e4
commit 5336c51199
6 changed files with 2089 additions and 2039 deletions
+5 -1
View File
@@ -635,7 +635,11 @@ void PackLinuxElf32x86::addStubEntrySections(Filter const *ft)
}
addLoader("IDENTSTR", NULL);
addLoader("LEXEC020", (opt->o_unix.unmap_all_pages ? "LUNMP000" : "LUNMP001"), "LEXEC025", NULL);
addLoader("LEXEC020", NULL);
if (Elf32_Ehdr::ET_DYN==get_te16(&ehdri.e_type)) {
addLoader("LEXECDYN", NULL);
}
addLoader((opt->o_unix.unmap_all_pages ? "LUNMP000" : "LUNMP001"), "LEXEC025", NULL);
addLoader("FOLDEXEC", NULL);
}