mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
Implement loading of linked ELF executables.
This took me a couple hours. :^) The ELF loading code now allocates a single region for the entire file and creates virtual memory mappings for the sections as needed. Very nice!
This commit is contained in:
parent
99ee6acd69
commit
9a71c7759a
Notes:
sideshowbarker
2024-07-19 18:37:37 +09:00
Author: https://github.com/awesomekling
Commit: 9a71c7759a
16 changed files with 258 additions and 57 deletions
|
@ -80,6 +80,8 @@ public:
|
|||
LinearAddress() { }
|
||||
explicit LinearAddress(dword address) : m_address(address) { }
|
||||
|
||||
bool isNull() const { return m_address == 0; }
|
||||
|
||||
LinearAddress offset(dword o) const { return LinearAddress(m_address + o); }
|
||||
dword get() const { return m_address; }
|
||||
void set(dword address) { m_address = address; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue