/linux/tools/objtool/include/objtool/ |
H A D | elf.h | 83 struct elf { struct 84 Elf *elf; argument 99 struct elf_hash_node **symbol_hash; argument 100 struct elf_hash_node **symbol_name_hash; argument 101 struct elf_hash_node **section_hash; argument 102 struct elf_hash_node **section_name_hash; argument 103 struct elf_hash_node **reloc_hash; argument 109 struct elf *elf_open_read(const char *name, int flags); argument 153 static inline bool has_multiple_files(struct elf *elf) in has_multiple_files() 158 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
|
H A D | objtool.h | 23 struct elf *elf; member
|
/linux/tools/objtool/ |
H A D | elf.c | 130 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name() 142 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index() 155 static struct symbol *find_symbol_by_index(struct elf *elf, unsigned int idx) in find_symbol_by_index() 259 struct symbol *find_symbol_by_name(const struct elf *elf, const char *name) in find_symbol_by_name() 271 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range() 301 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest() 311 static int read_sections(struct elf *elf) in read_sections() 397 static void elf_add_symbol(struct elf *elf, struct symbol *sym) in elf_add_symbol() 438 static int read_symbols(struct elf *elf) in read_symbols() 582 static int elf_update_sym_relocs(struct elf *elf, struct symbol *sym) in elf_update_sym_relocs() [all …]
|
H A D | special.c | 68 static int get_alt_entry(struct elf *elf, const struct special_entry *entry, in get_alt_entry() 140 int special_get_alts(struct elf *elf, struct list_head *alts) in special_get_alts()
|
H A D | orc_dump.c | 21 Elf *elf; in orc_dump() local
|
/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 | 681 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name() 741 static void check_section(const char *modname, struct elf_info *elf, in check_section() 956 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, in find_fromsym() 962 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) in find_tosym() 979 static bool is_executable_section(struct elf_info *elf, unsigned int secndx) in is_executable_section() 987 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() 1045 static void check_export_symbol(struct module *mod, struct elf_info *elf, in check_export_symbol() 1115 static void check_section_mismatch(struct module *mod, struct elf_info *elf, in check_section_mismatch() 1280 static void get_rel_type_and_sym(struct elf_info *elf, uint64_t r_info, in get_rel_type_and_sym() 1310 static void section_rela(struct module *mod, struct elf_info *elf, in section_rela() [all …]
|
H A D | modpost.h | 187 static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name()
|
/linux/tools/perf/util/ |
H A D | symbol-elf.c | 68 static int elf_getphdrnum(Elf *elf, size_t *dst) in elf_getphdrnum() argument 181 static size_t elf_addr_to_index(Elf *elf, GElf_Addr addr) in elf_addr_to_index() argument 200 Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, in elf_section_by_name() argument 229 Elf *elf; in filename__has_section() local 254 elf_read_program_header(Elf * elf,u64 vaddr,GElf_Phdr * phdr) elf_read_program_header() argument 403 get_ifunc_name(Elf * elf,struct dso * dso,GElf_Ehdr * ehdr,struct rel_info * ri,char * buf,size_t buf_sz) get_ifunc_name() argument 539 get_rela_dyn_info(Elf * elf,GElf_Ehdr * ehdr,struct rela_dyn_info * di,Elf_Scn * scn) get_rela_dyn_info() argument 633 dso__synthesize_plt_got_symbols(struct dso * dso,Elf * elf,GElf_Ehdr * ehdr,char * buf,size_t buf_sz) dso__synthesize_plt_got_symbols() argument 684 Elf *elf; dso__synthesize_plt_symbols() local 857 elf_read_build_id(Elf * elf,void * bf,size_t size) elf_read_build_id() argument 971 Elf *elf; read_build_id() local 1124 Elf *elf; filename__read_debuglink() local 1233 Elf *elf; symsrc__init() local 1344 max_text_section(Elf * elf,GElf_Ehdr * ehdr) max_text_section() argument 1564 Elf *elf; dso__load_sym_internal() local 1862 elf_read_maps(Elf * elf,bool exe,mapfn_t mapfn,void * data) elf_read_maps() argument 1898 Elf *elf; file__read_maps() local 1918 Elf *elf; dso__type_fd() local 1990 Elf *elf; global() member 2330 kcore_copy__read_maps(struct kcore_copy_info * kci,Elf * elf) kcore_copy__read_maps() argument 2397 kcore_copy__calc_maps(struct kcore_copy_info * kci,const char * dir,Elf * elf) kcore_copy__calc_maps() argument 2727 populate_sdt_note(Elf ** elf,const char * data,size_t len,struct list_head * sdt_notes) populate_sdt_note() argument 2859 construct_sdt_notes_list(Elf * elf,struct list_head * sdt_notes) construct_sdt_notes_list() argument 2926 Elf *elf; get_sdt_note_list() local [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 | 148 Elf *elf; in debuginfo__get_text_offset() local
|
/linux/tools/lib/bpf/ |
H A D | elf.c | 28 Elf *elf; in elf_open() local 63 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) in elf_find_next_scn_by_type() 85 Elf *elf; member 98 Elf *elf, const char *binary_path, in elf_sym_iter_new() 277 long elf_find_func_offset(Elf *elf, const char *binary_path, const char *name) in elf_find_func_offset()
|
/linux/tools/objtool/arch/loongarch/ |
H A D | decode.c | 64 static bool is_loongarch(const struct elf *elf) in is_loongarch() 289 const struct elf *elf = file->elf; in arch_decode_instruction() local
|
H A D | orc.c | 101 int write_orc_entry(struct elf *elf, struct section *orc_sec, in write_orc_entry()
|
/linux/tools/build/feature/ |
H A D | test-libelf.c | 6 Elf *elf = elf_begin(0, ELF_C_READ, 0); in main() local
|
/linux/tools/objtool/arch/x86/ |
H A D | decode.c | 31 static int is_x86_64(const struct elf *elf) in is_x86_64() argument 158 const struct elf *elf = file->elf; in arch_decode_instruction() local [all...] |
H A D | orc.c | 100 int write_orc_entry(struct elf *elf, struct section *orc_sec, in write_orc_entry()
|
/linux/arch/loongarch/kernel/ |
H A D | elf.c | 15 int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf, in arch_elf_pt_proc()
|
/linux/arch/alpha/boot/tools/ |
H A D | objstrip.c | 61 struct elfhdr *elf; in main() local
|
/linux/arch/s390/include/asm/ |
H A D | elf.h | 202 #define arch_elf_pt_proc(ehdr, phdr, elf, interp, state) \ argument 217 #define arch_elf_pt_proc(ehdr, phdr, elf, interp, state) \ argument
|
/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/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
|