1
1
# RUN: yaml2obj %p/Inputs/hello.obj.yaml > %t.obj
2
2
#
3
3
# RUN: lld -flavor link /out:%t1 /subsystem:console /force -- %t.obj \
4
- # RUN: && llvm-objdump -s %t1 | FileCheck %s --check-prefix=BASEREL
4
+ # RUN: && llvm-objdump -s %t1 | FileCheck %s --check-prefix=BASEREL-SECTION
5
5
#
6
6
# RUN: lld -flavor link /out:%t1 /subsystem:console /force /fixed -- %t.obj \
7
- # RUN: && llvm-objdump -s %t1 | FileCheck %s --check-prefix=NOBASEREL
7
+ # RUN: && llvm-objdump -s %t1 | FileCheck %s --check-prefix=NOBASEREL-SECTION
8
8
9
9
# Because llvm-objdump cannot pretty-print the contents of .reloc section, we
10
10
# have no choice other than comparing the result with this binary blob.
11
11
#
12
12
# TODO: Improve llvm-objdump to pretty print .reloc section as GNU binutil
13
13
# objdump does.
14
14
15
- BASEREL: Contents of section .reloc:
16
- BASEREL-NEXT: 3000 00100000 0c000000 07300c30 00000000 .........0.0....
15
+ BASEREL-SECTION : Contents of section .reloc:
16
+ BASEREL-SECTION- NEXT: 3000 00100000 0c000000 07300c30 00000000 .........0.0....
17
17
18
- NOBASEREL-NOT: Contents of section .reloc:
18
+ NOBASEREL-SECTION-NOT: Contents of section .reloc:
19
+
20
+ # RUN: lld -flavor link /out:%t1 /subsystem:console /force -- %t.obj \
21
+ # RUN: && llvm-readobj -file-headers %t1 \
22
+ # RUN: | FileCheck %s --check-prefix=BASEREL-HEADER
23
+ #
24
+ # RUN: lld -flavor link /out:%t1 /subsystem:console /force /fixed -- %t.obj \
25
+ # RUN: && llvm-readobj -file-headers %t1 \
26
+ # RUN: | FileCheck %s --check-prefix=NOBASEREL-HEADER
27
+
28
+ BASEREL-HEADER: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
29
+
30
+ NOBASEREL-HEADER-NOT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE
0 commit comments