summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/elf.h
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2007-03-27 15:29:50 -0700
committerPaul Mackerras <paulus@samba.org>2007-04-13 03:55:16 +1000
commit88e687313e683ee006152d611b95f40900e3bce0 (patch)
treef4929de1202fb2f16bce5b5bfc144b60c7f9571b /arch/powerpc/boot/elf.h
parent5e41763ae9b4b6335fab88da85600f16d7a5a7b5 (diff)
downloadop-kernel-dev-88e687313e683ee006152d611b95f40900e3bce0.zip
op-kernel-dev-88e687313e683ee006152d611b95f40900e3bce0.tar.gz
[POWERPC] Move bootwrapper ELF parsing routines to a file
The ELF parsing routines local to arch/powerpc/boot/main.c are useful to other callers therefore move them to their own file. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/elf.h')
-rw-r--r--arch/powerpc/boot/elf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/boot/elf.h b/arch/powerpc/boot/elf.h
index d4828fc..1941bc5 100644
--- a/arch/powerpc/boot/elf.h
+++ b/arch/powerpc/boot/elf.h
@@ -146,4 +146,12 @@ typedef struct elf64_phdr {
#define ELFOSABI_NONE 0
#define ELFOSABI_LINUX 3
+struct elf_info {
+ unsigned long loadsize;
+ unsigned long memsize;
+ unsigned long elfoffset;
+};
+int parse_elf64(void *hdr, struct elf_info *info);
+int parse_elf32(void *hdr, struct elf_info *info);
+
#endif /* _PPC_BOOT_ELF_H_ */
OpenPOWER on IntegriCloud