summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ELF/comdat-dup-group-name.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-03 05:14:22 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-03 05:14:22 +0000
commit75d5b5495f1514e239c1b18254ddcf7a297e80ee (patch)
tree5298aa78b05bc21c610511543cf860a67d654b2a /llvm/test/MC/ELF/comdat-dup-group-name.s
parent37070a5a3aa3103ac8817ef7ff620d2c514e8548 (diff)
downloadbcm5719-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/MC/ELF/comdat-dup-group-name.s')
-rw-r--r--llvm/test/MC/ELF/comdat-dup-group-name.s5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/test/MC/ELF/comdat-dup-group-name.s b/llvm/test/MC/ELF/comdat-dup-group-name.s
index a2dc4cc33d9..6644e2b7675 100644
--- a/llvm/test/MC/ELF/comdat-dup-group-name.s
+++ b/llvm/test/MC/ELF/comdat-dup-group-name.s
@@ -24,12 +24,7 @@
// CHECK-NOT: }
// CHECK: Section: .group (0x7)
-// CHECK: Name: .foo
-// CHECK-NOT: }
// CHECK: Section: .foo (0x6)
-
-// CHECK: Name: .foo
-// CHECK-NOT: }
// CHECK: Section: .foo (0x8)
OpenPOWER on IntegriCloud