Up: CTF Preamble   [Contents][Index]


2.1.1 CTF file-wide flags

The preamble contains bitflags in its ctp_flags field that describe various file-wide properties. Some of the flags are valid only for particular file-format versions, which means the flags can be used to fix file-format bugs. Consumers that see unknown flags should accordingly assume that the dictionary is not comprehensible, and refuse to open them.

The following flags are currently defined. Many are bug workarounds, valid only in CTFv3, and will not be valid in any future versions: the same values may be reused for other flags in v4+.

FlagVersionsValueMeaning
CTF_F_COMPRESSAll0x1Compressed with zlib
CTF_F_NEWFUNCINFO3 only0x2“New-format” func info section.
CTF_F_IDXSORTED3+0x4The index section is in sorted order
CTF_F_DYNSTR3 only0x8The external strtab is in .dynstr and the symtab used is .dynsym. See section The string section

CTF_F_NEWFUNCINFO and CTF_F_IDXSORTED relate to the function info and data object sections. See section The symtypetab sections.

Further flags (and further compression methods) wil be added in future.