mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +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
9 changed files with 247 additions and 64 deletions
|
@ -44,7 +44,6 @@ NonnullOwnPtr<MmapRegion> MmapRegion::create_file_backed(u32 base, u32 size, u32
|
|||
auto region = adopt_own(*new MmapRegion(base, size, prot));
|
||||
region->m_file_backed = true;
|
||||
if (!name.is_empty()) {
|
||||
dbgln("name is not empty");
|
||||
name = String::format("%s (Emulated)", name.characters());
|
||||
region->m_name = name;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue