Looks like this is how you identify executables in ELF.

llvm-svn: 110641
This commit is contained in:
Jim Ingham
2010-08-10 01:36:46 +00:00
parent 2210aa2eca
commit a73f8ea4e5

View File

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