xref: /llvm-project/llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test (revision d822c099eeacc69f6bf834a6373a41d0c9f84a3e)
1# RUN: llc -filetype=obj -o %t.o %S/Inputs/main-ret-0.ll
2# RUN: llvm-jitlink -noexec \
3# RUN:   -sectcreate __data,%S/Inputs/sect@create/sectcreate-data.txt@foo=0 \
4# RUN:   %t.o
5#
6# Use -sectcreate to create a section from a data file.
7
8# Jitlink does not support ARM64 COFF files.
9# UNSUPPORTED: target=aarch64-pc-windows-{{.*}}
10
11# On MinGW targets, when compiling the main() function, it gets
12# an implicitly generated call to __main(), which is missing in
13# this context.
14# XFAIL: target={{.*}}-windows-gnu
15
16# jitlink-check: *{4}foo = 0x2a2a5a5a