mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-30 14:43:38 +03:00
Kernel: Don't warn when running dynamically-linked ELF without PT_INTERP
We could technically copy the dynamic loader to other path and run it from there, so let's not assume paths. If the user is so determined to do such thing, then a warning is quite meaningless.
This commit is contained in:
parent
a8601b4ac7
commit
5dba1dedb7
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/5dba1dedb7 Pull-request: https://github.com/SerenityOS/serenity/pull/21527 Reviewed-by: https://github.com/ADKaster ✅
@ -864,8 +864,6 @@ ErrorOr<RefPtr<OpenFileDescription>> Process::find_elf_interpreter_for_executabl
|
||||
if (main_executable_header.e_type == ET_DYN) {
|
||||
// If it's ET_DYN with no PT_INTERP, then it's a dynamic executable responsible
|
||||
// for its own relocation (i.e. it's /usr/lib/Loader.so)
|
||||
if (path != "/usr/lib/Loader.so")
|
||||
dbgln("exec({}): WARNING - Dynamic ELF executable without a PT_INTERP header, and isn't /usr/lib/Loader.so", path);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user