diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 417a0f1cc93..136fdf5e5e7 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -1000,7 +1000,7 @@ error_code ELFObjectFile::getSymbolFileOffset(DataRefImpl Symb, switch (symb->getType()) { case ELF::STT_SECTION: - Result = Section ? Section->sh_addr : UnknownAddressOrSize; + Result = Section ? Section->sh_offset : UnknownAddressOrSize; return object_error::success; case ELF::STT_FUNC: case ELF::STT_OBJECT: