blob: f7da0aed4af585a31afc6cf113c5c27d7f3aefea [file] [log] [blame]
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=i386-linux-gnu %s -o %t.o
// RUN: llvm-mc -filetype=obj -triple=i386-linux-gnu %p/Inputs/i386-linkonce.s -o %t2.o
// RUN: llvm-ar rcs %t2.a %t2.o
// RUN: not ld.lld %t.o %t2.a -o /dev/null 2>&1 | FileCheck %s
// CHECK: error: relocation refers to a symbol in a discarded section: __i686.get_pc_thunk.bx
.globl _start
_start:
call _strchr1