2016-05-10 05:40:06 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/undef.s -o %t2.o
|
|
|
|
# RUN: llvm-ar rc %t2.a %t2.o
|
|
|
|
# RUN: not ld.lld %t.o %t2.a -o %t.exe 2>&1 | FileCheck %s
|
|
|
|
# RUN: not ld.lld -pie %t.o %t2.a -o %t.exe 2>&1 | FileCheck %s
|
2016-03-11 22:43:02 +08:00
|
|
|
# CHECK: undefined symbol: bar in {{.*}}
|
|
|
|
# CHECK: undefined symbol: foo in {{.*}}
|
2016-05-10 05:40:06 +08:00
|
|
|
# CHECK: undefined symbol: zed2 in {{.*}}2.a({{.*}}.o)
|
2015-07-25 05:03:07 +08:00
|
|
|
|
2016-01-29 06:56:29 +08:00
|
|
|
.globl _start
|
2015-07-25 05:03:07 +08:00
|
|
|
_start:
|
|
|
|
call foo
|
2016-01-29 06:56:29 +08:00
|
|
|
call bar
|
2016-05-10 05:40:06 +08:00
|
|
|
call zed1
|