mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-23 23:31:13 +01:00
elf2rpl: Fix SHT_RPL_CRCS section
This commit is contained in:
parent
9bcf22e40f
commit
541676ce38
@ -405,7 +405,7 @@ generateFileInfoSection(ElfFile &file)
|
|||||||
static bool
|
static bool
|
||||||
generateCrcSection(ElfFile &file)
|
generateCrcSection(ElfFile &file)
|
||||||
{
|
{
|
||||||
std::vector<uint32_t> crcs;
|
std::vector<be_val<uint32_t>> crcs;
|
||||||
for (auto §ion : file.sections) {
|
for (auto §ion : file.sections) {
|
||||||
auto crc = uint32_t { 0u };
|
auto crc = uint32_t { 0u };
|
||||||
|
|
||||||
@ -417,6 +417,9 @@ generateCrcSection(ElfFile &file)
|
|||||||
crcs.push_back(crc);
|
crcs.push_back(crc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Insert a 0 crc for this section
|
||||||
|
crcs.insert(crcs.end() - 1, 0);
|
||||||
|
|
||||||
auto section = std::make_unique<ElfFile::Section>();
|
auto section = std::make_unique<ElfFile::Section>();
|
||||||
section->header.name = 0u;
|
section->header.name = 0u;
|
||||||
section->header.type = elf::SHT_RPL_CRCS;
|
section->header.type = elf::SHT_RPL_CRCS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user