From 52d09f5a7b4abfd4c681167809751a386b61c189 Mon Sep 17 00:00:00 2001 From: shinyquagsire23 Date: Sat, 13 Aug 2016 11:47:17 -0700 Subject: [PATCH] tempSize is based on all sections with a 0 address except RPL_CRCS and RPL_FILEINFO --- tools/elf2rpl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/elf2rpl/main.cpp b/tools/elf2rpl/main.cpp index 0f3499c..dd5afcd 100644 --- a/tools/elf2rpl/main.cpp +++ b/tools/elf2rpl/main.cpp @@ -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); } }