[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / mips-relocatable.s
blob0ab62774a4d8172595917abe22b99189658c199b
1 # REQUIRES: mips
2 # Check linking MIPS code in case of -r linker's option.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
5 # RUN: ld.lld -r -o %t-r.o %t.o
6 # RUN: llvm-objdump -s -t %t-r.o | FileCheck %s
8 .text
9 .global __start
10 __start:
11 lw $t0,%call16(__start)($gp)
12 foo:
13 nop
15 .section .rodata, "a"
17 .gpword foo
19 # CHECK-NOT: Contents of section .got:
20 # CHECK-NOT: {{.*}} _gp