Skip to content

Commit

Permalink
[Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failur…
Browse files Browse the repository at this point in the history
…e on ARM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188220 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Bigcheese committed Aug 12, 2013
1 parent b36f2f7 commit d3d5e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/llvm/Object/ELFObjectFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d3d5e6d

Please sign in to comment.