projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
There was a missing addition of the size of the .notes.pinfo
[coreboot.git]
/
util
/
cbfstool
/
cbfs-mkpayload.c
diff --git
a/util/cbfstool/cbfs-mkpayload.c
b/util/cbfstool/cbfs-mkpayload.c
index 4f0e2481234fbd7549ec44490367a7f6d33ca353..f8cc1616b0449e21fab0abd9e8e6863e22738a93 100644
(file)
--- a/
util/cbfstool/cbfs-mkpayload.c
+++ b/
util/cbfstool/cbfs-mkpayload.c
@@
-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,