| /linux/tools/objtool/include/objtool/ |
| H A D | elf.h | 86 struct elf { struct 87 Elf *elf; argument 102 struct elf_hash_node **symbol_hash; argument 103 struct elf_hash_node **symbol_name_hash; argument 104 struct elf_hash_node **section_hash; argument 105 struct elf_hash_node **section_name_hash; argument 106 struct elf_hash_node **reloc_hash; argument 112 struct elf *elf_open_read(const char *name, int flags); argument 156 static inline bool has_multiple_files(struct elf *elf) in has_multiple_files() 161 static inline size_t elf_addr_size(struct elf *elf) in elf_addr_size() [all …]
|
| H A D | endianness.h | 15 static inline bool need_bswap(struct elf *elf) in need_bswap() 21 #define bswap_if_needed(elf, val) \ argument
|
| /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 | 702 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name() argument 762 static void check_section(const char *modname, struct elf_info *elf, in check_section() argument 977 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, in find_fromsym() argument 983 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) in find_tosym() argument 1000 is_executable_section(struct elf_info * elf,unsigned int secndx) is_executable_section() argument 1008 default_mismatch_handler(const char * modname,struct elf_info * elf,const struct sectioncheck * const mismatch,Elf_Sym * tsym,unsigned int fsecndx,const char * fromsec,Elf_Addr faddr,const char * tosec,Elf_Addr taddr) default_mismatch_handler() argument 1066 check_export_symbol(struct module * mod,struct elf_info * elf,Elf_Addr faddr,const char * secname,Elf_Sym * sym) check_export_symbol() argument 1136 check_section_mismatch(struct module * mod,struct elf_info * elf,Elf_Sym * sym,unsigned int fsecndx,const char * fromsec,Elf_Addr faddr,Elf_Addr taddr) check_section_mismatch() argument 1301 get_rel_type_and_sym(struct elf_info * elf,uint64_t r_info,unsigned int * r_type,unsigned int * r_sym) get_rel_type_and_sym() argument 1331 section_rela(struct module * mod,struct elf_info * elf,unsigned int fsecndx,const char * fromsec,const Elf_Rela * start,const Elf_Rela * stop) section_rela() argument 1373 section_rel(struct module * mod,struct elf_info * elf,unsigned int fsecndx,const char * fromsec,const Elf_Rel * start,const Elf_Rel * stop) section_rel() argument 1422 check_sec_ref(struct module * mod,struct elf_info * elf) check_sec_ref() argument [all...] |
| H A D | modpost.h | 193 is_valid_name(struct elf_info * elf,Elf_Sym * sym) is_valid_name() argument
|
| /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/lib/bpf/ |
| H A D | elf.c | 28 Elf *elf; elf_open() local 63 elf_find_next_scn_by_type(Elf * elf,int sh_type,Elf_Scn * scn) elf_find_next_scn_by_type() argument 85 Elf *elf; global() member 98 elf_sym_iter_new(struct elf_sym_iter * iter,Elf * elf,const char * binary_path,int sh_type,int st_type) elf_sym_iter_new() argument 277 elf_find_func_offset(Elf * elf,const char * binary_path,const char * name) elf_find_func_offset() argument [all...] |
| H A D | usdt.c | 306 sanity_check_usdt_elf(Elf * elf,const char * path) sanity_check_usdt_elf() argument 358 find_elf_sec_by_name(Elf * elf,const char * sec_name,GElf_Shdr * shdr,Elf_Scn ** scn) find_elf_sec_by_name() argument 401 parse_elf_segs(Elf * elf,const char * path,struct elf_seg ** segs,size_t * seg_cnt) parse_elf_segs() argument 579 collect_usdt_targets(struct usdt_manager * man,Elf * elf,const char * path,pid_t pid,const char * usdt_provider,const char * usdt_name,__u64 usdt_cookie,struct usdt_target ** out_targets,size_t * out_target_cnt) collect_usdt_targets() argument 1135 parse_usdt_note(Elf * elf,const char * path,GElf_Nhdr * nhdr,const char * data,size_t name_off,size_t desc_off,struct usdt_note * note) parse_usdt_note() argument [all...] |
| /linux/tools/objtool/arch/x86/ |
| H A D | decode.c | 31 static int is_x86_64(const struct elf *elf) in is_x86_64() 158 const struct elf *elf = file->elf; in arch_decode_instruction() local 884 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/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 | 593 struct file *elf, bool is_interp, in arch_elf_pt_proc() 1437 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() 1815 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() 1972 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() 1999 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/tools/bpf/resolve_btfids/ |
| H A D | main.c | 121 Elf *elf; member 306 static int compressed_section_fix(Elf *elf, Elf_Scn *scn, GElf_Shdr *sh) in compressed_section_fix() 335 Elf *elf; in elf_collect() 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/scripts/gendwarfksyms/ |
| H A D | symbols.c | 200 Elf *elf; in elf_for_each_global() local
|
| H A D | kabi.c | 124 Elf *elf; in kabi_read_rules() local
|
| /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
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | trace_helpers.c | 436 Elf *elf = NULL; read_build_id() local
|