coreboot-kgpe-d16/util/cbfstool
Aaron Durbin 4f3bb801ed cbfstool: provide structure to linux payload builder
This change started with tracking down a bug where the trampoline
size was not being taken into account for sizing the output buffer
leading to a heap corruption.  I was having a hard time keeping
track of what num_segments actually tracked as well as what parts
were being placed in the output buffer. Here's my attempt at
hopefully providing more clarity.

This change doesn't crash when adding a bzImage:
$ dd if=/dev/zero of=bb.bin bs=64 count=1
$ ./cbfstool tmp.rom create -s 4M -B bb.bin -m x86 -a 64
$ ./cbfstool tmp.rom add-payload -f ~/Downloads/bzImage -C "1" -n
"fallback"/payload

Change-Id: Ib1de1ddfec3c7102facffc5815c52b340fcdc628
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5408
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
2014-03-28 14:40:53 +01:00
..
lzma
EXAMPLE
Makefile util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
Makefile.inc util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
cbfs-mkpayload.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
cbfs-mkstage.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
cbfs-payload-linux.c cbfstool: provide structure to linux payload builder 2014-03-28 14:40:53 +01:00
cbfs.h cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
cbfs_image.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
cbfs_image.h
cbfstool.c cbfstool: add eflparsing.h 2014-03-13 05:28:44 +01:00
coff.h
common.c cbfstool: move iself() to eflheaders.c 2014-03-13 05:28:07 +01:00
common.h cbfstool: provide structure to linux payload builder 2014-03-28 14:40:53 +01:00
compress.c
elf.h
elfheaders.c cbfstool: add ELF writing support 2014-03-18 18:59:25 +01: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
rmodtool.c util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
rmodule.c util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
rmodule.h util: add rmodtool for parsing ELF files to rmodules 2014-03-20 21:34:39 +01:00
swab.h
xdr.c