mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
Kernel: Avoid collision between dynamic loader and main program
When loading non position-independent programs, we now take care not to load the dynamic loader at an address that collides with the location the main program wants to load at. Fixes #4847.
This commit is contained in:
parent
40a8159c62
commit
f259d96871
2 changed files with 99 additions and 5 deletions
|
@ -433,6 +433,7 @@ public:
|
|||
|
||||
KResultOr<LoadResult> load(NonnullRefPtr<FileDescription> main_program_description, RefPtr<FileDescription> interpreter_description, const Elf32_Ehdr& main_program_header);
|
||||
KResultOr<LoadResult> load_elf_object(FileDescription& object_description, FlatPtr load_offset, ShouldAllocateTls);
|
||||
KResultOr<FlatPtr> get_interpreter_load_offset(const Elf32_Ehdr& main_program_header, FileDescription& main_program_description, FileDescription& interpreter_description);
|
||||
|
||||
bool is_superuser() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue