From 74de2a77dcb0a0eb9f6e905178b394db2973e57c Mon Sep 17 00:00:00 2001 From: shinyquagsire23 Date: Fri, 15 Jul 2016 15:06:47 -0700 Subject: [PATCH] Fix elf2rpl CRC section endianness --- tools/elf2rpl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());