Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / aarch64-abs64-dyn.s
blobdbaf3b9e8d4fd2ebf9985209ddb6db88935d7b19
1 // REQUIRES: aarch64
2 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o
4 // Creates a R_AARCH64_ABS64 relocation against foo and bar
5 .globl foo
6 foo:
8 .global bar
9 .hidden bar
10 bar:
12 .data
13 .xword foo
14 .xword bar
16 // RUN: ld.lld -shared -o %t.so %t.o
17 // RUN: llvm-readobj --symbols --dyn-relocations %t.so | FileCheck %s
19 // CHECK: Dynamic Relocations {
20 // CHECK-NEXT: {{.*}} R_AARCH64_RELATIVE - [[BAR_ADDR:.*]]
21 // CHECK-NEXT: {{.*}} R_AARCH64_ABS64 foo 0x0
22 // CHECK-NEXT: }
24 // CHECK: Symbols [
25 // CHECK: Symbol {
26 // CHECK: Name: bar
27 // CHECK-NEXT: Value: [[BAR_ADDR]]