coreboot/util/cbfstool
Furquan Shaikh 935a0041ac UPSTREAM: 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.

BUG=chrome-os-partner:31615
BRANCH=None
TEST=Compiles successfully and the elf.rmod created is verified using readelf
and objdump

Change-Id: I67d8c1267b2216786019eadc02f48b6502026602
Author: Aaron Durbin <adurbin@chromium.org>
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/214324
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Commit-Queue: Aaron Durbin <adurbin@chromium.org>
2014-08-28 01:14:13 +00:00
..
lzma cbfstool: Propogate compression errors back to the caller. 2014-02-24 13:35:19 +00:00
cbfs-mkpayload.c rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
cbfs-mkstage.c rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
cbfs.h cbfstool: Add the MIPS architecture 2014-07-23 11:08:43 +00:00
cbfs_image.c util/cbfstool: Fix byte-ordering for payload type field. 2014-05-27 06:20:42 +00:00
cbfs_image.h cbfstool: add code to serialize the header using the new xdr functions 2014-01-25 05:54:30 +00:00
cbfstool.c cbfstool: Add the MIPS architecture 2014-07-23 11:08:43 +00: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 cbfstool: Add the MIPS architecture 2014-07-23 11:08:43 +00:00
common.h rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
compress.c cbfstool: Propogate compression errors back to the caller. 2014-02-24 13:35:19 +00:00
elf.h cbfstool: Add relocation codes for arm mode 2014-07-28 19:19:50 +00:00
elfheaders.c UPSTREAM: elfheaders: fix 64-bit ELF writing 2014-08-28 01:14:10 +00:00
elfparsing.h rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
EXAMPLE cbfstool: Update example file. 2013-02-04 11:12:15 +01:00
fit.c rmodules: add support for rmodtool 2014-03-31 22:25:57 +00: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
Makefile rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
Makefile.inc rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
rmodtool.c rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
rmodule.c UPSTREAM: rmodtool: correct final memory size calculation 2014-08-28 01:14:13 +00:00
rmodule.h rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00
swab.h Various fixes to cbfstool. 2011-10-24 20:29:29 +02:00
xdr.c rmodules: add support for rmodtool 2014-03-31 22:25:57 +00:00