| /linux/tools/objtool/include/objtool/ |
| H A D | elf.h | 106 struct elf { argument 86 struct elf { global() struct 87 elfelf global() argument 102 symbol_hashelf global() argument 103 symbol_name_hashelf global() argument 104 section_hashelf global() argument 105 section_name_hashelf global() argument 112 symbol_dataelf global() argument 156 has_multiple_files(struct elf * elf) has_multiple_files() argument 161 elf_addr_size(struct elf * elf) elf_addr_size() argument 166 elf_rela_size(struct elf * elf) elf_rela_size() argument 171 elf_data_rela_type(struct elf * elf) elf_data_rela_type() argument 176 elf_text_rela_type(struct elf * elf) elf_text_rela_type() argument 191 mark_sec_changed(struct elf * elf,struct section * sec,bool changed) mark_sec_changed() argument 246 set_reloc_offset(struct elf * elf,struct reloc * reloc,u64 offset) set_reloc_offset() argument 257 set_reloc_addend(struct elf * elf,struct reloc * reloc,s64 addend) set_reloc_addend() argument 282 set_reloc_sym(struct elf * elf,struct reloc * reloc,unsigned int sym) set_reloc_sym() argument 292 set_reloc_type(struct elf * elf,struct reloc * reloc,unsigned int type) set_reloc_type() argument [all...] |
| H A D | endianness.h | 15 need_bswap(struct elf * elf) need_bswap() argument 21 bswap_if_needed(elf,val) global() argument
|
| H A D | objtool.h | 23 struct elf *elf; member
|
| /linux/tools/objtool/ |
| H A D | elf.c | 134 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name() 146 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index() 159 static struct symbol *find_symbol_by_index(struct elf *elf, unsigned int idx) in find_symbol_by_index() 278 struct symbol *find_symbol_by_name(const struct elf *elf, const char *name) in find_symbol_by_name() 291 static struct symbol *find_local_symbol_by_file_and_name(const struct elf *elf, in find_local_symbol_by_file_and_name() 307 struct symbol *find_global_symbol_by_name(const struct elf *elf, const char *name) in find_global_symbol_by_name() 319 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range() 349 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest() 359 static int read_sections(struct elf *elf) in read_sections() 475 static int elf_add_symbol(struct elf *elf, struct symbol *sym) in elf_add_symbol() [all …]
|
| H A D | klp-diff.c | 167 static int read_sym_checksums(struct elf *elf) in read_sym_checksums() 215 static struct symbol *first_file_symbol(struct elf *elf) in first_file_symbol() 227 static struct symbol *next_file_symbol(struct elf *elf, struct symbol *sym) in next_file_symbol() 473 static unsigned long find_sympos(struct elf *elf, struct symbol *sym) in find_sympos() 533 static struct symbol *__clone_symbol(struct elf *elf, struct symbol *patched_sym, in __clone_symbol() 867 static int convert_reloc_sym_to_secsym(struct elf *elf, struct reloc *reloc) in convert_reloc_sym_to_secsym() 881 static int convert_reloc_secsym_to_sym(struct elf *elf, struct reloc *reloc) in convert_reloc_secsym_to_sym() 912 static int convert_reloc_sym(struct elf *elf, struct reloc *reloc) in convert_reloc_sym() 1183 static int create_fake_symbol(struct elf *elf, struct section *sec, in create_fake_symbol() 1238 static int create_fake_symbols(struct elf *elf) in create_fake_symbols() [all …]
|
| /linux/scripts/mod/ |
| H A D | symsearch.c | 50 static unsigned int symbol_count(struct elf_info *elf) in symbol_count() 68 static void symsearch_populate(struct elf_info *elf, in symsearch_populate() 124 void symsearch_init(struct elf_info *elf) in symsearch_init() 139 void symsearch_finish(struct elf_info *elf) in symsearch_finish() 153 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr, in symsearch_find_nearest()
|
| H A D | modpost.c | 711 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name() 771 static void check_section(const char *modname, struct elf_info *elf, in check_section() 986 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, in find_fromsym() 992 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) in find_tosym() 1009 static bool is_executable_section(struct elf_info *elf, unsigned int secndx) in is_executable_section() 1017 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() 1075 static void check_export_symbol(struct module *mod, struct elf_info *elf, in check_export_symbol() 1145 static void check_section_mismatch(struct module *mod, struct elf_info *elf, in check_section_mismatch() 1310 static void get_rel_type_and_sym(struct elf_info *elf, uint64_t r_info, in get_rel_type_and_sym() 1340 static void section_rela(struct module *mod, struct elf_info *elf, in section_rela() [all …]
|
| /linux/tools/perf/util/ |
| H A D | symbol-elf.c | 54 static int elf_getphdrnum(Elf *elf, size_t *dst) in elf_getphdrnum() 167 static size_t elf_addr_to_index(Elf *elf, GElf_Addr addr) in elf_addr_to_index() 186 Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, in elf_section_by_name() 215 Elf *elf; in filename__has_section() local 240 static int elf_read_program_header(Elf *elf, u64 vaddr, GElf_Phdr *phdr) in elf_read_program_header() 335 static bool get_ifunc_name(Elf *elf, struct dso *dso, GElf_Ehdr *ehdr, in get_ifunc_name() 471 static void get_rela_dyn_info(Elf *elf, GElf_Ehdr *ehdr, struct rela_dyn_info *di, Elf_Scn *scn) in get_rela_dyn_info() 565 static int dso__synthesize_plt_got_symbols(struct dso *dso, Elf *elf, in dso__synthesize_plt_got_symbols() 616 Elf *elf; in dso__synthesize_plt_symbols() local 784 static int elf_read_build_id(Elf *elf, void *bf, size_t size) in elf_read_build_id() [all …]
|
| H A D | symsrc.h | 21 Elf *elf; member
|
| H A D | unwind-libunwind-local.c | 174 Elf *elf; in elf_section_address_and_offset() local 211 Elf *elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); in elf_base_address() local 234 Elf *elf; in elf_is_exec() local
|
| H A D | debuginfo.c | 156 Elf *elf; in debuginfo__get_text_offset() local
|
| /linux/tools/objtool/arch/x86/ |
| H A D | decode.c | 39 static int is_x86_64(const struct elf *elf) in is_x86_64() 222 const struct elf *elf = file->elf; in arch_decode_instruction() local 938 bool arch_absolute_reloc(struct elf *elf, struct reloc *reloc) in arch_absolute_reloc()
|
| /linux/tools/build/feature/ |
| H A D | test-libelf.c | 6 Elf *elf = elf_begin(0, ELF_C_READ, 0); in main() local
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ |
| H A D | gh100.c | 196 elf_validate_sections(const void *elf, size_t length) in elf_validate_sections() 246 elf_section(const void *elf, const char *name, unsigned int *len) in elf_section()
|
| /linux/arch/loongarch/kernel/ |
| H A D | elf.c | 14 int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf, in arch_elf_pt_proc()
|
| /linux/fs/ |
| H A D | binfmt_elf.c | 594 struct file *elf, bool is_interp, in arch_elf_pt_proc() 1438 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() 1816 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() 1971 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() 1998 struct elfhdr elf; in elf_core_dump() local
|
| H A D | binfmt_elf_fdpic.c | 1240 static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs) in fill_elf_fdpic_header() 1428 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() 1474 struct elfhdr *elf = NULL; in elf_fdpic_core_dump() local
|
| /linux/arch/alpha/boot/tools/ |
| H A D | objstrip.c | 61 struct elfhdr *elf; in main() local
|
| /linux/arch/mips/kernel/ |
| H A D | elf.c | 76 int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf, in arch_elf_pt_proc()
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 133 Elf *elf; member 389 Elf *elf; in elf_collect() local 1372 Elf *elf; in patch_btfids() local
|
| /linux/scripts/gendwarfksyms/ |
| H A D | kabi.c | 124 Elf *elf; in kabi_read_rules() local
|
| H A D | symbols.c | 202 Elf *elf; elf_for_each_global() local [all...] |
| /linux/arch/powerpc/kernel/ |
| H A D | fadump.c | 926 struct elfhdr *elf; in fadump_init_elfcore_header() local 1006 struct elfhdr *elf; in fadump_populate_elfcorehdr() local
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | gen-hyprel.c | 140 } elf; variable
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-core.c | 308 Elf64_Ehdr *elf; in create_opalcore() local
|