3 # RUN: split-file %s %t
5 # RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux %t/small.s -o %t.small.o
6 # RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux %t/large.s -o %t.large.o
7 # RUN: llvm-objcopy --set-section-flags .bar=alloc,readonly %t.large.o %t.large.RO.o
9 # RUN: echo ordered > %t_order.txt
11 # RUN: ld.lld --symbol-ordering-file %t_order.txt %t.small.o -o %t2.small.out
12 # RUN: ld.lld --symbol-ordering-file %t_order.txt %t.large.o -o %t2.large.out
13 # RUN: ld.lld --symbol-ordering-file %t_order.txt %t.large.RO.o -o %t2.large.RO.out
14 # RUN: llvm-nm -n %t2.small.out | FileCheck --check-prefix=SMALL %s
15 # RUN: llvm-nm -n %t2.large.out | FileCheck --check-prefix=LARGE %s
16 # RUN: llvm-nm -n %t2.large.RO.out | FileCheck --check-prefix=SMALL %s
17 # RUN: rm -f %t.*.o %t2.*.out
20 # SMALL-NEXT: unordered1
21 # SMALL-NEXT: unordered2
22 # SMALL-NEXT: unordered3
23 # SMALL-NEXT: unordered4
26 # LARGE-NEXT: unordered2
28 # LARGE-NEXT: unordered3
29 # LARGE-NEXT: unordered4
32 .section .foo,"ax",%progbits,unique,1
36 .section .foo,"ax",%progbits,unique,2
40 .section .foo,"ax",%progbits,unique,3
44 .section .foo,"ax",%progbits,unique,4
48 .section .foo,"ax",%progbits,unique,5
53 .section .bar,"ax",%progbits,unique,1
57 .section .bar,"ax",%progbits,unique,2
61 .section .bar,"ax",%progbits,unique,3
65 .section .bar,"ax",%progbits,unique,4
69 .section .bar,"ax",%progbits,unique,5