summaryrefslogtreecommitdiff
path: root/llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test
blob: bab0a7d4f2e7d2d12f9f1d09038beeee552973ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: llc -filetype=obj -o %t.o %S/Inputs/main-ret-0.ll
# RUN: llvm-jitlink -noexec \
# RUN:   -sectcreate __data,%S/Inputs/sect@create/sectcreate-data.txt@foo=0 \
# RUN:   %t.o
#
# Use -sectcreate to create a section from a data file.

# Jitlink does not support ARM64 COFF files.
# UNSUPPORTED: target=aarch64-{{.*}}-windows-{{.*}}

# On MinGW targets, when compiling the main() function, it gets
# an implicitly generated call to __main(), which is missing in
# this context.
# XFAIL: target={{.*}}-windows-gnu

# jitlink-check: *{4}foo = 0x2a2a5a5a