Kernel symbol table
include/linker/symbol_table.h View source View on GitHubStructs
Section titled “Structs”kernel_syms_hdr
Section titled “kernel_syms_hdr”struct kernel_syms_hdr {
uint32_t magic;
uint32_t count;
uint32_t strtab_off;
uint32_t lines_off;
}; kernel_sym
Section titled “kernel_sym”struct kernel_sym {
uint64_t addr;
uint32_t name_off;
uint32_t _pad;
}; kernel_lines_hdr
Section titled “kernel_lines_hdr”struct kernel_lines_hdr {
uint32_t magic;
uint32_t count;
uint64_t base_addr;
uint32_t stream_off;
uint32_t stream_len;
uint32_t files_off;
uint32_t files_len;
}; Variables
Section titled “Variables”kernel_syms_blob
Section titled “kernel_syms_blob”extern const char kernel_syms_blob[KERNEL_SYMS_RESERVE]; Macros
Section titled “Macros”KERNEL_SYMS_MAGIC
Section titled “KERNEL_SYMS_MAGIC”#define KERNEL_SYMS_MAGIC 0x534d5953u /* "SYMS" */ KERNEL_SYMS_RESERVE
Section titled “KERNEL_SYMS_RESERVE”#define KERNEL_SYMS_RESERVE 2621440 KERNEL_LINES_MAGIC
Section titled “KERNEL_LINES_MAGIC”#define KERNEL_LINES_MAGIC 0x454e494cu /* "LINE" */