summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClement Leger <clement.leger@bootlin.com>2022-01-17 23:19:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-18 09:07:27 +0100
commita01f05e69f7ccf5cbc3a8244ff8e8f7267f5deea (patch)
treedd1b5b19799a619dd6360dcb3d54f95cfff88e2c /include
parentcd55874ed9faa1768af98e766e74b3ed54af3f2a (diff)
downloadbarebox-a01f05e69f7ccf5cbc3a8244ff8e8f7267f5deea.tar.gz
barebox-a01f05e69f7ccf5cbc3a8244ff8e8f7267f5deea.tar.xz
common: elf: add elf_load_binary
In order to load elf from a binary buffer, add elf_load_binary. This will be used by FIT support to allow loading an elf from FIT. Signed-off-by: Clement Leger <clement.leger@bootlin.com> Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu> Link: https://lore.barebox.org/20220117221917.26970-5-jmaselbas@kalray.eu Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index 7970fd2c95..12673e93ed 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -414,6 +414,7 @@ static inline size_t elf_get_mem_size(struct elf_image *elf)
return elf->high_addr - elf->low_addr;
}
+struct elf_image *elf_open_binary(void *buf);
struct elf_image *elf_open(const char *filename);
void elf_close(struct elf_image *elf);
int elf_load(struct elf_image *elf);