mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Kernel: Print an error when trying to load an incompatible ELF image.
This commit is contained in:
parent
e2a24e5746
commit
abd5931184
Notes:
sideshowbarker
2024-07-19 14:56:16 +09:00
Author: https://github.com/awesomekling
Commit: abd5931184
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue