switch-coreboot/util
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
..
abuild
acpi
amdtools
arm_boot_tools/mksunxiboot util: replace fseek/ftell/rewind with fstat 2014-08-12 11:53:24 +02:00
board_status board-status: be protocol agnostic on upload 2014-08-12 11:52:49 +02:00
cbfstool rmodtool: correct final memory size calculation 2014-08-27 03:20:27 +02:00
cbmem
crossgcc
dtd_parser
dumpmmcr
ectool
genprof util/genprof: improve handling of command line arguments 2014-08-12 09:02:44 +02:00
getpir
gitconfig
i915tool
ifdfake
ifdtool ifdtool: Provide bounds on string parser 2014-08-10 18:50:30 +02:00
inteltool util/inteltool: fix typo 2014-08-26 10:08:30 +02:00
k8resdump
kconfig
lbtdump
lint board-info: Output errors to stdout like make lint-stable expects 2014-08-18 09:09:22 +02:00
mkelfImage
mptable
msrtool
nvramtool nvramtool: plug some memory leaks 2014-08-12 22:15:20 +02:00
optionlist
resetcf
romcc util: replace fseek/ftell/rewind with fstat 2014-08-12 11:53:24 +02:00
runfw
sconfig sconfig: improve argument parsing 2014-08-04 20:57:12 +02:00
showdevicetree
spkmodem_recv
superiotool
vgabios
viatool
xcompile xcompile: always use -march=i686 2014-08-25 23:33:20 +02:00