Skip to content

[offload] Redesign the ELF format for device-side binaries. #139037

@StevenYangCC

Description

@StevenYangCC

Redesign the ELF format for device-side binaries.
The original binary format is not suitable for device-side binaries.
For example:
Provide a callgraph section to enable binary optimizations at link time, as well as support for lazy loading.
Provide a prototype section to support function pointers.
Provide a section for recording metadata for each function, such as register kind, register number, stack size, etc. This metadata should be extensible, as different architectures may require different metadata, and the attributes of kernel functions and regular functions may also vary.
Moderately reference the CUDA cubin format for inspiration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    offloadquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions