Next: The label section, Previous: The function and object index sections, Up: CTF dictionaries [Contents][Index]
The variable section is a simple array mapping names (strtab entries) to type IDs, intended to provide a replacement for the data object section in dynamic situations in which there is no static ELF strtab but the consumer instead hands back names. The section is sorted into ASCIIbetical order by name for rapid lookup, like the CTF archive name table.
The section is an array of these structures:
typedef struct ctf_varent { uint32_t ctv_name; uint32_t ctv_type; } ctf_varent_t;
Offset | Name | Description |
---|---|---|
0x00 | uint32_t ctv_name
| Strtab offset of the name |
0x04 | uint32_t ctv_type
| Type ID of this type |
There is no analogue of the function info section for this dynamic case yet: if there is need for one, a future format revision can add it.