[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc64-abs64-dyn.s
bloba674a3e10b88459ac08b6a6b956721d7ac4c77b3
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
3 # RUN: ld.lld -shared %t.o -o %t.so
4 # RUN: llvm-readobj -r %t.so --syms | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
7 # RUN: ld.lld -shared %t.o -o %t.so
8 # RUN: llvm-readobj -r %t.so --syms | FileCheck %s
10 ## Test that we create R_PPC64_RELATIVE for R_PPC64_ADDR64 to non-preemptable
11 ## symbols and R_PPC64_TOC in writable sections.
13 # CHECK: .rela.dyn {
14 # CHECK-NEXT: 0x303C8 R_PPC64_RELATIVE - 0x303C1
15 ## TOC base (0x283b0) + 0x8000 + 1 ---------^
16 # CHECK-NEXT: 0x303D0 R_PPC64_RELATIVE - 0x303C9
17 # CHECK-NEXT: 0x303D8 R_PPC64_ADDR64 external 0x1
18 # CHECK-NEXT: 0x303E0 R_PPC64_ADDR64 global 0x1
19 # CHECK-NEXT: }
20 # CHECK-LABEL: Symbols [
21 # CHECK: Symbol {
22 # CHECK: Name: .TOC. ({{.+}})
23 # CHECK-NEXT: Value: 0x283C0
25 .data
26 .globl global
27 global:
28 local:
30 .quad .TOC.@tocbase + 1
31 .quad local + 1
32 .quad external + 1
33 .quad global + 1