Home
last modified time | relevance | path

Searched refs:elf_file_t (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/kern/
H A Dlink_elf.c125 } *elf_file_t; typedef
214 static int parse_dynamic(elf_file_t);
215 static int relocate_file(elf_file_t);
216 static int relocate_file1(elf_file_t ef, elf_lookup_fn lookup,
218 static int link_elf_preload_parse_symbols(elf_file_t);
395 elf_file_t ef = (elf_file_t)lf; in link_elf_link_common_finish()
454 elf_file_t ef; in link_elf_init()
468 ef = (elf_file_t) linker_kernel_file; in link_elf_init()
530 link_elf_preload_parse_symbols(elf_file_t ef) in link_elf_preload_parse_symbols()
583 parse_dynamic(elf_file_t ef) in parse_dynamic()
[all …]
H A Dlink_elf_obj.c122 } *elf_file_t; typedef
199 static int relocate_file(elf_file_t ef);
200 static void elf_obj_cleanup_globals_cache(elf_file_t);
220 link_elf_protect_range(elf_file_t ef, vm_offset_t start, vm_offset_t end, in link_elf_protect_range()
252 link_elf_protect(elf_file_t ef) in link_elf_protect()
351 elf_file_t ef; in link_elf_link_preload()
378 ef = (elf_file_t)lf; in link_elf_link_preload()
685 elf_file_t ef; in link_elf_link_preload_finish()
688 ef = (elf_file_t)lf; in link_elf_link_preload_finish()
727 elf_file_t ef; in link_elf_load_file()
[all …]
H A Dkern_ctf.c52 elf_file_t ef = (elf_file_t) lf; in link_elf_ctf_get()
313 elf_file_t ef = (elf_file_t)lf; in link_elf_ctf_get_ddb()
/freebsd/lib/libkldelf/
H A Def.c71 static GElf_Off ef_get_offset(elf_file_t, GElf_Addr);
73 static void ef_close(elf_file_t ef);
75 static int ef_seg_read_rel(elf_file_t ef, GElf_Addr address, size_t len,
77 static int ef_seg_read_string(elf_file_t ef, GElf_Addr address, size_t len,
80 static GElf_Addr ef_symaddr(elf_file_t ef, GElf_Size symidx);
81 static int ef_lookup_set(elf_file_t ef, const char *name,
83 static int ef_lookup_symbol(elf_file_t ef, const char *name,
111 ef_get_offset(elf_file_t ef, GElf_Addr addr) in ef_get_offset()
129 ef_lookup_symbol(elf_file_t ef, const char *name, GElf_Sym **sym, bool see_local) in ef_lookup_symbol()
175 ef_lookup_set(elf_file_t ef, const char *name, GElf_Addr *startp, in ef_lookup_set()
[all …]
H A Def_obj.c93 static void ef_obj_close(elf_file_t ef);
95 static int ef_obj_seg_read_rel(elf_file_t ef, GElf_Addr address,
97 static int ef_obj_seg_read_string(elf_file_t ef, GElf_Addr address,
100 static GElf_Addr ef_obj_symaddr(elf_file_t ef, GElf_Size symidx);
101 static int ef_obj_lookup_set(elf_file_t ef, const char *name,
103 static int ef_obj_lookup_symbol(elf_file_t ef, const char *name,
116 ef_obj_get_offset(elf_file_t ef, GElf_Addr addr) in ef_obj_get_offset()
132 ef_obj_lookup_symbol(elf_file_t ef, const char *name, GElf_Sym **sym, in ef_obj_lookup_symbol()
153 ef_obj_lookup_set(elf_file_t ef, const char *name, GElf_Addr *startp, in ef_obj_lookup_set()
172 ef_obj_symaddr(elf_file_t ef, GElf_Size symidx) in ef_obj_symaddr()
[all …]
H A Dkldelf.h55 typedef struct ef_file *elf_file_t; typedef
64 void (*close)(elf_file_t ef);
65 int (*seg_read_rel)(elf_file_t ef, GElf_Addr address, size_t len,
67 int (*seg_read_string)(elf_file_t ef, GElf_Addr address, size_t len,
69 GElf_Addr (*symaddr)(elf_file_t ef, GElf_Size symidx);
70 int (*lookup_set)(elf_file_t ef, const char *name, GElf_Addr *startp,
72 int (*lookup_symbol)(elf_file_t ef, const char *name, GElf_Sym **sym,
97 elf_file_t ef_ef;
/freebsd/stand/common/
H A Dload_elf_obj.c63 } *elf_file_t; typedef
71 static int __elfN(obj_loadimage)(struct preloaded_file *mp, elf_file_t ef,
73 static int __elfN(obj_lookup_set)(struct preloaded_file *mp, elf_file_t ef,
75 static int __elfN(obj_reloc_ptr)(struct preloaded_file *mp, elf_file_t ef,
78 elf_file_t ef);
224 __elfN(obj_loadimage)(struct preloaded_file *fp, elf_file_t ef, uint64_t off) in __elfN()
395 __elfN(obj_parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef) in __elfN()
467 __elfN(obj_lookup_set)(struct preloaded_file *fp, elf_file_t ef, in __elfN()
505 __elfN(obj_reloc_ptr)(struct preloaded_file *mp, elf_file_t ef, Elf_Addr p, in __elfN()
H A Dload_elf.c74 } *elf_file_t; typedef
82 static int __elfN(loadimage)(struct preloaded_file *mp, elf_file_t ef,
84 static int __elfN(lookup_symbol)(elf_file_t ef, const char* name,
86 static int __elfN(reloc_ptr)(struct preloaded_file *mp, elf_file_t ef,
88 static int __elfN(parse_modmetadata)(struct preloaded_file *mp, elf_file_t ef,
220 is_kernphys_relocatable(elf_file_t ef) in is_kernphys_relocatable()
230 is_tg_kernel_support(struct preloaded_file *fp, elf_file_t ef) in is_tg_kernel_support()
266 __elfN(load_elf_header)(char *filename, elf_file_t ef) in __elfN()
529 __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, uint64_t off)
1116 __elfN(parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef,
[all …]