1// REQUIRES: aarch64
2// RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o
3
4// Creates a R_AARCH64_ABS64 relocation against foo and bar
5        .globl foo
6foo:
7
8        .global bar
9        .hidden bar
10bar:
11
12        .data
13        .xword foo
14        .xword bar
15
16// RUN: ld.lld -shared -o %t.so %t.o
17// RUN: llvm-readobj --symbols --dyn-relocations %t.so | FileCheck %s
18
19// CHECK:      Dynamic Relocations {
20// CHECK-NEXT:   {{.*}} R_AARCH64_RELATIVE - [[BAR_ADDR:.*]]
21// CHECK-NEXT:   {{.*}} R_AARCH64_ABS64 foo 0x0
22// CHECK-NEXT: }
23
24// CHECK:      Symbols [
25// CHECK:        Symbol {
26// CHECK:          Name: bar
27// CHECK-NEXT:     Value: [[BAR_ADDR]]
28