diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-27 01:29:49 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-27 01:29:49 +0100 |
commit | abd5931184c49fffc62efeadb2795ccbb86bce05 (patch) | |
tree | 50a6abc6dfe459221a05fad2e02c0fd600a82162 /Kernel | |
parent | e2a24e574630886d1033be9111efe5b8b3ed7f94 (diff) | |
download | serenity-abd5931184c49fffc62efeadb2795ccbb86bce05.zip |
Kernel: Print an error when trying to load an incompatible ELF image.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/ELFImage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/ELFImage.cpp b/Kernel/ELFImage.cpp index 51d9975883..9e86036540 100644 --- a/Kernel/ELFImage.cpp +++ b/Kernel/ELFImage.cpp @@ -91,8 +91,10 @@ unsigned ELFImage::program_header_count() const bool ELFImage::parse() { // We only support i386. - if (header().e_machine != 3) + if (header().e_machine != 3) { + kprintf("ELFImage::parse(): e_machine=%u not supported!\n"); return false; + } // First locate the string tables. for (unsigned i = 0; i < section_count(); ++i) { |