mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
Kernel: Print an error when trying to load an incompatible ELF image.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user