summaryrefslogtreecommitdiff
path: root/Kernel/ELFImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/ELFImage.cpp')
-rw-r--r--Kernel/ELFImage.cpp4
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) {