23 lines · plain
1# REQUIRES: mips2# Check that R_MIPS_LO16 relocation is handled as non-relative,3# and if a target symbol is a DSO data symbol, LLD create a copy4# relocation.5 6# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \7# RUN: %S/Inputs/mips-dynamic.s -o %t.so.o8# RUN: ld.lld %t.so.o -shared -o %t.so9# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o10# RUN: ld.lld %t.o %t.so -o %t.exe11# RUN: llvm-readobj -r %t.exe | FileCheck %s12 13# CHECK: Relocations [14# CHECK-NEXT: Section (7) .rel.dyn {15# CHECK-NEXT: 0x{{[0-9A-F]+}} R_MIPS_COPY data016# CHECK-NEXT: }17# CHECK-NEXT: ]18 19 .text20 .global __start21__start:22 addi $t0, $t0, %lo(data0)23