mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-22 15:41:30 +01:00
Merge pull request #34 from shinyquagsire23/elf2rpl-tempsize-debug
tempSize is based on all sections with a 0 address except RPL_CRCS and RPL_FILEINFO
This commit is contained in:
commit
9222c46656
@ -1007,7 +1007,7 @@ write(ElfFile &file, const std::string &filename)
|
|||||||
if(val > fileInfo.loadSize) {
|
if(val > fileInfo.loadSize) {
|
||||||
fileInfo.loadSize = val;
|
fileInfo.loadSize = val;
|
||||||
}
|
}
|
||||||
} else if (section->header.type == elf::SHT_RELA) {
|
} else if (section->header.addr == 0 && section->header.type != elf::SHT_RPL_CRCS && section->header.type != elf::SHT_RPL_FILEINFO) {
|
||||||
fileInfo.tempSize += (size + 128);
|
fileInfo.tempSize += (size + 128);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user