Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/linker.h
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | |||||
#define KLD_DPF(cat, args) | #define KLD_DPF(cat, args) | ||||
#endif | #endif | ||||
typedef int elf_lookup_fn(linker_file_t, Elf_Size, int, Elf_Addr *); | typedef int elf_lookup_fn(linker_file_t, Elf_Size, int, Elf_Addr *); | ||||
/* Support functions */ | /* Support functions */ | ||||
int elf_reloc(linker_file_t _lf, Elf_Addr base, const void *_rel, int _type, elf_lookup_fn _lu); | int elf_reloc(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); | ||||
int elf_reloc_ifunc(linker_file_t _lf, Elf_Addr base, const void *_rel, | |||||
int _type, elf_lookup_fn _lu); | |||||
int elf_reloc_local(linker_file_t _lf, Elf_Addr base, const void *_rel, | |||||
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); | |||||
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. */ | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |