summaryrefslogtreecommitdiff
path: root/view/elf/elfview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/elf/elfview.cpp')
-rw-r--r--view/elf/elfview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/elf/elfview.cpp b/view/elf/elfview.cpp
index f09517d9..1279dead 100644
--- a/view/elf/elfview.cpp
+++ b/view/elf/elfview.cpp
@@ -66,7 +66,8 @@ ElfView::ElfView(BinaryView* data, bool parseOnly): BinaryView("ELF", data->GetF
throw ElfFormatException(errorMsg);
m_elf32 = m_ident.fileClass == 1;
- m_addressSize = (m_ident.fileClass == 1 || (m_plat && m_plat->GetName() == "linux-32")) ? 4 : 8;
+ m_addressSize = (m_ident.fileClass == 1 || (m_plat && m_plat->GetName() == "linux-x32") ||
+ (m_plat && m_plat->GetName() == "linux-ilp32")) ? 4 : 8;
m_endian = endian;
m_relocatable = m_commonHeader.type == ET_DYN || m_commonHeader.type == ET_REL;
m_objectFile = m_commonHeader.type == ET_REL;