From 93730269e8d26954af56e5f99341e60ab53c9c8f Mon Sep 17 00:00:00 2001 From: James Benton Date: Tue, 3 Jul 2018 11:12:57 +0100 Subject: [PATCH] Exports must be in alphabetical order because loader.elf uses binary search --- tools/rplexportgen/rplexportgen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/rplexportgen/rplexportgen.cpp b/tools/rplexportgen/rplexportgen.cpp index 897eb1a..d2b9bcf 100644 --- a/tools/rplexportgen/rplexportgen.cpp +++ b/tools/rplexportgen/rplexportgen.cpp @@ -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]);