2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; pfoo = foo; pbar = bar; }" > %t.script
4 # RUN: ld.lld -o %t1 --script %t.script %t
5 # RUN: llvm-readobj --symbols %t1 | FileCheck %s
9 # CHECK-NEXT: Value: [[BAR:.*]]
11 # CHECK-NEXT: Binding: Global
12 # CHECK-NEXT: Type: Object
13 # CHECK-NEXT: Other: 0
14 # CHECK-NEXT: Section: .bss
16 # CHECK-NEXT: Symbol {
17 # CHECK-NEXT: Name: foo
18 # CHECK-NEXT: Value: [[FOO:.*]]
20 # CHECK-NEXT: Binding: Global
21 # CHECK-NEXT: Type: Object
22 # CHECK-NEXT: Other: 0
23 # CHECK-NEXT: Section: .bss
25 # CHECK-NEXT: Symbol {
26 # CHECK-NEXT: Name: pfoo
27 # CHECK-NEXT: Value: [[FOO]]
29 # CHECK-NEXT: Binding: Global
30 # CHECK-NEXT: Type: Object
31 # CHECK-NEXT: Other: 0
32 # CHECK-NEXT: Section: .bss
34 # CHECK-NEXT: Symbol {
35 # CHECK-NEXT: Name: pbar
36 # CHECK-NEXT: Value: [[BAR]]
38 # CHECK-NEXT: Binding: Global
39 # CHECK-NEXT: Type: Object
40 # CHECK-NEXT: Other: 0
41 # CHECK-NEXT: Section: .bss