mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
The EFI Prekernel needs the kernel to be relocatable. pre_init now needs to relocate itself so it still works when linking without `--no-pie`.
17 lines
367 B
C++
17 lines
367 B
C++
/*
|
|
* Copyright (c) 2021, Gunnar Beutner <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Kernel/Memory/VirtualAddress.h>
|
|
|
|
namespace ELF {
|
|
|
|
bool perform_relative_relocations(FlatPtr base_address, FlatPtr runtime_base_address, FlatPtr dynamic_section_addr);
|
|
bool perform_relative_relocations(FlatPtr base_address);
|
|
|
|
}
|