Up: CTF Preamble [Contents][Index]
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+.
Flag | Versions | Value | Meaning |
---|---|---|---|
CTF_F_COMPRESS | All | 0x1 | Compressed with zlib |
CTF_F_NEWFUNCINFO | 3 only | 0x2 | “New-format” func info section. |
CTF_F_IDXSORTED | 3+ | 0x4 | The index section is in sorted order |
CTF_F_DYNSTR | 3 only | 0x8 | The 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.