1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 3// RUN: ld.lld %t -o %t2 4// RUN: llvm-readobj --symbols %t2 | FileCheck %s 5 6// CHECK: Symbol { 7// CHECK: Name: bar_sym 8// CHECK-NEXT: Value: 9// CHECK-NEXT: Size: 10// CHECK-NEXT: Binding: 11// CHECK-NEXT: Type: 12// CHECK-NEXT: Other: 13// CHECK-NEXT: Section: bar 14// CHECK-NEXT: } 15// CHECK-NEXT: Symbol { 16// CHECK-NEXT: Name: foo_sym 17// CHECK-NEXT: Value: 18// CHECK-NEXT: Size: 19// CHECK-NEXT: Binding: 20// CHECK-NEXT: Type: 21// CHECK-NEXT: Other: 22// CHECK-NEXT: Section: foo 23// CHECK-NEXT: } 24 25.section foo 26.global foo_sym 27foo_sym: 28 29.section bar, "a" 30.global bar_sym 31bar_sym: 32 33.global _start 34_start: 35