Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/linker_if.m
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | |||||
# in the ELF file, returning info in the linker CTF structure. | # in the ELF file, returning info in the linker CTF structure. | ||||
# | # | ||||
METHOD int ctf_get { | METHOD int ctf_get { | ||||
linker_file_t file; | linker_file_t file; | ||||
linker_ctf_t *lc; | linker_ctf_t *lc; | ||||
}; | }; | ||||
# | # | ||||
# Look up a CTF type in the file's CTF section | |||||
# and return CTF info in the linker CTF structure. | |||||
# Return ENOENT if typename is not found, otherwise zero. | |||||
# | |||||
METHOD int ctf_lookup_typename { | |||||
linker_file_t file; | |||||
linker_ctf_t *lc; | |||||
const char *typename; | |||||
}; | |||||
# | |||||
# Lookup a symbol in the file's symbol table and the file's CTF info. | |||||
# Return ENOENT if either the symbol or its CTF | |||||
# data is not loaded, otherwise return zero. | |||||
# | |||||
METHOD int lookup_debug_symbol_ctf { | |||||
linker_file_t file; | |||||
const char *name; | |||||
c_linker_sym_t *sym; | |||||
linker_ctf_t *lc; | |||||
}; | |||||
# | |||||
# Get the symbol table, returning it in **symtab. Return the | # Get the symbol table, returning it in **symtab. Return the | ||||
# number of symbols, otherwise zero. | # number of symbols, otherwise zero. | ||||
# | # | ||||
METHOD long symtab_get { | METHOD long symtab_get { | ||||
linker_file_t file; | linker_file_t file; | ||||
const Elf_Sym **symtab; | const Elf_Sym **symtab; | ||||
}; | }; | ||||
Show All 39 Lines |