Files
Sönke Holz c0d70a6e24 Kernel/riscv64: Make the kernel bootable with the EFI Prekernel
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`.
2025-02-21 00:41:53 +01:00

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);
}