Exports must be in alphabetical order because loader.elf uses binary search

This commit is contained in:
James Benton 2018-07-03 11:12:57 +01:00
parent 17a83000e0
commit 93730269e8

View File

@ -144,6 +144,10 @@ int main(int argc, char **argv)
}
}
// Exports must be in alphabetical order because loader.elf uses binary search
std::sort(funcExports.begin(), funcExports.end());
std::sort(dataExports.begin(), dataExports.end());
{
std::ofstream out;
out.open(argv[2]);