1# REQUIRES: mips
2# Check reading addends for relocations in non-allocatable sections.
3
4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t1.o
5# RUN: echo '.section .debug_info,"",@0x7000001e; .word __start' | \
6# RUN:   llvm-mc -filetype=obj -triple=mips-unknown-linux - -o %t2.o
7# RUN: ld.lld %t1.o %t2.o -o %t.exe
8# RUN: llvm-objdump -t -s %t.exe | FileCheck %s
9
10# CHECK: [[SYM:[0-9a-f]+]] g .text  00000000 __start
11
12# CHECK:      Contents of section .debug_info:
13# CHECK-NEXT:  0000 ffffffff [[SYM]] [[SYM]]
14#                            ^-------^-- __start
15
16
17  .global __start
18__start:
19  nop
20
21.section .debug_info,"",@0x7000001e
22  .word 0xffffffff
23  .word __start
24