Skip to content

Commit 2f5bb63

Browse files
committed
Addressed review comments
Signed-off-by: Sergey Dmitriev <[email protected]>
1 parent 77d5d1f commit 2f5bb63

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,27 @@ class TempFileHandlerRAII {
442442
/// designated name.
443443
///
444444
/// To unbundle, we just copy the contents of the designated section.
445+
///
446+
/// The bundler produces object file in host target native format (e.g. ELF for
447+
/// Linux). The sections it creates are:
448+
///
449+
/// <OFFLOAD_BUNDLER_MAGIC_STR><target triple 1>
450+
/// |
451+
/// | binary data for the <target 1>'s bundle
452+
/// |
453+
/// ...
454+
/// <OFFLOAD_BUNDLER_MAGIC_STR><target triple N>
455+
/// |
456+
/// | binary data for the <target N>'s bundle
457+
/// |
458+
/// ...
459+
/// <OFFLOAD_BUNDLER_MAGIC_STR><host target>
460+
/// | 0 (1 byte long)
461+
/// ...
462+
///
463+
/// The alignment of all the added sections is set to one to avoid padding
464+
/// between concatenated parts.
465+
///
445466
class ObjectFileHandler final : public FileHandler {
446467

447468
/// The object file we are currently dealing with.

0 commit comments

Comments
 (0)