diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-03 05:14:22 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-03 05:14:22 +0000 |
| commit | 75d5b5495f1514e239c1b18254ddcf7a297e80ee (patch) | |
| tree | 5298aa78b05bc21c610511543cf860a67d654b2a /llvm/test/tools | |
| parent | 37070a5a3aa3103ac8817ef7ff620d2c514e8548 (diff) | |
| download | bcm5719-llvm-75d5b5495f1514e239c1b18254ddcf7a297e80ee.tar.gz bcm5719-llvm-75d5b5495f1514e239c1b18254ddcf7a297e80ee.zip | |
Fix the interpretation of a 0 st_name.
The ELF spec is very clear:
-----------------------------------------------------------------------------
If the value is non-zero, it represents a string table index that gives the
symbol name. Otherwise, the symbol table entry has no name.
--------------------------------------------------------------------------
In particular, a st_name of 0 most certainly doesn't mean that the symbol has
the same name as the section.
llvm-svn: 238899
Diffstat (limited to 'llvm/test/tools')
| -rw-r--r-- | llvm/test/tools/llvm-readobj/sections-ext.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-readobj/sections-ext.test b/llvm/test/tools/llvm-readobj/sections-ext.test index 4024878d2bd..6b4a674497d 100644 --- a/llvm/test/tools/llvm-readobj/sections-ext.test +++ b/llvm/test/tools/llvm-readobj/sections-ext.test @@ -110,7 +110,7 @@ ELF-NEXT: Relocations [ ELF-NEXT: ] ELF-NEXT: Symbols [ ELF-NEXT: Symbol { -ELF-NEXT: Name: .text (0) +ELF-NEXT: Name: (0) ELF-NEXT: Value: 0x0 ELF-NEXT: Size: 0 ELF-NEXT: Binding: Local (0x0) |

