Executable formats

ELF symbol metadata builder

Pack binding, symbol type and visibility into st_info and st_other.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

st_info = binding × 16 + type. Set the low two st_other bits to visibility and the remaining bits to zero.

Global binding 1 and function type 2 produce st_info 12 hex; default visibility produces 00.

Limits

Numeric codes include reserved or platform-specific values. This builds two fields, not a complete symbol-table entry.