2018-01-18 06:29:21 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2018-08-05 05:47:16 +08:00
|
|
|
# RUN: not ld.lld %t -o /dev/null --unresolved-symbols=ignore-all -pie 2>&1 | FileCheck %s
|
2018-01-18 06:29:21 +08:00
|
|
|
# CHECK: error: undefined symbol: foo
|
|
|
|
|
|
|
|
.protected foo
|
|
|
|
_start:
|
|
|
|
callq foo@PLT
|