diff options
author | Clement Leger <clement.leger@kalray.eu> | 2019-09-04 13:24:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-06 09:15:44 +0200 |
commit | 0ca284b26d0ef59912380478b71a90976e3e79cc (patch) | |
tree | 33655e99a064309ed2e24dc21d9a21bd85e7e472 /common/console_simple.c | |
parent | 59cca4148316026c6b5c2145cc316392fd4c29d7 (diff) | |
download | barebox-0ca284b26d0ef59912380478b71a90976e3e79cc.tar.gz barebox-0ca284b26d0ef59912380478b71a90976e3e79cc.tar.xz |
elf: add 64 bits elf loading support
This patch add elf64 loading support to the elf loader. Since
elf32 and elf64 uses completely different types, to avoid copying all
the code and simply replace elf32 with elf64, use a macro which will
return the appropriate field for each type of header. This macro
generates getter for elf structures according to the class of the loaded
elf.
All direct elf struct dereference are then replaced by call to generated
functions. This allows to keep a common loader code even if types are
different.
Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Clement Leger <cleger@kalray.eu>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console_simple.c')
0 files changed, 0 insertions, 0 deletions