mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibELF: Remove unused cruft in ELF::Loader
This commit is contained in:
@@ -137,23 +137,6 @@ bool Loader::layout()
|
||||
return !failed;
|
||||
}
|
||||
|
||||
char* Loader::symbol_ptr(const char* name) const
|
||||
{
|
||||
char* found_ptr = nullptr;
|
||||
m_image.for_each_symbol([&](const Image::Symbol symbol) {
|
||||
if (symbol.type() != STT_FUNC)
|
||||
return IterationDecision::Continue;
|
||||
if (symbol.name() != name)
|
||||
return IterationDecision::Continue;
|
||||
if (m_image.is_executable())
|
||||
found_ptr = (char*)(size_t)symbol.value();
|
||||
else
|
||||
ASSERT_NOT_REACHED();
|
||||
return IterationDecision::Break;
|
||||
});
|
||||
return found_ptr;
|
||||
}
|
||||
|
||||
Optional<Image::Symbol> Loader::find_demangled_function(const String& name) const
|
||||
{
|
||||
Optional<Image::Symbol> found;
|
||||
|
||||
Reference in New Issue
Block a user