]> git.sur5r.net Git - u-boot/commitdiff
elf: add prototype for valid_elf_image
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 8 Oct 2014 20:58:01 +0000 (22:58 +0200)
committerTom Rini <trini@ti.com>
Sat, 25 Oct 2014 19:27:36 +0000 (15:27 -0400)
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
board/w7o/fsboot.c
include/elf.h

index 25fbb55c8e6c126c0ebc0f433f584ccf934aa40b..8f4fe310d7d2b23bef6dd5da1bd2e50c50615d6f 100644 (file)
@@ -8,12 +8,11 @@
 #include <common.h>
 #include <config.h>
 #include <command.h>
+#include <elf.h>
 
 /*
  * FIXME: Add code to test image and it's header.
  */
-extern int valid_elf_image (unsigned long addr);
-
 static int
 image_check(ulong addr)
 {
index b8ecc41063b3e5b366f1688d60a32dd4f8e914fa..63d93416a3e1246975bd390b8990b6067c350f97 100644 (file)
@@ -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 */