Lines Matching defs:bpf_linker

133 struct bpf_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);
178 static int finalize_btf_ext(struct bpf_linker *linker);
180 void bpf_linker__free(struct bpf_linker *linker)
217 struct bpf_linker *bpf_linker__new(const char *filename, struct bpf_linker_opts *opts)
219 struct bpf_linker *linker;
247 static struct dst_sec *add_dst_sec(struct bpf_linker *linker, const char *sec_name)
271 static Elf64_Sym *add_new_sym(struct bpf_linker *linker, size_t *sym_idx)
295 static int init_output_elf(struct bpf_linker *linker, const char *file)
440 int bpf_linker__add_file(struct bpf_linker *linker, const char *filename,
538 static int linker_load_obj_file(struct bpf_linker *linker, const char *filename,
978 static int init_sec(struct bpf_linker *linker, struct dst_sec *dst_sec, struct src_sec *src_sec)
1034 static struct dst_sec *find_dst_sec_by_name(struct bpf_linker *linker, const char *sec_name)
1079 static int extend_sec(struct bpf_linker *linker, struct dst_sec *dst, struct src_sec *src)
1169 static int linker_append_sec_data(struct bpf_linker *linker, struct src_obj *obj)
1221 static int linker_append_elf_syms(struct bpf_linker *linker, struct src_obj *obj)
1254 static Elf64_Sym *get_sym_by_idx(struct bpf_linker *linker, size_t sym_idx)
1262 static struct glob_sym *find_glob_sym(struct bpf_linker *linker, const char *sym_name)
1279 static struct glob_sym *add_glob_sym(struct bpf_linker *linker)
1581 struct bpf_linker *linker, struct glob_sym *glob_sym,
1621 struct bpf_linker *linker, struct glob_sym *glob_sym,
1811 static int linker_append_elf_sym(struct bpf_linker *linker, struct src_obj *obj,
2009 static int linker_append_elf_relos(struct bpf_linker *linker, struct src_obj *obj)
2234 static int linker_append_btf(struct bpf_linker *linker, struct src_obj *obj)
2432 static int linker_append_btf_ext(struct bpf_linker *linker, struct src_obj *obj)
2554 int bpf_linker__finalize(struct bpf_linker *linker)
2617 static int emit_elf_data_sec(struct bpf_linker *linker, const char *sec_name,
2657 static int finalize_btf(struct bpf_linker *linker)
2730 static int emit_btf_ext_data(struct bpf_linker *linker, void *output,
2757 static int finalize_btf_ext(struct bpf_linker *linker)