cbfstool: add ELF header initialization helper
commit4f930c96496250d167bc1a397fa1faa9f20b3168
authorAaron Durbin <adurbin@chromium.org>
Tue, 27 Oct 2015 21:21:55 +0000 (27 16:21 -0500)
committerAaron Durbin <adurbin@chromium.org>
Thu, 29 Oct 2015 16:00:12 +0000 (29 17:00 +0100)
treeb1cc452477cace30dc50b214bf2534cf226f9765
parent176250292920d119ca6d17181ef468714951b7e2
cbfstool: add ELF header initialization helper

In order for one to extract ELF files from cbfs it's
helpful to have common code which creates a default
executable ELF header for the provided constraints.

BUG=None
TEST=With follow up patch am able to extract out romstage
     as an ELF file.

Change-Id: Ib8f2456f41b79c6c0430861e33e8b909725013f1
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/12218
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
util/cbfstool/elfheaders.c
util/cbfstool/elfparsing.h