1# REQUIRES: x86 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 5 6# Test that the section symbol has st_name equal to zero. GNU objdump 7# requires this to print relocations against the section. 8 9# CHECK: Symbols [ 10# CHECK-NEXT: Symbol { 11# CHECK-NEXT: Name: 12# CHECK-NEXT: Value: 13# CHECK-NEXT: Size: 14# CHECK-NEXT: Binding: 15# CHECK-NEXT: Type: 16# CHECK-NEXT: Other: 17# CHECK-NEXT: Section: 18# CHECK-NEXT: } 19# CHECK-NEXT: Symbol { 20# CHECK-NEXT: Name: .text (0) 21# CHECK-NEXT: Value: 22# CHECK-NEXT: Size: 23# CHECK-NEXT: Binding: 24# CHECK-NEXT: Type: Section 25# CHECK-NEXT: Other: 26# CHECK-NEXT: Section: .text 27# CHECK-NEXT: } 28# CHECK-NEXT: ] 29