# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: not ld.lld2 %t -o %t2 2>&1 | FileCheck %s
# CHECK: undefined symbol: foo in {{.*}}
# REQUIRES: x86
.globl _start;
_start:
call foo