mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Import very modest Userland.
This commit is contained in:
parent
4cbf079a17
commit
63764b3a65
23 changed files with 81 additions and 27 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "ELFImage.h"
|
||||
#include <AK/kstdio.h>
|
||||
|
||||
#ifdef SERENITY_KERNEL
|
||||
#ifdef SERENITY
|
||||
ELFImage::ELFImage(ByteBuffer&& buffer)
|
||||
: m_buffer(buffer)
|
||||
{
|
||||
|
@ -136,7 +136,7 @@ const char* ELFImage::tableString(unsigned offset) const
|
|||
|
||||
const char* ELFImage::rawData(unsigned offset) const
|
||||
{
|
||||
#ifdef SERENITY_KERNEL
|
||||
#ifdef SERENITY
|
||||
return reinterpret_cast<const char*>(m_buffer.pointer()) + offset;
|
||||
#else
|
||||
return reinterpret_cast<const char*>(m_file.pointer()) + offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue