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 6 7// CHECK: error: relocation refers to a symbol in a discarded section: __i686.get_pc_thunk.bx 8 9 .globl _start 10_start: 11 call _strchr1 12