[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / mips-nonalloc.s
blob7a450dc6295d9c1938961b30adcc74fd48c33ed5
1 # REQUIRES: mips
2 # Check reading addends for relocations in non-allocatable sections.
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
10 # CHECK: [[SYM:[0-9a-f]+]] g .text 00000000 __start
12 # CHECK: Contents of section .debug_info:
13 # CHECK-NEXT: 0000 ffffffff [[SYM]] [[SYM]]
14 # ^-------^-- __start
17 .global __start
18 __start:
19 nop
21 .section .debug_info,"",@0x7000001e
22 .word 0xffffffff
23 .word __start