LibELF: Exclude sorted symbols APIs from the Kernel

These are only used by userland, and are implemented using infallible
Strings, so let's just ifdef them out of the Kernel.
This commit is contained in:
Idan Horowitz 2022-02-15 23:19:31 +02:00 committed by Andreas Kling
commit d296001f3f
Notes: sideshowbarker 2024-07-17 18:40:33 +09:00
2 changed files with 6 additions and 3 deletions

View file

@ -381,7 +381,6 @@ Optional<Image::Symbol> Image::find_demangled_function(StringView name) const
});
return found;
}
#endif
Image::SortedSymbol* Image::find_sorted_symbol(FlatPtr address) const
{
@ -428,7 +427,6 @@ NEVER_INLINE void Image::sort_symbols() const
});
}
#ifndef KERNEL
String Image::symbolicate(FlatPtr address, u32* out_offset) const
{
auto symbol_count = this->symbol_count();