brintos

brintos / llvm-project-archived public Read only

0
0
Text · 566 B · 793d17f Raw
24 lines · plain
1# REQUIRES: riscv2# RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o3# RUN: ld.lld -shared %t.o -o %t.so4# RUN: llvm-nm %t.so | FileCheck --check-prefix=NM %s5# RUN: llvm-readobj -r %t.so | FileCheck --check-prefix=RELOC %s6 7## R_RISCV_64 is an absolute relocation type.8## In PIC mode, it creates a relative relocation if the symbol is non-preemptable.9 10# NM: 0000000000003350 d b11 12# RELOC:      .rela.dyn {13# RELOC-NEXT:   0x3350 R_RISCV_RELATIVE - 0x335014# RELOC-NEXT:   0x3348 R_RISCV_64 a 015# RELOC-NEXT: }16 17.globl a, b18.hidden b19 20.data21.quad a22b:23.quad b24