[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / riscv32-reloc-32-pic.s
blob72bb16f12b0bd2a0b1920ac17636963946b61689
1 # REQUIRES: riscv
2 # RUN: llvm-mc -filetype=obj -triple=riscv32 %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_32 is an absolute relocation type.
8 ## In PIC mode, it creates a relative relocation if the symbol is non-preemptable.
10 # NM: 000031fc d b
12 # RELOC: .rela.dyn {
13 # RELOC-NEXT: 0x31FC R_RISCV_RELATIVE - 0x31FC
14 # RELOC-NEXT: 0x31F8 R_RISCV_32 a 0
15 # RELOC-NEXT: }
17 .globl a, b
18 .hidden b
20 .data
21 .long a
23 .long b