1
Fork 0
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:
Andreas Kling 2018-11-04 13:42:44 +01:00
parent 9bd09454e3
commit d90b891406
9 changed files with 7 additions and 196 deletions

View file

@ -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()
{