summaryrefslogtreecommitdiff
path: root/Libraries/LibELF/ELFImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibELF/ELFImage.cpp')
-rw-r--r--Libraries/LibELF/ELFImage.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Libraries/LibELF/ELFImage.cpp b/Libraries/LibELF/ELFImage.cpp
index cb93e2abc3..33ac0ff426 100644
--- a/Libraries/LibELF/ELFImage.cpp
+++ b/Libraries/LibELF/ELFImage.cpp
@@ -2,8 +2,9 @@
#include <AK/kstdio.h>
#include <LibELF/ELFImage.h>
-ELFImage::ELFImage(const u8* buffer)
+ELFImage::ELFImage(const u8* buffer, size_t size)
: m_buffer(buffer)
+ , m_size(size)
{
m_valid = parse();
}
@@ -59,6 +60,8 @@ void ELFImage::dump() const
dbgprintf(" entry: %x\n", header().e_entry);
dbgprintf(" shoff: %u\n", header().e_shoff);
dbgprintf(" shnum: %u\n", header().e_shnum);
+ dbgprintf(" phoff: %u\n", header().e_phoff);
+ dbgprintf(" phnum: %u\n", header().e_phnum);
dbgprintf(" shstrndx: %u\n", header().e_shstrndx);
for (unsigned i = 0; i < header().e_shnum; ++i) {