Lines Matching refs:bpf_linker
139 struct bpf_linker {
167 static int init_output_elf(struct bpf_linker *linker);
169 static int bpf_linker_add_file(struct bpf_linker *linker, int fd,
172 static int linker_load_obj_file(struct bpf_linker *linker,
180 static int linker_append_sec_data(struct bpf_linker *linker, struct src_obj *obj);
181 static int linker_append_elf_syms(struct bpf_linker *linker, struct src_obj *obj);
182 static int linker_append_elf_sym(struct bpf_linker *linker, struct src_obj *obj,
184 static int linker_append_elf_relos(struct bpf_linker *linker, struct src_obj *obj);
185 static int linker_append_btf(struct bpf_linker *linker, struct src_obj *obj);
186 static int linker_append_btf_ext(struct bpf_linker *linker, struct src_obj *obj);
188 static int finalize_btf(struct bpf_linker *linker);
189 static int finalize_btf_ext(struct bpf_linker *linker);
191 void bpf_linker__free(struct bpf_linker *linker)
228 struct bpf_linker *bpf_linker__new(const char *filename, struct bpf_linker_opts *opts)
230 struct bpf_linker *linker;
270 struct bpf_linker *bpf_linker__new_fd(int fd, struct bpf_linker_opts *opts)
272 struct bpf_linker *linker;
312 static struct dst_sec *add_dst_sec(struct bpf_linker *linker, const char *sec_name)
336 static Elf64_Sym *add_new_sym(struct bpf_linker *linker, size_t *sym_idx)
360 static int init_output_elf(struct bpf_linker *linker)
491 static int bpf_linker_add_file(struct bpf_linker *linker, int fd,
519 int bpf_linker__add_file(struct bpf_linker *linker, const char *filename,
542 int bpf_linker__add_fd(struct bpf_linker *linker, int fd,
562 int bpf_linker__add_buf(struct bpf_linker *linker, void *buf, size_t buf_sz,
665 static int linker_load_obj_file(struct bpf_linker *linker,
1141 static int init_sec(struct bpf_linker *linker, struct dst_sec *dst_sec, struct src_sec *src_sec)
1197 static struct dst_sec *find_dst_sec_by_name(struct bpf_linker *linker, const char *sec_name)
1260 static int extend_sec(struct bpf_linker *linker, struct dst_sec *dst, struct src_sec *src)
1354 static int linker_append_sec_data(struct bpf_linker *linker, struct src_obj *obj)
1406 static int linker_append_elf_syms(struct bpf_linker *linker, struct src_obj *obj)
1439 static Elf64_Sym *get_sym_by_idx(struct bpf_linker *linker, size_t sym_idx)
1447 static struct glob_sym *find_glob_sym(struct bpf_linker *linker, const char *sym_name)
1464 static struct glob_sym *add_glob_sym(struct bpf_linker *linker)
1766 struct bpf_linker *linker, struct glob_sym *glob_sym,
1806 struct bpf_linker *linker, struct glob_sym *glob_sym,
1996 static int linker_append_elf_sym(struct bpf_linker *linker, struct src_obj *obj,
2194 static int linker_append_elf_relos(struct bpf_linker *linker, struct src_obj *obj)
2410 static int linker_append_btf(struct bpf_linker *linker, struct src_obj *obj)
2628 static int linker_append_btf_ext(struct bpf_linker *linker, struct src_obj *obj)
2750 int bpf_linker__finalize(struct bpf_linker *linker)
2818 static int emit_elf_data_sec(struct bpf_linker *linker, const char *sec_name,
2858 static int finalize_btf(struct bpf_linker *linker)
2939 static int emit_btf_ext_data(struct bpf_linker *linker, void *output,
2966 static int finalize_btf_ext(struct bpf_linker *linker)