You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

elf.h 607B

12345678910111213141516171819202122232425262728
  1. #ifndef _IPXE_ELF_H
  2. #define _IPXE_ELF_H
  3. /**
  4. * @file
  5. *
  6. * ELF image format
  7. *
  8. */
  9. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  10. #include <stdint.h>
  11. #include <ipxe/image.h>
  12. #include <elf.h>
  13. typedef Elf32_Ehdr Elf_Ehdr;
  14. typedef Elf32_Phdr Elf_Phdr;
  15. typedef Elf32_Off Elf_Off;
  16. #define ELFCLASS ELFCLASS32
  17. extern int elf_segments ( struct image *image, Elf_Ehdr *ehdr,
  18. int ( * process ) ( struct image *image,
  19. Elf_Phdr *phdr, physaddr_t dest ),
  20. physaddr_t *entry, physaddr_t *max );
  21. extern int elf_load ( struct image *image, physaddr_t *entry, physaddr_t *max );
  22. #endif /* _IPXE_ELF_H */