mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
UserspaceEmulator: Support dynamically loaded programs
When loading dynamic objects, the emulator loads the interpreter, generates an auxiliary vector and starts executing the loader. Additionally, this commits also makes the MallocTracer and backtrace symbolication work for dynamically loaded programs.
This commit is contained in:
parent
28cda567c1
commit
72ca45e300
Notes:
sideshowbarker
2024-07-19 00:50:07 +09:00
Author: https://github.com/itamar8910
Commit: 72ca45e300
Pull-request: https://github.com/SerenityOS/serenity/pull/3738
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
9 changed files with 247 additions and 64 deletions
|
@ -254,6 +254,8 @@ static FlatPtr loader_main(auxv_t* auxvp)
|
|||
}
|
||||
}
|
||||
ASSERT(main_program_fd >= 0);
|
||||
ASSERT(!main_program_name.is_null());
|
||||
dbgln("loading: {}", main_program_name);
|
||||
|
||||
map_library(main_program_name, main_program_fd);
|
||||
map_dependencies(main_program_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue