1 /* 2 ** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 ** Distributed under the terms of the OpenBeOS License. 4 */ 5 #ifndef KERNEL_BOOT_ELF_H 6 #define KERNEL_BOOT_ELF_H 7 8 9 #include <boot/addr_range.h> 10 #include <sys/stat.h> 11 #include <elf_priv.h> 12 13 14 struct preloaded_image { 15 struct preloaded_image *next; 16 char *name; 17 elf_region text_region; 18 elf_region data_region; 19 addr_range dynamic_section; 20 struct Elf32_Ehdr elf_header; 21 22 struct Elf32_Sym *debug_symbols; 23 const char *debug_string_table; 24 uint32 num_debug_symbols, debug_string_table_size; 25 26 ino_t inode; 27 image_id id; 28 // the ID field will be filled out in the kernel 29 }; 30 31 #endif /* KERNEL_BOOT_ELF_H */ 32