brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 14d30bb Raw
56 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \4# RUN:   %p/Inputs/libsearch-st.s -o %t2.o5 6# RUN: echo "EXTERN( undef undef2 \"undef3\" \"undef4@@other\")" > %t.script7# RUN: ld.lld %t -o %t2 %t.script8# RUN: llvm-readobj %t2 > /dev/null9 10# RUN: echo "OUTPUT_FORMAT(elf64-x86-64) /*/*/ GROUP(\"%t\" )" > %t.script11# RUN: ld.lld -o %t2 %t.script12# RUN: llvm-readobj %t2 > /dev/null13 14# RUN: rm -f %t.out15# RUN: echo "OUTPUT(\"%t.out\")" > %t.script16# RUN: ld.lld %t.script %t17# RUN: llvm-readobj %t.out > /dev/null18 19# RUN: echo "SEARCH_DIR(/lib/foo/blah)" > %t.script20# RUN: ld.lld %t.script %t -o %t.out21# RUN: llvm-readobj %t.out > /dev/null22 23# RUN: echo ";SEARCH_DIR(x);SEARCH_DIR(y);" > %t.script24# RUN: ld.lld %t.script %t -o %t.out25# RUN: llvm-readobj %t.out > /dev/null26 27# RUN: echo ";" > %t.script28# RUN: ld.lld %t.script %t -o %t.out29# RUN: llvm-readobj %t.out > /dev/null30 31# RUN: echo "INCLUDE \"%t.script2\" OUTPUT(\"%t.out\")" > %t.script132# RUN: echo "GROUP(\"%t\")" > %t.script233# RUN: ld.lld %t.script1 -o %t.out34# RUN: llvm-readobj %t2 > /dev/null35 36# RUN: rm -rf %t.dir && mkdir -p %t.dir37# RUN: echo "INCLUDE \"foo.script\"" > %t.script38# RUN: echo "OUTPUT(\"%t.out\")" > %t.dir/foo.script39# RUN: not ld.lld %t.script -o /dev/null > %t.log 2>&140# RUN: FileCheck -check-prefix=INCLUDE_ERR %s < %t.log41# INCLUDE_ERR: error: {{.+}}.script:1: cannot find linker script foo.script42# INCLUDE_ERR-NEXT: INCLUDE "foo.script"43# RUN: ld.lld -L %t.dir %t.script %t44 45# RUN: echo "FOO(BAR)" > %t.script46# RUN: not ld.lld -o /dev/null %t.script > %t.log 2>&147# RUN: FileCheck -check-prefix=ERR1 %s < %t.log48 49# ERR1: unknown directive: FOO50 51.globl _start, _label52_start:53  ret54_label:55  ret56