coreboot-kgpe-d16/util/cbfstool
Aaron Durbin 518a322d58 rmodtool: correct final memory size calculation
Apparently when I originally wrote this I confused myself to no end.
The code/data of an rmodule has a set memory size which is associated
with the .payload section. The relocation entries may increase the
overall footprint of the memory size if the rmodule has no bss but
a lot of relocations. Therefore, just compare relocation entries size
plus the file size of the .payload section with the memory size of the
paylod section. The .empty section is added only when we have not met
the final target size.

Change-Id: I5521dff048ae64a9b6e3c8f84a390eba37c7d0f5
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/6767
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
2014-08-27 03:20:27 +02:00
..
lzma cbfstool/lzma: Remove dead code under #ifdefs 2014-03-02 05:14:30 +01:00
EXAMPLE
Makefile utils/cbfstool: No need to pass -g flag twice 2014-06-29 04:16:49 +02:00
Makefile.inc build system: fix another cbfstool race 2014-07-15 14:27:04 +02:00
cbfs-mkpayload.c cbfstool: process cbfs_payload_segment(s) in host byte order 2014-08-07 19:05:43 +02:00
cbfs-mkstage.c util/cbfstool: free buffer on error path 2014-07-30 10:36:00 +02:00
cbfs-payload-linux.c cbfstool: account for the trampoline code in bzImage payload 2014-05-09 08:24:32 +02:00
cbfs.h cbfstool: process cbfs_payload_segment(s) in host byte order 2014-08-07 19:05:43 +02:00
cbfs_image.c cbfstool: process cbfs_payload_segment(s) in host byte order 2014-08-07 19:05:43 +02:00
cbfs_image.h cbfstool: Deserialize CBFS master header when reading image 2014-02-11 20:14:39 +01:00
cbfstool.c cbfstool: fix option parsing 2014-08-09 19:54:09 +02:00
coff.h
common.c util: replace fseek/ftell/rewind with fstat 2014-08-12 11:53:24 +02:00
common.h cbfstool: provide structure to linux payload builder 2014-03-28 14:40:53 +01:00
compress.c cbfs: fix issues with word size and endianness. 2014-01-29 20:03:44 +01:00
elf.h
elfheaders.c elfheaders: fix 64-bit ELF writing 2014-08-22 21:30:09 +02:00
elfparsing.h cbfstool: add ELF writing support 2014-03-18 18:59:25 +01:00
fit.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
fit.h
fv.h
linux.h
linux_trampoline.c cbfstool: Fix build errors when building with clang 2014-02-10 05:43:56 +01:00
rmodtool.c util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
rmodule.c rmodtool: correct final memory size calculation 2014-08-27 03:20:27 +02:00
rmodule.h util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
swab.h
xdr.c cbfstool: add bputs() to store a byte stream to a buffer 2014-03-11 19:43:17 +01:00