diff --git a/tools/elf2rpl/main.cpp b/tools/elf2rpl/main.cpp index bb5cfec..610fe5c 100644 --- a/tools/elf2rpl/main.cpp +++ b/tools/elf2rpl/main.cpp @@ -918,7 +918,7 @@ write(ElfFile &file, const std::string &filename) crc = crc32(crc, reinterpret_cast(section->data.data()), section->data.size()); } - sectionCRCs.push_back(crc); + sectionCRCs.push_back(byte_swap(crc)); } char *crcData = reinterpret_cast(sectionCRCs.data());