[PATCH] D62838: [Object] add isExecutableObject member function
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 03:44:48 PDT 2019
MaskRay added inline comments.
================
Comment at: llvm/include/llvm/Object/ELFObjectFile.h:1203
+template <class ELFT> bool ELFObjectFile<ELFT>::isExecutableObject() const {
+ return EF.getHeader()->e_type == ELF::ET_EXEC;
+}
----------------
Some people will be surprised if `ET_DYN` is not considered as executable object.
Position-Independent Executables use `ET_DYN`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62838/new/
https://reviews.llvm.org/D62838
More information about the llvm-commits
mailing list