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
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
13 # CHECK: Relocations [
14 # CHECK-NEXT: Section (7) .rel.dyn {
15 # CHECK-NEXT: 0x{{[0-9A-F]+}} R_MIPS_COPY data0
22 addi $t0
, $t0
, %lo
(data0
)