This code cannot currently work within llorg, because it is mostly based on https://github.com/intel/llvm state of clang-offload-wrapper. This patch is uploaded to facilitate discussion at OpenMP at LLVM weekly meeting.
The code shows how to containerize several offload images passed to clang-offload-wrapper into a single ELF file. It also re-implements the LLVMOMPOFFLOAD notes embedding that currently uses llvm-objcopy in llorg.
The implementation uses yaml::yaml2elf utility.
clang-format: please reformat the code