From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:CUDA fatbin and cubin" |
|---|
| claim | "A cubin is an ELF with e_machine EM_CUDA 190 and EI_OSABI ELFOSABI_CUDA 51 (0x33) or ELFOSABI_CUDA_V2 41 (0x29); (the value 0x41 is 65, which is AMDGPU PAL). Clang's CUDA host code registers fatbins through struct {int magic; int version; void *gpu_binary; void *unused} with magic 0x466243b1 and version 1, placed in section .nvFatBinSegment, with the blob in .nv_fatbin." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:CUDA fatbin and cubin" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "ELF header fields and host section names" |
|---|
| indicator | "e_machine 190; EI_OSABI 51 or 41; wrapper magic 0x466243B1 in .nvFatBinSegment" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "EM_CUDA = 190, ELFOSABI_CUDA = 51, ELFOSABI_CUDA_V2 = 41" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "63ad0005f5eaac3e58289c05111ce5e5a20592b8" |
|---|
| path | "llvm/include/llvm/BinaryFormat/ELF.h" |
|---|
| lines | "291, 364-365" |
|---|
|
| type | "source" |
|---|
| detail | "CudaFatMagic, wrapper struct, section names, version 1" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "63ad0005f5eaac3e58289c05111ce5e5a20592b8" |
|---|
| path | "clang/lib/CodeGen/CGCUDANV.cpp" |
|---|
| lines | "40, 866-867, 942-946, 963-970" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Cubin OS ABI and host wrapper magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:51:54.907Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:42:40.180Z" |
|---|
| result | "confirmed" |
|---|
| method | "LLVM ELF.h at the cited commit: EM_CUDA 190, ELFOSABI_CUDA 51, ELFOSABI_CUDA_V2 41, ELFOSABI_AMDGPU_PAL 65; CGCUDANV.cpp: CudaFatMagic 0x466243b1 and sections .nvFatBinSegment / .nv_fatbin." |
|---|
|
|
|---|