33 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && split-file %s %t && cd %t3# RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o4 5# RUN: not ld.lld a.o -T 1.lds 2>&1 | FileCheck %s --check-prefix=ERR16# ERR1: error: 1.lds:1: there is a cycle in linker script INCLUDEs7 8# RUN: not ld.lld a.o -T 2a.lds 2>&1 | FileCheck %s --check-prefix=ERR29# ERR2: error: 2b.lds:1: there is a cycle in linker script INCLUDEs10 11# RUN: ld.lld a.o -T 3.lds -o 312# RUN: llvm-objdump -s 3 | FileCheck %s --check-prefix=CHECK313# CHECK3: Contents of section foo:14# CHECK3-NEXT: 0000 2a2a **15 16#--- 0.lds17BYTE(42)18#--- 1.lds19INCLUDE "1.lds"20#--- 2a.lds21INCLUDE "2b.lds"22#--- 2b.lds23INCLUDE "2a.lds"24#--- 3.lds25SECTIONS {26 foo : { INCLUDE "0.lds" INCLUDE "0.lds" }27}28 29#--- a.s30.globl _start31_start:32 ret33