mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-30 20:37:45 +00:00
We previously trusted the `map` part in `map_library` too much, and assumed that this would already lock in the binary at its final place. However, the `map()` function of the loader was only called in `load_main_library`, which ran only right before jumping to the entrypoint. Make our binary loading a bit more stable by actually mapping the binary right after we read its information, and only do the linking right before jumping to the entrypoint.
21 KiB
21 KiB