fix for user brk() on ARM with static linking
This commit is contained in:
+4
-1
@@ -436,7 +436,10 @@ PackLinuxElf::addStubEntrySections(Filter const *)
|
|||||||
{
|
{
|
||||||
addLoader("ELFMAINX", NULL);
|
addLoader("ELFMAINX", NULL);
|
||||||
if (hasLoaderSection("ELFMAINXu")) {
|
if (hasLoaderSection("ELFMAINXu")) {
|
||||||
addLoader((opt->o_unix.unmap_all_pages ? "LUNMP000" : "LUNMP001"), "ELFMAINXu", NULL);
|
int const all_pages = opt->o_unix.unmap_all_pages ||
|
||||||
|
// brk() trouble if static
|
||||||
|
(Elf32_Ehdr::EM_ARM==e_machine && 0x8000==load_va);
|
||||||
|
addLoader((all_pages ? "LUNMP000" : "LUNMP001"), "ELFMAINXu", NULL);
|
||||||
}
|
}
|
||||||
//addLoader(getDecompressorSections(), NULL);
|
//addLoader(getDecompressorSections(), NULL);
|
||||||
addLoader(
|
addLoader(
|
||||||
|
|||||||
Reference in New Issue
Block a user