Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/linker.h
Show First 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | int elf_reloc(linker_file_t _lf, Elf_Addr base, const void *_rel, | ||||
int _type, elf_lookup_fn _lu); | int _type, elf_lookup_fn _lu); | ||||
int elf_reloc_local(linker_file_t _lf, Elf_Addr base, const void *_rel, | int elf_reloc_local(linker_file_t _lf, Elf_Addr base, const void *_rel, | ||||
int _type, elf_lookup_fn _lu); | int _type, elf_lookup_fn _lu); | ||||
Elf_Addr elf_relocaddr(linker_file_t _lf, Elf_Addr addr); | Elf_Addr elf_relocaddr(linker_file_t _lf, Elf_Addr addr); | ||||
const Elf_Sym *elf_get_sym(linker_file_t _lf, Elf_Size _symidx); | const Elf_Sym *elf_get_sym(linker_file_t _lf, Elf_Size _symidx); | ||||
const char *elf_get_symname(linker_file_t _lf, Elf_Size _symidx); | const char *elf_get_symname(linker_file_t _lf, Elf_Size _symidx); | ||||
void link_elf_ireloc(caddr_t kmdp); | void link_elf_ireloc(caddr_t kmdp); | ||||
#if defined(__aarch64__) | |||||
int elf_reloc_late(linker_file_t _lf, Elf_Addr base, const void *_rel, | |||||
int _type, elf_lookup_fn _lu); | |||||
void link_elf_late_ireloc(void); | |||||
#endif | |||||
typedef struct linker_ctf { | typedef struct linker_ctf { | ||||
const uint8_t *ctftab; /* Decompressed CTF data. */ | const uint8_t *ctftab; /* Decompressed CTF data. */ | ||||
int ctfcnt; /* Number of CTF data bytes. */ | int ctfcnt; /* Number of CTF data bytes. */ | ||||
const Elf_Sym *symtab; /* Ptr to the symbol table. */ | const Elf_Sym *symtab; /* Ptr to the symbol table. */ | ||||
int nsym; /* Number of symbols. */ | int nsym; /* Number of symbols. */ | ||||
const char *strtab; /* Ptr to the string table. */ | const char *strtab; /* Ptr to the string table. */ | ||||
int strcnt; /* Number of string bytes. */ | int strcnt; /* Number of string bytes. */ | ||||
uint32_t **ctfoffp; /* Ptr to array of obj/fnc offsets. */ | uint32_t **ctfoffp; /* Ptr to array of obj/fnc offsets. */ | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |