File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
clang/tools/clang-offload-bundler Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -442,6 +442,27 @@ class TempFileHandlerRAII {
442
442
// / designated name.
443
443
// /
444
444
// / 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
+ // /
445
466
class ObjectFileHandler final : public FileHandler {
446
467
447
468
// / The object file we are currently dealing with.
You can’t perform that action at this time.
0 commit comments