summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-08-10 01:36:46 +0000
committerJim Ingham <jingham@apple.com>2010-08-10 01:36:46 +0000
commita73f8ea4e5d302baac9396b32095b31d444d4c9a (patch)
treec98bca2a67cce159579ee8f3f4f27e240ceab69b /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent2210aa2eca031b5fa09d68ff1006df3c4adaa47b (diff)
downloadbcm5719-llvm-a73f8ea4e5d302baac9396b32095b31d444d4c9a.tar.gz
bcm5719-llvm-a73f8ea4e5d302baac9396b32095b31d444d4c9a.zip
Looks like this is how you identify executables in ELF.
llvm-svn: 110641
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index 1568639c811..5b66ef87b08 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -148,8 +148,7 @@ ObjectFileELF::~ObjectFileELF()
bool
ObjectFileELF::IsExecutable() const
{
- // FIXME: How is this marked in ELF?
- return false;
+ return m_header.e_type == ET_EXEC;
}
ByteOrder
OpenPOWER on IntegriCloud