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
This commit is contained in:
Deepak Panickal 2014-07-22 12:01:43 +00:00
parent d4f3f94e6a
commit 71f5b50f8b
1 changed files with 1 additions and 1 deletions

View File

@ -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