2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: ld.lld -r %t.o -o %t
4 # RUN: llvm-readobj --symbols %t | FileCheck %s
6 # Test that the section symbol has st_name equal to zero. GNU objdump
7 # requires this to print relocations against the section.
10 # CHECK-NEXT: Symbol {
14 # CHECK-NEXT: Binding:
17 # CHECK-NEXT: Section:
19 # CHECK-NEXT: Symbol {
20 # CHECK-NEXT: Name: .text (0)
23 # CHECK-NEXT: Binding:
24 # CHECK-NEXT: Type: Section
26 # CHECK-NEXT: Section: .text