1# REQUIRES: mips 2# 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 copy 4# relocation. 5 6# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \ 7# RUN: %S/Inputs/mips-dynamic.s -o %t.so.o 8# RUN: ld.lld %t.so.o -shared -o %t.so 9# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o 10# RUN: ld.lld %t.o %t.so -o %t.exe 11# RUN: llvm-readobj -r %t.exe | FileCheck %s 12 13# CHECK: Relocations [ 14# CHECK-NEXT: Section (7) .rel.dyn { 15# CHECK-NEXT: 0x{{[0-9A-F]+}} R_MIPS_COPY data0 0x0 16# CHECK-NEXT: } 17# CHECK-NEXT: ] 18 19 .text 20 .global __start 21__start: 22 addi $t0, $t0, %lo(data0) 23