]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/pecoff/secrel.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / pecoff / secrel.test
1 # RUN: yaml2obj %p/Inputs/secrel1.obj.yaml > %t1.obj
2 # RUN: yaml2obj %p/Inputs/secrel2.obj.yaml > %t2.obj
3 # RUN: yaml2obj %p/Inputs/secrel2.obj.yaml > %t3.obj
4 #
5 # RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:main \
6 # RUN:   -- %t1.obj %t2.obj %t3.obj
7 # RUN: llvm-objdump -s %t.exe | FileCheck %s
8
9 CHECK: Contents of section .data:
10 CHECK:  1000 00000000 00000000 00000000 00000000
11 CHECK:  1010 10000000 00000000 00000000 00000000
12 CHECK:  1020 20000000 00000000 00000000 00000000
13 CHECK: Contents of section .data2:
14 CHECK:  2000 00000000 00000000 00000000 00000000
15 CHECK:  2010 10000000 00000000 00000000 00000000
16 CHECK:  2020 20000000 00000000 00000000 00000000