|
5 | 5 | # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/2.s -o %t/2.o
|
6 | 6 | # RUN: %lld -dylib %t/1.o %t/2.o -o %t/12
|
7 | 7 | # RUN: %lld -dylib %t/2.o %t/1.o -o %t/21
|
| 8 | +# RUN: %lld -dylib %t/2.o %t/1.o -o %t/synth-section-order \ |
| 9 | +# RUN: -add_empty_section __TEXT __objc_stubs \ |
| 10 | +# RUN: -add_empty_section __TEXT __init_offsets \ |
| 11 | +# RUN: -add_empty_section __TEXT __stubs \ |
| 12 | +# RUN: -add_empty_section __TEXT __stub_helper \ |
| 13 | +# RUN: -add_empty_section __TEXT __unwind_info \ |
| 14 | +# RUN: -add_empty_section __TEXT __eh_frame \ |
| 15 | +# RUN: -add_empty_section __DATA __objc_selrefs |
8 | 16 | # RUN: llvm-objdump --macho --section-headers %t/12 | FileCheck %s --check-prefix=CHECK-12
|
9 | 17 | # RUN: llvm-objdump --macho --section-headers %t/21 | FileCheck %s --check-prefix=CHECK-21
|
| 18 | +# RUN: llvm-objdump --macho --section-headers %t/synth-section-order | FileCheck %s --check-prefix=CHECK-SYNTHETIC-ORDER |
10 | 19 |
|
11 | 20 | # CHECK-12: __text
|
12 | 21 | # CHECK-12-NEXT: foo
|
|
18 | 27 | # CHECK-21-NEXT: bar
|
19 | 28 | # CHECK-21-NEXT: foo
|
20 | 29 |
|
| 30 | +# CHECK-SYNTHETIC-ORDER: __text |
| 31 | +# CHECK-SYNTHETIC-ORDER-NEXT: __stubs |
| 32 | +# CHECK-SYNTHETIC-ORDER-NEXT: __stub_helper |
| 33 | +# CHECK-SYNTHETIC-ORDER-NEXT: __objc_stubs |
| 34 | +# CHECK-SYNTHETIC-ORDER-NEXT: __init_offsets |
| 35 | +# CHECK-SYNTHETIC-ORDER-NEXT: __cstring |
| 36 | +# CHECK-SYNTHETIC-ORDER-NEXT: bar |
| 37 | +# CHECK-SYNTHETIC-ORDER-NEXT: foo |
| 38 | +# CHECK-SYNTHETIC-ORDER-NEXT: __unwind_info |
| 39 | +# CHECK-SYNTHETIC-ORDER-NEXT: __eh_frame |
| 40 | +# CHECK-SYNTHETIC-ORDER-NEXT: __objc_selrefs |
| 41 | + |
21 | 42 | #--- 1.s
|
22 | 43 | .section __TEXT,foo
|
23 | 44 | .space 1
|
|
0 commit comments