1 # RUN: yaml2obj %s -o %t1.obj
2 # RUN: yaml2obj %p/Inputs/order.yaml -o %t2.obj
4 # RUN: echo fn1 > %t.order
5 # RUN: echo fn2 >> %t.order
6 # RUN: echo fn3 >> %t.order
7 # RUN: echo fn4 >> %t.order
9 # RUN: lld-link -entry:fn1 -subsystem:console -opt:noref -debug %t1.obj %t2.obj \
10 # RUN: -lldmap:- -out:%t.exe -order:@%t.order | FileCheck %s
18 # RUN: lld-link -entry:fn1 -subsystem:console -opt:noref -debug %t1.obj %t2.obj \
19 # RUN: -lldmap:- -ignore:4037 -out:%t.exe | FileCheck -check-prefix=DEFAULT %s
27 # RUN: echo fn1 > %t2.order
28 # RUN: echo fn2 >> %t2.order
29 # RUN: echo fn3 >> %t2.order
30 # RUN: echo fn4 >> %t2.order
31 # RUN: echo foo >> %t2.order
32 # RUN: lld-link -entry:fn1 -subsystem:console -debug %t1.obj %t2.obj \
33 # RUN: -out:%t.exe -order:@%t2.order 2>&1 | FileCheck -check-prefix=WARN %s
34 # WARN: warning: /order:{{.*}} missing symbol: foo
38 # RUN: lld-link -entry:fn1 -subsystem:console -debug %t1.obj %t2.obj \
39 # RUN: -out:%t.exe -order:@%t2.order -ignore:4037 2>&1 | \
40 # RUN: FileCheck -allow-empty -check-prefix=NOWARN %s
41 # NOWARN-NOT: warning: /order:{{.*}} missing symbol: foo
48 Machine: IMAGE_FILE_MACHINE_AMD64
52 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
56 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
60 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
67 SimpleType: IMAGE_SYM_TYPE_NULL
68 ComplexType: IMAGE_SYM_DTYPE_NULL
69 StorageClass: IMAGE_SYM_CLASS_STATIC
72 NumberOfRelocations: 0
73 NumberOfLinenumbers: 0
76 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
80 SimpleType: IMAGE_SYM_TYPE_NULL
81 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
82 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
86 SimpleType: IMAGE_SYM_TYPE_NULL
87 ComplexType: IMAGE_SYM_DTYPE_NULL
88 StorageClass: IMAGE_SYM_CLASS_STATIC
91 NumberOfRelocations: 0
92 NumberOfLinenumbers: 0
95 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
99 SimpleType: IMAGE_SYM_TYPE_NULL
100 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
101 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
105 SimpleType: IMAGE_SYM_TYPE_NULL
106 ComplexType: IMAGE_SYM_DTYPE_NULL
107 StorageClass: IMAGE_SYM_CLASS_STATIC
110 NumberOfRelocations: 0
111 NumberOfLinenumbers: 0
114 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
118 SimpleType: IMAGE_SYM_TYPE_NULL
119 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
120 StorageClass: IMAGE_SYM_CLASS_EXTERNAL