1
Fork 0
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:
Itamar 2020-11-23 20:00:35 +02:00 committed by Andreas Kling
parent 28cda567c1
commit 72ca45e300
9 changed files with 247 additions and 64 deletions

View file

@ -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;
}