summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-01-18 23:40:42 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-01-18 23:40:42 +0000
commit162b22c155876b2e63468fbb10865a1063114da7 (patch)
treea87d94fcf28dd5e023fc4c7c50ac111715f10418
parente0d5323734471dcb24874592773b4c59546cec1c (diff)
downloadbcm5719-llvm-162b22c155876b2e63468fbb10865a1063114da7.tar.gz
bcm5719-llvm-162b22c155876b2e63468fbb10865a1063114da7.zip
Fixing behavior of ELFObjectFile::getSymbolFileOffset().
llvm-svn: 172872
-rw-r--r--llvm/include/llvm/Object/ELF.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Object/ELF.h b/llvm/include/llvm/Object/ELF.h
index 417a0f1cc93..136fdf5e5e7 100644
--- a/llvm/include/llvm/Object/ELF.h
+++ b/llvm/include/llvm/Object/ELF.h
@@ -1000,7 +1000,7 @@ error_code ELFObjectFile<ELFT>::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:
OpenPOWER on IntegriCloud