diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-20 01:48:23 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-20 02:32:02 +0100 |
commit | 1342c53e27839d53445a7518ca4c635bcc7e7a62 (patch) | |
tree | 147d036ef6e08b1d7ba8b80a4c5f13ca6264ede4 /src/core/loader/linker.h | |
parent | loader: Remove Linker inheritance from NRO and NSO loaders (diff) | |
download | yuzu-1342c53e27839d53445a7518ca4c635bcc7e7a62.tar yuzu-1342c53e27839d53445a7518ca4c635bcc7e7a62.tar.gz yuzu-1342c53e27839d53445a7518ca4c635bcc7e7a62.tar.bz2 yuzu-1342c53e27839d53445a7518ca4c635bcc7e7a62.tar.lz yuzu-1342c53e27839d53445a7518ca4c635bcc7e7a62.tar.xz yuzu-1342c53e27839d53445a7518ca4c635bcc7e7a62.tar.zst yuzu-1342c53e27839d53445a7518ca4c635bcc7e7a62.zip |
Diffstat (limited to 'src/core/loader/linker.h')
-rw-r--r-- | src/core/loader/linker.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/core/loader/linker.h b/src/core/loader/linker.h deleted file mode 100644 index 107625837..000000000 --- a/src/core/loader/linker.h +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2018 yuzu emulator team -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include <map> -#include <string> -#include "common/common_types.h" - -namespace Loader { - -class Linker { -protected: - struct Symbol { - Symbol(std::string&& name, u64 value) : name(std::move(name)), value(value) {} - std::string name; - u64 value; - }; - - struct Import { - VAddr ea; - s64 addend; - }; - - void WriteRelocations(std::vector<u8>& program_image, const std::vector<Symbol>& symbols, - u64 relocation_offset, u64 size, VAddr load_base); - void Relocate(std::vector<u8>& program_image, u32 dynamic_section_offset, VAddr load_base); - - void ResolveImports(); - - std::map<std::string, Import> imports; - std::map<std::string, VAddr> exports; -}; - -} // namespace Loader |