forked from OSchip/llvm-project
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:
parent
d4f3f94e6a
commit
71f5b50f8b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue