diff options
Diffstat (limited to 'misc-host/ELF/ELF-loader-test/main.cpp')
| -rw-r--r-- | misc-host/ELF/ELF-loader-test/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/misc-host/ELF/ELF-loader-test/main.cpp b/misc-host/ELF/ELF-loader-test/main.cpp new file mode 100644 index 0000000..30b44bf --- /dev/null +++ b/misc-host/ELF/ELF-loader-test/main.cpp @@ -0,0 +1,12 @@ +#include <stdio.h> +#include "bootloader_compat.h" +#include "elfinfoprint.h" + +int main(void) +{ + void * kernel = LoadFile("kernel.bin", 0); + + ElfInfoPrint((Elf64_Ehdr *)kernel); + return 0; +} + |
