tempSize is based on all sections with a 0 address except RPL_CRCS and RPL_FILEINFO

This commit is contained in:
shinyquagsire23 2016-08-13 11:47:17 -07:00
parent f2e4e04805
commit 52d09f5a7b

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);
}
}