You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
680 B
24 lines
680 B
7 months ago
|
# 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: echo '.section .debug_info,"",@0x7000001e; .word __start' | \
|
||
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux - -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]+]] g .text 00000000 __start
|
||
|
|
||
|
# CHECK: Contents of section .debug_info:
|
||
|
# CHECK-NEXT: 0000 ffffffff [[SYM]] [[SYM]]
|
||
|
# ^-------^-- __start
|
||
|
|
||
|
|
||
|
.global __start
|
||
|
__start:
|
||
|
nop
|
||
|
|
||
|
.section .debug_info,"",@0x7000001e
|
||
|
.word 0xffffffff
|
||
|
.word __start
|