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 cbfstool: Update example file. 2013-02-04 11:12:15 +01:00
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 GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
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 cbfstool: add a constant for the aarch64 2013-11-18 16:58:58 +01:00
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 cbfstool: Add update-fit command 2013-03-27 01:25:12 +01:00
fv.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
linux.h Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
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 Various fixes to cbfstool. 2011-10-24 20:29:29 +02:00
xdr.c cbfstool: add bputs() to store a byte stream to a buffer 2014-03-11 19:43:17 +01:00