diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-22 19:24:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-22 19:24:34 +0000 |
commit | 30115ec7a3e35038554d4131f3c515744cbdd933 (patch) | |
tree | 5f67838d3bd93d24406603794bed2c2442c3ac0c /include | |
parent | 1f4492e0b0d3b2d58a0243f7b3d1a45ba0261075 (diff) | |
download | external_llvm-30115ec7a3e35038554d4131f3c515744cbdd933.zip external_llvm-30115ec7a3e35038554d4131f3c515744cbdd933.tar.gz external_llvm-30115ec7a3e35038554d4131f3c515744cbdd933.tar.bz2 |
Mark ELF's first symbol as format specific so that llvm-nm ignores it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 9ab0973..c5c18a0 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -1232,7 +1232,8 @@ error_code ELFObjectFile<ELFT>::getSymbolFlags(DataRefImpl Symb, Result |= SymbolRef::SF_Absolute; if (symb->getType() == ELF::STT_FILE || - symb->getType() == ELF::STT_SECTION) + symb->getType() == ELF::STT_SECTION || + Symb == begin_symbols()->getRawDataRefImpl()) Result |= SymbolRef::SF_FormatSpecific; if (getSymbolTableIndex(symb) == ELF::SHN_UNDEF) |