[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / riscv64-reloc-64-pic.s
blob793d17f056b482fbdc16d41abdac419e792c06d4
1 # REQUIRES: riscv
2 # RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o
3 # RUN: ld.lld -shared %t.o -o %t.so
4 # RUN: llvm-nm %t.so | FileCheck --check-prefix=NM %s
5 # RUN: llvm-readobj -r %t.so | FileCheck --check-prefix=RELOC %s
7 ## R_RISCV_64 is an absolute relocation type.
8 ## In PIC mode, it creates a relative relocation if the symbol is non-preemptable.
10 # NM: 0000000000003350 d b
12 # RELOC: .rela.dyn {
13 # RELOC-NEXT: 0x3350 R_RISCV_RELATIVE - 0x3350
14 # RELOC-NEXT: 0x3348 R_RISCV_64 a 0
15 # RELOC-NEXT: }
17 .globl a, b
18 .hidden b
20 .data
21 .quad a
23 .quad b