Joseph Huber 8298f0b7b9 [Binary] Support extracting offloading files from COFF
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
2022-11-03 16:19:14 -05:00

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