mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 20:10:18 +03:00
Create include/gpxe/elf.h for the ELF bits that aren't part of the ELF
standard and so don't belong in include/elf.h
This commit is contained in:
26
src/include/gpxe/elf.h
Normal file
26
src/include/gpxe/elf.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _GPXE_ELF_H
|
||||
#define _GPXE_ELF_H
|
||||
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* ELF image format
|
||||
*
|
||||
*/
|
||||
|
||||
#include <elf.h>
|
||||
|
||||
/** An ELF file */
|
||||
struct elf {
|
||||
/** ELF file image */
|
||||
userptr_t image;
|
||||
/** Length of ELF file image */
|
||||
size_t len;
|
||||
|
||||
/** Entry point */
|
||||
physaddr_t entry;
|
||||
};
|
||||
|
||||
extern int elf_load ( struct elf *elf );
|
||||
|
||||
#endif /* _GPXE_ELF_H */
|
||||
Reference in New Issue
Block a user