summaryrefslogtreecommitdiffstats
path: root/util/cbfstool/rmodule.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-10-28 11:26:40 -0500
committerAaron Durbin <adurbin@chromium.org>2015-10-29 17:00:47 +0100
commitcedcb882c1f0a2b9b61ffed9a646744d3e481e60 (patch)
tree4e5ed1ba81f210a66a26e7240f4f3d8bf3391fc7 /util/cbfstool/rmodule.c
parent8e982eabfacf9cce5bcc011ee2c23ca7ced4b05c (diff)
downloadcoreboot-cedcb882c1f0a2b9b61ffed9a646744d3e481e60.tar.gz
coreboot-cedcb882c1f0a2b9b61ffed9a646744d3e481e60.tar.bz2
coreboot-cedcb882c1f0a2b9b61ffed9a646744d3e481e60.zip
cbfstool: add ELF symbol, relocation, and string table support
In order to convert rmodules back into ELF files one needs to add in the relocations so they can be converted back to rmodules. Because of that requirement symbol tables need to be present because the relocations reference the symbols. Additionally, symbol tables reference a string table for the symbol names. Provide the necessary support for adding all of those things to an ELF writer. TEST=Extracted rmodule from a cbfs and compared with the source ELF file. Confirmed relocations and code sizes are correct. Change-Id: I07e87a30b3371ddedabcfc682046e3db8c956ff2 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/12221 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/cbfstool/rmodule.c')
0 files changed, 0 insertions, 0 deletions