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