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:
James 2016-08-14 23:55:48 +01:00 committed by GitHub
commit 9222c46656

View File

@ -1007,7 +1007,7 @@ write(ElfFile &file, const std::string &filename)
if(val > fileInfo.loadSize) {
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);
}
}