mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
LibELF: Remove ELF::Loader and move everyone to ELF::Image
This commit gets rid of ELF::Loader entirely since its very ambiguous purpose was actually to load executables for the kernel, and that is now handled by the kernel itself. This patch includes some drive-by cleanup in LibDebug and CrashDaemon enabled by the fact that we no longer need to keep the ref-counted ELF::Loader around.
This commit is contained in:
parent
7551a66f73
commit
1e4c010643
24 changed files with 178 additions and 318 deletions
|
@ -26,23 +26,23 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibELF/Loader.h>
|
||||
#include <LibELF/Image.h>
|
||||
|
||||
namespace X86 {
|
||||
|
||||
class ELFSymbolProvider final : public SymbolProvider {
|
||||
public:
|
||||
ELFSymbolProvider(ELF::Loader& loader)
|
||||
: m_loader(loader)
|
||||
ELFSymbolProvider(const ELF::Image& elf)
|
||||
: m_elf(elf)
|
||||
{
|
||||
}
|
||||
|
||||
virtual String symbolicate(FlatPtr address, u32* offset = nullptr) const override
|
||||
{
|
||||
return m_loader.symbolicate(address, offset);
|
||||
return m_elf.symbolicate(address, offset);
|
||||
}
|
||||
|
||||
private:
|
||||
ELF::Loader& m_loader;
|
||||
const ELF::Image& m_elf;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue