Fix loading multiple plugins at the same time. The plugin destination in memory is not aligned by 0x100.

This commit is contained in:
Maschell 2018-07-01 12:56:02 +02:00
parent 28a2e85eae
commit 88da4f3490

View File

@ -323,7 +323,7 @@ bool PluginLoader::loadAndLinkElf(PluginData * pluginData, Elf *elf, void * star
}
ElfTools::elfLoadSymbols(elf_ndxscn(scn), (void*) firstCurAddress, symtab, symtab_count);
curAddress = destination + shdr->sh_size;
curAddress = ROUNDUP(destination + shdr->sh_size,0x100);
}
}
}