summaryrefslogtreecommitdiff
path: root/include/llvm/Object/ELFObjectFile.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-08-12 22:59:14 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-08-12 22:59:14 +0000
commitd3d5e6d8eb8f4bbb26decb582f0730600ed8a53d (patch)
tree804ddf1638afd6a741b7298fd12027be16b24c5f /include/llvm/Object/ELFObjectFile.h
parentb36f2f729d30b0e535ebaac9119ee65f4214ea1d (diff)
downloadllvm-d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d.tar.gz
llvm-d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d.tar.bz2
llvm-d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d.tar.xz
[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/llvm/Object/ELFObjectFile.h')
-rw-r--r--include/llvm/Object/ELFObjectFile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h
index 08cac04ac6..f799f7e26a 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;
}