diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 20:33:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 20:33:54 +0000 |
commit | c9f2cc7e05b2a7f3991a94cad1730a59dd7555e3 (patch) | |
tree | 2f5ec3df5f31b613f5106fbe70c10546dc97936f /include | |
parent | 512119770e9c32eb0b9e6196ce51917fb2e30d9f (diff) | |
download | external_llvm-c9f2cc7e05b2a7f3991a94cad1730a59dd7555e3.zip external_llvm-c9f2cc7e05b2a7f3991a94cad1730a59dd7555e3.tar.gz external_llvm-c9f2cc7e05b2a7f3991a94cad1730a59dd7555e3.tar.bz2 |
Don't hide the first ELF symbol.
The first symbol on ELF is dummy, but it has a defined content and readelf
normally displays it. With this change llvm-readobj also displays it and we
can check that llvm-mc output is correct according to the standard.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index a1a3d59..2c66941 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -2466,7 +2466,7 @@ symbol_iterator ELFObjectFile<ELFT>::begin_symbols() const { SymbolData.d.a = 0; SymbolData.d.b = 0; } else { - SymbolData.d.a = 1; // The 0th symbol in ELF is fake. + SymbolData.d.a = 0; SymbolData.d.b = SymbolTableIndex; } return symbol_iterator(SymbolRef(SymbolData, this)); @@ -2493,7 +2493,7 @@ symbol_iterator ELFObjectFile<ELFT>::begin_dynamic_symbols() const { SymbolData.d.a = 0; SymbolData.d.b = 0; } else { - SymbolData.d.a = 1; // The 0th symbol in ELF is fake. + SymbolData.d.a = 0; SymbolData.d.b = DynamicSymbolTableIndex; } return symbol_iterator(SymbolRef(SymbolData, this)); |