/kernel/linux/linux-5.10/tools/objtool/ |
D | elf.c | 130 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name() 141 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index() 153 static struct symbol *find_symbol_by_index(struct elf *elf, unsigned int idx) in find_symbol_by_index() 220 struct symbol *find_symbol_by_name(const struct elf *elf, const char *name) in find_symbol_by_name() 231 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range() 260 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest() 265 static int read_sections(struct elf *elf) in read_sections() 344 static void elf_add_symbol(struct elf *elf, struct symbol *sym) in elf_add_symbol() 373 static int read_symbols(struct elf *elf) in read_symbols() 511 int elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset, in elf_add_reloc() [all …]
|
D | elf.h | 84 struct elf { struct 85 Elf *elf; argument 86 GElf_Ehdr ehdr; 87 int fd; 88 bool changed; 89 char *name; 90 struct list_head sections;
|
D | special.c | 65 static int get_alt_entry(struct elf *elf, struct special_entry *entry, in get_alt_entry() 123 int special_get_alts(struct elf *elf, struct list_head *alts) in special_get_alts()
|
D | objtool.h | 18 struct elf *elf; member
|
D | orc_dump.c | 72 Elf *elf; in orc_dump() local
|
/kernel/linux/linux-4.19/tools/objtool/ |
D | elf.c | 36 struct section *find_section_by_name(struct elf *elf, const char *name) in find_section_by_name() 47 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index() 59 static struct symbol *find_symbol_by_index(struct elf *elf, unsigned int idx) in find_symbol_by_index() 84 struct symbol *find_symbol_by_name(struct elf *elf, const char *name) in find_symbol_by_name() 143 static int read_sections(struct elf *elf) in read_sections() 219 static int read_symbols(struct elf *elf) in read_symbols() 355 static int read_relas(struct elf *elf) in read_relas() 411 struct elf *elf; in elf_open() local 466 struct section *elf_create_section(struct elf *elf, const char *name, in elf_create_section() 567 struct section *elf_create_rela_section(struct elf *elf, struct section *base) in elf_create_rela_section() [all …]
|
D | elf.h | 78 struct elf { struct 79 Elf *elf; member 88 struct elf *elf_open(const char *name, int flags); argument
|
D | special.c | 81 static int get_alt_entry(struct elf *elf, struct special_entry *entry, in get_alt_entry() 153 int special_get_alts(struct elf *elf, struct list_head *alts) in special_get_alts()
|
D | orc_dump.c | 82 Elf *elf; in orc_dump() local
|
/kernel/linux/linux-4.19/scripts/mod/ |
D | modpost.c | 268 static const char *sech_name(struct elf_info *elf, Elf_Shdr *sechdr) in sech_name() 275 static const char *sec_name(struct elf_info *elf, int secindex) in sec_name() 282 static enum export export_from_secname(struct elf_info *elf, unsigned int sec) in export_from_secname() 300 static enum export export_from_sec(struct elf_info *elf, unsigned int sec) in export_from_sec() 776 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name() 856 static void check_section(const char *modname, struct elf_info *elf, in check_section() 1234 static inline int is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name() 1250 static Elf_Sym *find_elf_symbol(struct elf_info *elf, Elf64_Sword addr, in find_elf_symbol() 1294 static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr, in find_elf_symbol2() 1536 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() [all …]
|
/kernel/linux/linux-5.10/scripts/mod/ |
D | modpost.c | 356 static enum export export_from_secname(struct elf_info *elf, unsigned int sec) in export_from_secname() 374 static enum export export_from_sec(struct elf_info *elf, unsigned int sec) in export_from_sec() 829 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name() 909 static void check_section(const char *modname, struct elf_info *elf, in check_section() 1287 static inline int is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name() 1303 static Elf_Sym *find_elf_symbol(struct elf_info *elf, Elf64_Sword addr, in find_elf_symbol() 1347 static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr, in find_elf_symbol2() 1587 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() 1617 static int is_executable_section(struct elf_info* elf, unsigned int section_index) in is_executable_section() 1662 static void report_extable_warnings(const char* modname, struct elf_info* elf, in report_extable_warnings() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | symbol-elf.c | 77 static int elf_getphdrnum(Elf *elf, size_t *dst) in elf_getphdrnum() 190 static size_t elf_addr_to_index(Elf *elf, GElf_Addr addr) in elf_addr_to_index() 209 Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, in elf_section_by_name() 296 Elf *elf; in dso__synthesize_plt_symbols() local 456 static int elf_read_build_id(Elf *elf, void *bf, size_t size) in elf_read_build_id() 570 Elf *elf; in filename__read_build_id() local 690 Elf *elf; in filename__read_debuglink() local 799 Elf *elf; in symsrc__init() local 1056 Elf *elf; in dso__load_sym() local 1263 static int elf_read_maps(Elf *elf, bool exe, mapfn_t mapfn, void *data) in elf_read_maps() [all …]
|
D | symsrc.h | 21 Elf *elf; member
|
/kernel/linux/linux-4.19/tools/perf/util/ |
D | symbol-elf.c | 46 static int elf_getphdrnum(Elf *elf, size_t *dst) in elf_getphdrnum() 159 static size_t elf_addr_to_index(Elf *elf, GElf_Addr addr) in elf_addr_to_index() 178 Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, in elf_section_by_name() 265 Elf *elf; in dso__synthesize_plt_symbols() local 425 static int elf_read_build_id(Elf *elf, void *bf, size_t size) in elf_read_build_id() 507 Elf *elf; in filename__read_build_id() local 586 Elf *elf; in filename__read_debuglink() local 688 Elf *elf; in symsrc__init() local 938 Elf *elf; in dso__load_sym() local 1145 static int elf_read_maps(Elf *elf, bool exe, mapfn_t mapfn, void *data) in elf_read_maps() [all …]
|
/kernel/linux/linux-4.19/tools/objtool/arch/x86/ |
D | decode.c | 41 static int is_x86_64(struct elf *elf) in is_x86_64() 81 int arch_decode_instruction(struct elf *elf, struct section *sec, in arch_decode_instruction()
|
/kernel/linux/linux-4.19/tools/build/feature/ |
D | test-libelf.c | 6 Elf *elf = elf_begin(0, ELF_C_READ, 0); in main() local
|
D | test-libelf-mmap.c | 6 Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0); in main() local
|
/kernel/linux/linux-5.10/tools/build/feature/ |
D | test-libelf.c | 6 Elf *elf = elf_begin(0, ELF_C_READ, 0); in main() local
|
/kernel/linux/linux-5.10/tools/objtool/arch/x86/ |
D | decode.c | 32 static int is_x86_64(const struct elf *elf) in is_x86_64() 87 int arch_decode_instruction(const struct elf *elf, const struct section *sec, in arch_decode_instruction()
|
/kernel/linux/linux-4.19/samples/bpf/ |
D | bpf_load.c | 317 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, in get_sec() 401 Elf *elf, Elf_Data *symbols, int strtabidx) in load_elf_maps_section() 512 Elf *elf; in do_load_bpf_file() local
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | bpf_load.c | 316 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, in get_sec() 400 Elf *elf, Elf_Data *symbols, int strtabidx) in load_elf_maps_section() 511 Elf *elf; in do_load_bpf_file() local
|
/kernel/linux/linux-4.19/arch/ia64/hp/sim/boot/ |
D | bootloader.c | 64 struct elfhdr *elf; in start_bootloader() local
|
/kernel/linux/linux-5.10/arch/alpha/boot/tools/ |
D | objstrip.c | 61 struct elfhdr *elf; in main() local
|
/kernel/linux/linux-4.19/arch/alpha/boot/tools/ |
D | objstrip.c | 61 struct elfhdr *elf; in main() local
|
/kernel/linux/linux-4.19/fs/ |
D | binfmt_elf.c | 500 struct file *elf, bool is_interp, in arch_elf_pt_proc() 1457 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() 1795 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() 2044 static int fill_note_info(struct elfhdr *elf, int phdrs, in fill_note_info() 2201 static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, in fill_extnum_info() 2231 struct elfhdr *elf = NULL; in elf_core_dump() local
|