mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-13 20:36:05 +00:00

This patch adds initial support for extracting offloading binaries from `COFF` objects. This is a first step to allow building offloading files on Windows targets with the new driver. Depends on D136796 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D136855
15 lines
378 B
Plaintext
15 lines
378 B
Plaintext
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-objdump --offloading %t 2>&1 | FileCheck -DFILENAME=%t %s
|
|
|
|
--- !mach-o
|
|
FileHeader:
|
|
magic: 0xFEEDFACE
|
|
cputype: 0x00000007
|
|
cpusubtype: 0x00000003
|
|
filetype: 0x00000001
|
|
ncmds: 0
|
|
sizeofcmds: 0
|
|
flags: 0x00002000
|
|
|
|
# CHECK: warning: '[[FILENAME]]': --offloading is currently only supported for COFF and ELF targets
|