Executable formats
ELF note record builder
Build a note with owner, type, descriptor and four-byte padding.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Emit namesz, descsz and type, followed by the NUL-terminated owner and descriptor. Pad each variable field separately to four bytes.
Owner GNU, type 1 and four descriptor bytes occupy 12 + 4 + 4 = 20 bytes.
Limits
The name size includes NUL; descriptor size excludes padding. This explicitly uses four-byte note alignment. Target-specific note meanings and alternative alignment conventions are excluded.