From: Jeroen Hofstee Date: Wed, 8 Oct 2014 20:58:01 +0000 (+0200) Subject: elf: add prototype for valid_elf_image X-Git-Tag: v2015.01-rc1~137 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6f38477d3ad4cbe7d9efa9344dec805144828b2e;p=oweals%2Fu-boot.git elf: add prototype for valid_elf_image Signed-off-by: Jeroen Hofstee --- diff --git a/board/w7o/fsboot.c b/board/w7o/fsboot.c index 25fbb55c8e..8f4fe310d7 100644 --- a/board/w7o/fsboot.c +++ b/board/w7o/fsboot.c @@ -8,12 +8,11 @@ #include #include #include +#include /* * FIXME: Add code to test image and it's header. */ -extern int valid_elf_image (unsigned long addr); - static int image_check(ulong addr) { diff --git a/include/elf.h b/include/elf.h index b8ecc41063..63d93416a3 100644 --- a/include/elf.h +++ b/include/elf.h @@ -570,4 +570,6 @@ unsigned long elf_hash(const unsigned char *name); that may still be in object files. */ #define R_PPC_TOC16 255 +int valid_elf_image(unsigned long addr); + #endif /* _ELF_H */