3 ## Check handling of the R_MIPS_JALR relocation.
5 # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s -o %t.o
6 # RUN: llvm-readelf -r %t.o | FileCheck -check-prefix=REL %s
8 # RUN: ld.lld %t.o -shared -o %t.so
9 # RUN: llvm-objdump -d --no-show-raw-insn %t.so | FileCheck --check-prefix=SO %s
11 # RUN: ld.lld %t.o --defsym=bar=__start -o %t.so
12 # RUN: llvm-objdump -d --no-show-raw-insn %t.so | FileCheck --check-prefix=EXE %s
14 # REL: R_MIPS_JALR {{.*}} bar
15 # REL: R_MIPS_JALR {{.*}} foo
16 # REL: R_MIPS_JALR {{.*}} far
19 # SO: bal {{.*}} <foo>
26 # EXE: bal {{.*}} <foo>
27 # EXE: bal {{.*}} <foo>
50 .reloc l1, R_MIPS_JALR, bar
53 .reloc l2, R_MIPS_JALR, foo
56 .reloc l3, R_MIPS_JALR, far