2017-09-07 02:14:08 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
|
|
|
2017-09-11 23:55:54 +08:00
|
|
|
# RUN: echo "INCLUDE \"%t1.script\"" > %t1.script
|
2017-09-07 02:14:08 +08:00
|
|
|
# RUN: not ld.lld %t.o %t1.script 2>&1 | FileCheck %s
|
|
|
|
|
2017-09-11 23:55:54 +08:00
|
|
|
# RUN: echo "INCLUDE \"%t2.script\"" > %t1.script
|
|
|
|
# RUN: echo "INCLUDE \"%t1.script\"" > %t2.script
|
2017-09-07 02:14:08 +08:00
|
|
|
# RUN: not ld.lld %t.o %t1.script 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: there is a cycle in linker script INCLUDEs
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
ret
|