diff options
author | Deepak Panickal <deepak@codeplay.com> | 2014-07-22 12:01:43 +0000 |
---|---|---|
committer | Deepak Panickal <deepak@codeplay.com> | 2014-07-22 12:01:43 +0000 |
commit | 71f5b50f8b31362ed5bebf5de680c5f3ddf77549 (patch) | |
tree | 113dbefa7d467b8b9506b4e8cd08947789a0038d /lldb/source/Plugins/ObjectFile | |
parent | d4f3f94e6a0abb0a78cdb917f5037d162ea6f54d (diff) | |
download | bcm5719-llvm-71f5b50f8b31362ed5bebf5de680c5f3ddf77549.tar.gz bcm5719-llvm-71f5b50f8b31362ed5bebf5de680c5f3ddf77549.zip |
Fix an issue where an entry point of 0x00 would cause LLDB to think that the ELF is not executable without checking for ET_EXEC
llvm-svn: 213644
Diffstat (limited to 'lldb/source/Plugins/ObjectFile')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index bd819c44930..d9acc996ca2 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -733,7 +733,7 @@ ObjectFileELF::~ObjectFileELF() bool ObjectFileELF::IsExecutable() const { - return m_header.e_entry != 0; + return ((m_header.e_type & ET_EXEC) != 0) || (m_header.e_entry != 0); } bool |