From f9fe35dbf1b5c37d7ced0e7ea35c13de16b9e9e3 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Mon, 31 Dec 2012 19:53:06 +0100 Subject: [Embtk] ELFObjectFile::isSectionZeroInit() fix test, pr14723 Signed-off-by: Abdoulaye Walsimou Gaye --- include/llvm/Object/ELF.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 466de93a78..88b116c0de 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -1305,7 +1305,7 @@ error_code ELFObjectFile const Elf_Shdr *sec = reinterpret_cast(Sec.p); // For ELF, all zero-init sections are virtual (that is, they occupy no space // in the object image) and vice versa. - if (sec->sh_flags & ELF::SHT_NOBITS) + if (sec->sh_type == ELF::SHT_NOBITS) Result = true; else Result = false; -- cgit v1.2.3