There was a missing addition of the size of the .notes.pinfo
[coreboot.git] / util / cbfstool / cbfs-mkpayload.c
index 4f0e2481234fbd7549ec44490367a7f6d33ca353..f8cc1616b0449e21fab0abd9e8e6863e22738a93 100644 (file)
@@ -75,8 +75,10 @@ int parse_elf_to_payload(unsigned char *input, unsigned char **output,
 
                name = (char *)(strtab + shdr[i].sh_name);
 
-               if (!strcmp(name, ".note.pinfo"))
+               if (!strcmp(name, ".note.pinfo")) {
                        segments++;
+                       isize += (unsigned int)shdr[i].sh_size;
+               }
        }
 
        /* Now, regular headers - we only care about PT_LOAD headers,