Skip to content
Bytefield templates

ELF identification block

First 16 bytes of every ELF binary — the magic number, class, endianness, version, OS / ABI bytes that the linker reads first.

Template previewBytefield
Rendering…

Make it your own.

(defattrs :bg-amber {:fill "#fef3c7"})

(draw-column-headers)

(draw-box "0x7F" [:bg-amber])
(draw-box "E"    [:bg-amber])
(draw-box "L"    [:bg-amber])
(draw-box "F"    [:bg-amber])

(draw-box "EI_CLASS")
(draw-box "EI_DATA")
(draw-box "EI_VERSION")
(draw-box "EI_OSABI")

(draw-box "EI_ABIVERSION")
(draw-box "EI_PAD" {:span 7})

(draw-bottom)