diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-08-12 22:59:14 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-08-12 22:59:14 +0000 |
commit | d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d (patch) | |
tree | 804ddf1638afd6a741b7298fd12027be16b24c5f /include | |
parent | b36f2f729d30b0e535ebaac9119ee65f4214ea1d (diff) | |
download | external_llvm-d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d.zip external_llvm-d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d.tar.gz external_llvm-d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d.tar.bz2 |
[Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failure on ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELFObjectFile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 08cac04..f799f7e 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -577,14 +577,14 @@ ELFObjectFile<ELFT>::isSectionRequiredForExecution(DataRefImpl Sec, template <class ELFT> error_code ELFObjectFile<ELFT>::isSectionVirtual(DataRefImpl Sec, bool &Result) const { - Result = toELFShdrIter(Sec)->sh_type & ELF::SHT_NOBITS; + Result = toELFShdrIter(Sec)->sh_type == ELF::SHT_NOBITS; return object_error::success; } template <class ELFT> error_code ELFObjectFile<ELFT>::isSectionZeroInit(DataRefImpl Sec, bool &Result) const { - Result = toELFShdrIter(Sec)->sh_type & ELF::SHT_NOBITS; + Result = toELFShdrIter(Sec)->sh_type == ELF::SHT_NOBITS; return object_error::success; } |