H A D | linker.c | 3 * BPF static linker 158 static int init_output_elf(struct bpf_linker *linker, const char *file); 160 static int linker_load_obj_file(struct bpf_linker *linker, const char *filename, 169 static int linker_append_sec_data(struct bpf_linker *linker, struct src_obj *obj); 170 static int linker_append_elf_syms(struct bpf_linker *linker, struct src_obj *obj); 171 static int linker_append_elf_sym(struct bpf_linker *linker, struct src_obj *obj, 173 static int linker_append_elf_relos(struct bpf_linker *linker, struct src_obj *obj); 174 static int linker_append_btf(struct bpf_linker *linker, struct src_obj *obj); 175 static int linker_append_btf_ext(struct bpf_linker *linker, struct src_obj *obj); 177 static int finalize_btf(struct bpf_linker *linker); 180 bpf_linker__free(struct bpf_linker *linker) bpf_linker__free() argument 219 struct bpf_linker *linker; bpf_linker__new() local 247 add_dst_sec(struct bpf_linker *linker, const char *sec_name) add_dst_sec() argument 271 add_new_sym(struct bpf_linker *linker, size_t *sym_idx) add_new_sym() argument 295 init_output_elf(struct bpf_linker *linker, const char *file) init_output_elf() argument 440 bpf_linker__add_file(struct bpf_linker *linker, const char *filename, const struct bpf_linker_file_opts *opts) bpf_linker__add_file() argument 538 linker_load_obj_file(struct bpf_linker *linker, const char *filename, const struct bpf_linker_file_opts *opts, struct src_obj *obj) linker_load_obj_file() argument 978 init_sec(struct bpf_linker *linker, struct dst_sec *dst_sec, struct src_sec *src_sec) init_sec() argument 1034 find_dst_sec_by_name(struct bpf_linker *linker, const char *sec_name) find_dst_sec_by_name() argument 1079 extend_sec(struct bpf_linker *linker, struct dst_sec *dst, struct src_sec *src) extend_sec() argument 1169 linker_append_sec_data(struct bpf_linker *linker, struct src_obj *obj) linker_append_sec_data() argument 1221 linker_append_elf_syms(struct bpf_linker *linker, struct src_obj *obj) linker_append_elf_syms() argument 1254 get_sym_by_idx(struct bpf_linker *linker, size_t sym_idx) get_sym_by_idx() argument 1262 find_glob_sym(struct bpf_linker *linker, const char *sym_name) find_glob_sym() argument 1279 add_glob_sym(struct bpf_linker *linker) add_glob_sym() argument 1580 glob_map_defs_match(const char *sym_name, struct bpf_linker *linker, struct glob_sym *glob_sym, struct src_obj *obj, Elf64_Sym *sym, int btf_id) glob_map_defs_match() argument 1620 glob_syms_match(const char *sym_name, struct bpf_linker *linker, struct glob_sym *glob_sym, struct src_obj *obj, Elf64_Sym *sym, size_t sym_idx, int btf_id) glob_syms_match() argument 1811 linker_append_elf_sym(struct bpf_linker *linker, struct src_obj *obj, Elf64_Sym *sym, const char *sym_name, int src_sym_idx) linker_append_elf_sym() argument 2009 linker_append_elf_relos(struct bpf_linker *linker, struct src_obj *obj) linker_append_elf_relos() argument 2234 linker_append_btf(struct bpf_linker *linker, struct src_obj *obj) linker_append_btf() argument 2432 linker_append_btf_ext(struct bpf_linker *linker, struct src_obj *obj) linker_append_btf_ext() argument 2554 bpf_linker__finalize(struct bpf_linker *linker) bpf_linker__finalize() argument 2617 emit_elf_data_sec(struct bpf_linker *linker, const char *sec_name, size_t align, const void *raw_data, size_t raw_sz) emit_elf_data_sec() argument 2657 finalize_btf(struct bpf_linker *linker) finalize_btf() argument 2730 emit_btf_ext_data(struct bpf_linker *linker, void *output, const char *sec_name, struct btf_ext_sec_data *sec_data) emit_btf_ext_data() argument 2757 finalize_btf_ext(struct bpf_linker *linker) finalize_btf_ext() argument [all...] |