commit | 1240b9152b87cd0fd0d418794213f34b4b273dd2 | [log] [tgz] |
---|---|---|
author | Jim Ingham <jingham@apple.com> | Tue Aug 10 01:36:46 2010 +0000 |
committer | Jim Ingham <jingham@apple.com> | Tue Aug 10 01:36:46 2010 +0000 |
tree | 14cfc4c31f7c52a04e8cc4beb5b5e14fd654501a | |
parent | 6fb8baa66796cdb23f337dd03272bf15d97fdab9 [diff] [blame] |
Looks like this is how you identify executables in ELF. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@110641 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 1568639..5b66ef8 100644 --- a/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -148,8 +148,7 @@ bool ObjectFileELF::IsExecutable() const { - // FIXME: How is this marked in ELF? - return false; + return m_header.e_type == ET_EXEC; } ByteOrder