2 ; RUN: llvm-as %s -o %t1.o
3 ; RUN: ld.lld %t1.o -r -o %t
4 ; RUN: llvm-readobj --symbols %t | FileCheck %s
9 ; CHECK-NEXT: Value: 0x0
11 ; CHECK-NEXT: Binding: Local
12 ; CHECK-NEXT: Type: None
13 ; CHECK-NEXT: Other: 0
14 ; CHECK-NEXT: Section: Undefined
16 ; CHECK-NEXT: Symbol {
17 ; CHECK-NEXT: Name: {{.*}}.o
18 ; CHECK-NEXT: Value: 0x0
20 ; CHECK-NEXT: Binding: Local
21 ; CHECK-NEXT: Type: File
22 ; CHECK-NEXT: Other: 0
23 ; CHECK-NEXT: Section: Absolute
25 ; CHECK-NEXT: Symbol {
27 ; CHECK-NEXT: Value: 0x0
29 ; CHECK-NEXT: Binding: Local
30 ; CHECK-NEXT: Type: Section
31 ; CHECK-NEXT: Other: 0
32 ; CHECK-NEXT: Section: .text
34 ; CHECK-NEXT: Symbol {
36 ; CHECK-NEXT: Value: 0x0
38 ; CHECK-NEXT: Binding: Local
39 ; CHECK-NEXT: Type: Section
40 ; CHECK-NEXT: Other: 0
41 ; CHECK-NEXT: Section: .text.foo
43 ; CHECK-NEXT: Symbol {
45 ; CHECK-NEXT: Value: 0x0
47 ; CHECK-NEXT: Binding: Local
48 ; CHECK-NEXT: Type: Section
49 ; CHECK-NEXT: Other: 0
50 ; CHECK-NEXT: Section: .llvm_addrsig
52 ; CHECK-NEXT: Symbol {
53 ; CHECK-NEXT: Name: foo
54 ; CHECK-NEXT: Value: 0x0
56 ; CHECK-NEXT: Binding: Global
57 ; CHECK-NEXT: Type: Function
58 ; CHECK-NEXT: Other: 0
59 ; CHECK-NEXT: Section: .text.foo
63 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
64 target triple = "x86_64-unknown-linux-gnu"
71 define internal void @bar() {