brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5463cfd Raw
35 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && split-file %s %t3# RUN: echo '.section .bar, "a"; .quad 1;' | \4# RUN:   llvm-mc -filetype=obj -triple=x86_64-pc-linux - -o %tfile1.o5# RUN: echo '.section .zed, "a"; .quad 2;' | \6# RUN:   llvm-mc -filetype=obj -triple=x86_64-pc-linux - -o %tfile2.o7 8## We have a file name and no input sections description. In that case, all9## sections from the file specified should be included. Check that.10# RUN: ld.lld -o %t/a -T %t/a.t %tfile1.o %tfile2.o11# RUN: llvm-objdump -s %t/a | FileCheck %s12 13# CHECK:      Contents of section .foo:14# CHECK-NEXT:  01000000 00000000 02000000 0000000015 16# RUN: not ld.lld -o /dev/null -T %t/b.t %tfile1.o 2>&1 | FileCheck %s --check-prefix=ERR17# RUN: not ld.lld -o /dev/null -T %t/c.t %tfile1.o 2>&1 | FileCheck %s --check-prefix=ERR18# RUN: not ld.lld -o /dev/null -T %t/d.t %tfile1.o 2>&1 | FileCheck %s --check-prefix=ERR19 20# ERR: error: {{.*}}.t:1: expected filename pattern21 22#--- a.t23SECTIONS {24 .foo : { *file1.o *file2.o }25}26 27#--- b.t28SECTIONS { .foo : { (*foo) } }29 30#--- c.t31SECTIONS { .foo : { (*(foo)) } }32 33#--- d.t34SECTIONS { .foo : { )(*foo) } }35