summaryrefslogtreecommitdiff
path: root/Libraries/LibELF/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibELF/Image.cpp')
-rw-r--r--Libraries/LibELF/Image.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibELF/Image.cpp b/Libraries/LibELF/Image.cpp
index d2208234e8..8a5b7f56d8 100644
--- a/Libraries/LibELF/Image.cpp
+++ b/Libraries/LibELF/Image.cpp
@@ -259,6 +259,11 @@ const Image::ProgramHeader Image::program_header(unsigned index) const
return ProgramHeader(*this, index);
}
+FlatPtr Image::program_header_table_offset() const
+{
+ return header().e_phoff;
+}
+
const Image::Relocation Image::RelocationSection::relocation(unsigned index) const
{
ASSERT(index < relocation_count());