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,
997 static int init_sec(struct bpf_linker *linker, struct dst_sec *dst_sec, struct src_sec *src_sec)
1053 static struct dst_sec *find_dst_sec_by_name(struct bpf_linker *linker, const char *sec_name)
1098 static int extend_sec(struct bpf_linker *linker, struct dst_sec *dst, struct src_sec *src)
1188 static int linker_append_sec_data(struct bpf_linker *linker, struct src_obj *obj)
1240 static int linker_append_elf_syms(struct bpf_linker *linker, struct src_obj *obj)
1273 static Elf64_Sym *get_sym_by_idx(struct bpf_linker *linker, size_t sym_idx)
1281 static struct glob_sym *find_glob_sym(struct bpf_linker *linker, const char *sym_name)
1298 static struct glob_sym *add_glob_sym(struct bpf_linker *linker)
1600 struct bpf_linker *linker, struct glob_sym *glob_sym,
1640 struct bpf_linker *linker, struct glob_sym *glob_sym,
1830 static int linker_append_elf_sym(struct bpf_linker *linker, struct src_obj *obj,
2028 static int linker_append_elf_relos(struct bpf_linker *linker, struct src_obj *obj)
2253 static int linker_append_btf(struct bpf_linker *linker, struct src_obj *obj)
2451 static int linker_append_btf_ext(struct bpf_linker *linker, struct src_obj *obj)
2573 int bpf_linker__finalize(struct bpf_linker *linker)
2636 static int emit_elf_data_sec(struct bpf_linker *linker, const char *sec_name,
2676 static int finalize_btf(struct bpf_linker *linker)
2749 static int emit_btf_ext_data(struct bpf_linker *linker, void *output,
2776 static int finalize_btf_ext(struct bpf_linker *linker)