From: Michael J. Spencer Date: Mon, 12 Aug 2013 22:59:14 +0000 (+0000) Subject: [Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failure on ARM. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d;p=oota-llvm.git [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 --- diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 08cac04ac6d..f799f7e26a1 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -577,14 +577,14 @@ ELFObjectFile::isSectionRequiredForExecution(DataRefImpl Sec, template error_code ELFObjectFile::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 error_code ELFObjectFile::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; }