Merge pull request #7 from shinyquagsire23/crc-endianness

Fix elf2rpl CRC section endianness
This commit is contained in:
James 2016-07-15 23:10:11 +01:00 committed by GitHub
commit 4eed903b0a

View File

@ -918,7 +918,7 @@ write(ElfFile &file, const std::string &filename)
crc = crc32(crc, reinterpret_cast<Bytef *>(section->data.data()), section->data.size());
}
sectionCRCs.push_back(crc);
sectionCRCs.push_back(byte_swap(crc));
}
char *crcData = reinterpret_cast<char *>(sectionCRCs.data());