[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / i386-linkonce.s
blobf7da0aed4af585a31afc6cf113c5c27d7f3aefea
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=i386-linux-gnu %s -o %t.o
3 // RUN: llvm-mc -filetype=obj -triple=i386-linux-gnu %p/Inputs/i386-linkonce.s -o %t2.o
4 // RUN: llvm-ar rcs %t2.a %t2.o
5 // RUN: not ld.lld %t.o %t2.a -o /dev/null 2>&1 | FileCheck %s
7 // CHECK: error: relocation refers to a symbol in a discarded section: __i686.get_pc_thunk.bx
9 .globl _start
10 _start:
11 call _strchr1