1// REQUIRES: aarch64
2// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=aarch64-pc-linux
3// RUN: llvm-mc %p/Inputs/aarch64-copy2.s -o %t2.o -filetype=obj -triple=aarch64-pc-linux
4// RUN: ld.lld %t2.o -o %t2.so -shared -soname=t2.so
5// RUN: ld.lld %t.o %t2.so -o %t
6// RUN: llvm-readobj --symbols %t | FileCheck %s
7
8        .global _start
9_start:
10        adrp    x8, foo
11        bl bar
12
13// CHECK:      Name: bar
14// CHECK-NEXT: Value: 0x0
15// CHECK-NEXT: Size: 0
16// CHECK-NEXT: Binding: Global
17// CHECK-NEXT: Type: None
18// CHECK-NEXT: Other: 0
19// CHECK-NEXT: Section: Undefined
20
21// CHECK:      Name: foo
22// CHECK-NEXT: Value: 0x2102F0
23// CHECK-NEXT: Size: 0
24// CHECK-NEXT: Binding: Global
25// CHECK-NEXT: Type: Function
26// CHECK-NEXT: Other: 0
27// CHECK-NEXT: Section: Undefined
28