mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibELF: Add find_demangled_function
Also, added AK::String::index_of and fixed a bug in ELF::Loader::symbol_ptr
This commit is contained in:
parent
34f0d98e67
commit
e207de8449
7 changed files with 71 additions and 24 deletions
|
@ -52,9 +52,13 @@ public:
|
|||
Function<void*(VirtualAddress, size_t, size_t, bool, bool, const String&)> alloc_section_hook;
|
||||
Function<void*(size_t, size_t)> tls_section_hook;
|
||||
Function<void*(VirtualAddress, size_t, size_t, size_t, bool r, bool w, bool x, const String&)> map_section_hook;
|
||||
VirtualAddress entry() const { return m_image.entry(); }
|
||||
#endif
|
||||
char* symbol_ptr(const char* name);
|
||||
VirtualAddress entry() const
|
||||
{
|
||||
return m_image.entry();
|
||||
}
|
||||
char* symbol_ptr(const char* name) const;
|
||||
Optional<Image::Symbol> find_demangled_function(const String& name) const;
|
||||
|
||||
bool has_symbols() const { return m_symbol_count; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue