forked from OSchip/llvm-project
[Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failure on ARM.
llvm-svn: 188220
This commit is contained in:
parent
a5e5698441
commit
ef1b5334b2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue