Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Binary] Align the image offset in OffloadBinary
Summary: The OffloadBinary wraps around an embedded device image, commonly an ELF or LLVM BC file. These file formats have alignment requirements for parsing, so if the image is stored at an un-aligned offset from the beginning of the file we will be unable to parse the embeded image without copying the image buffer. This patch adds alignment padding before the binary image is appended to ensure we can parse the symbolic file it contains in-place without copying memory.
- Loading branch information