2018-06-27 00:58:19 +08:00
|
|
|
# REQUIRES: mips
|
2016-07-22 13:56:43 +08:00
|
|
|
# Check reading/writing implicit addend for R_MIPS_26 relocation.
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld %t.o -o %t.exe
|
2019-07-25 15:12:23 +08:00
|
|
|
# RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex %t.exe | FileCheck %s
|
2016-07-22 13:56:43 +08:00
|
|
|
|
|
|
|
# CHECK: Disassembly of section .text:
|
2019-05-01 18:40:48 +08:00
|
|
|
# CHECK-EMPTY:
|
2016-07-22 13:56:43 +08:00
|
|
|
# CHECK: __start:
|
2019-09-05 21:37:16 +08:00
|
|
|
# CHECK-NEXT: [[ADDR:[0-9a-f]+]]: jal 0x80[[ADDR]]
|
2016-07-22 13:56:43 +08:00
|
|
|
|
|
|
|
.text
|
|
|
|
.global __start
|
|
|
|
__start:
|
|
|
|
jal __start+0x8000000
|