mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Added elf symbols resolver
This commit is contained in:
21
include/symbols.hpp
Normal file
21
include/symbols.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include <types.h>
|
||||
|
||||
namespace SymbolResolver
|
||||
{
|
||||
class Symbols
|
||||
{
|
||||
public:
|
||||
struct SymbolTable
|
||||
{
|
||||
uint64_t Address;
|
||||
char *FunctionName;
|
||||
};
|
||||
|
||||
Symbols(uint64_t Address);
|
||||
~Symbols();
|
||||
const char *GetSymbolFromAddress(uint64_t Address);
|
||||
};
|
||||
}
|
||||
|
||||
extern SymbolResolver::Symbols *SymTbl;
|
Reference in New Issue
Block a user