72 lines · plain
1# REQUIRES: arm2 3# RUN: split-file %s %t4 5# RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux %t/small.s -o %t.small.o6# RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux %t/large.s -o %t.large.o7# RUN: llvm-objcopy --set-section-flags .bar=alloc,readonly %t.large.o %t.large.RO.o8 9# RUN: echo ordered > %t_order.txt10 11# RUN: ld.lld --symbol-ordering-file %t_order.txt %t.small.o -o %t2.small.out12# RUN: ld.lld --symbol-ordering-file %t_order.txt %t.large.o -o %t2.large.out13# RUN: ld.lld --symbol-ordering-file %t_order.txt %t.large.RO.o -o %t2.large.RO.out14# RUN: llvm-nm -n %t2.small.out | FileCheck --check-prefix=SMALL %s15# RUN: llvm-nm -n %t2.large.out | FileCheck --check-prefix=LARGE %s16# RUN: llvm-nm -n %t2.large.RO.out | FileCheck --check-prefix=SMALL %s17# RUN: rm -f %t.*.o %t2.*.out18 19# SMALL: ordered20# SMALL-NEXT: unordered121# SMALL-NEXT: unordered222# SMALL-NEXT: unordered323# SMALL-NEXT: unordered424 25# LARGE: unordered126# LARGE-NEXT: unordered227# LARGE-NEXT: ordered28# LARGE-NEXT: unordered329# LARGE-NEXT: unordered430 31#--- small.s32.section .foo,"ax",%progbits,unique,133unordered1:34.zero 135 36.section .foo,"ax",%progbits,unique,237unordered2:38.zero 139 40.section .foo,"ax",%progbits,unique,341unordered3:42.zero 243 44.section .foo,"ax",%progbits,unique,445unordered4:46.zero 447 48.section .foo,"ax",%progbits,unique,549ordered:50.zero 151 52#--- large.s53.section .bar,"ax",%progbits,unique,154unordered1:55.zero 0xC0000056 57.section .bar,"ax",%progbits,unique,258unordered2:59.zero 0xC0000060 61.section .bar,"ax",%progbits,unique,362unordered3:63.zero 0xC0000064 65.section .bar,"ax",%progbits,unique,466unordered4:67.zero 0xC0000068 69.section .bar,"ax",%progbits,unique,570ordered:71.zero 872