mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Remove bootstrapping code from ELFLoader.
This runs inside the kernel now, and I no longer need the emulated version.
This commit is contained in:
parent
9bd09454e3
commit
d90b891406
9 changed files with 7 additions and 196 deletions
|
@ -1,19 +1,11 @@
|
|||
#include "ELFImage.h"
|
||||
#include <AK/kstdio.h>
|
||||
|
||||
#ifdef SERENITY
|
||||
ELFImage::ELFImage(ByteBuffer&& buffer)
|
||||
: m_buffer(buffer)
|
||||
{
|
||||
m_isValid = parse();
|
||||
}
|
||||
#else
|
||||
ELFImage::ELFImage(MappedFile&& file)
|
||||
: m_file(move(file))
|
||||
{
|
||||
m_isValid = parse();
|
||||
}
|
||||
#endif
|
||||
|
||||
ELFImage::~ELFImage()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue