[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / mips-lo16-not-relative.s
blob591a988c4b91bc847ff7a091ec1f0f420986aa74
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.
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
16 # CHECK-NEXT: }
17 # CHECK-NEXT: ]
19 .text
20 .global __start
21 __start:
22 addi $t0, $t0, %lo(data0)