mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Use the entry point address from the ELF header instead of looking up _start.
I love these kind of dumb gotcha moments. Turns out you can find the entry address right there in the header. :^)
This commit is contained in:
parent
ab72666f48
commit
46ce47a984
3 changed files with 5 additions and 2 deletions
|
@ -17,6 +17,7 @@ public:
|
|||
char* symbol_ptr(const char* name);
|
||||
bool allocate_section(LinearAddress, size_t, size_t alignment, bool is_readable, bool is_writable);
|
||||
bool map_section(LinearAddress, size_t, size_t alignment, size_t offset_in_image, bool is_readable, bool is_writable);
|
||||
LinearAddress entry() const { return m_image.entry(); }
|
||||
|
||||
private:
|
||||
bool layout();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue