llvm-project/lld/test/pecoff/secrel.test

17 lines
675 B
Plaintext

# RUN: yaml2obj %p/Inputs/secrel1.obj.yaml > %t1.obj
# RUN: yaml2obj %p/Inputs/secrel2.obj.yaml > %t2.obj
# RUN: yaml2obj %p/Inputs/secrel2.obj.yaml > %t3.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:main \
# RUN: -- %t1.obj %t2.obj %t3.obj
# RUN: llvm-objdump -s %t.exe | FileCheck %s
CHECK: Contents of section .data:
CHECK: 1000 00000000 00000000 00000000 00000000
CHECK: 1010 10000000 00000000 00000000 00000000
CHECK: 1020 20000000 00000000 00000000 00000000
CHECK: Contents of section .data2:
CHECK: 2000 00000000 00000000 00000000 00000000
CHECK: 2010 10000000 00000000 00000000 00000000
CHECK: 2020 20000000 00000000 00000000 00000000