Home
last modified time | relevance | path

Searched defs:elf (Results 1 – 25 of 61) sorted by relevance

123

/kernel/linux/linux-6.6/tools/objtool/include/objtool/
Delf.h81 struct elf { struct
82 Elf *elf; member
97 struct elf_hash_node **symbol_hash; argument
98 struct elf_hash_node **symbol_name_hash; argument
99 struct elf_hash_node **section_hash; argument
100 struct elf_hash_node **section_name_hash; argument
101 struct elf_hash_node **reloc_hash; argument
107 struct elf *elf_open_read(const char *name, int flags); argument
151 static inline bool has_multiple_files(struct elf *elf) in has_multiple_files()
156 static inline size_t elf_addr_size(struct elf *elf) in elf_addr_size()
[all …]
Dendianness.h15 static inline bool need_bswap(struct elf *elf) in need_bswap()
21 #define bswap_if_needed(elf, val) \ argument
/kernel/linux/linux-6.6/tools/objtool/
Delf.c132 struct section *find_section_by_name(const struct elf *elf, const char *name) in find_section_by_name()
144 static struct section *find_section_by_index(struct elf *elf, in find_section_by_index()
157 static struct symbol *find_symbol_by_index(struct elf *elf, unsigned int idx) in find_symbol_by_index()
256 struct symbol *find_symbol_by_name(const struct elf *elf, const char *name) in find_symbol_by_name()
268 struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec, in find_reloc_by_dest_range()
298 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) in find_reloc_by_dest()
308 static int read_sections(struct elf *elf) in read_sections()
394 static void elf_add_symbol(struct elf *elf, struct symbol *sym) in elf_add_symbol()
435 static int read_symbols(struct elf *elf) in read_symbols()
579 static int elf_update_sym_relocs(struct elf *elf, struct symbol *sym) in elf_update_sym_relocs()
[all …]
Dspecial.c68 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()
Dorc_dump.c76 Elf *elf; in orc_dump() local
/kernel/linux/linux-5.10/tools/objtool/
Delf.c130 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()
375 static int read_symbols(struct elf *elf) in read_symbols()
512 int elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset, in elf_add_reloc()
[all …]
Delf.h85 struct elf { struct
86 Elf *elf; member
87 GElf_Ehdr ehdr;
88 int fd;
89 bool changed;
90 char *name;
91 struct list_head sections;
Dspecial.c65 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()
Dobjtool.h18 struct elf *elf; member
Dorc_dump.c72 Elf *elf; in orc_dump() local
/kernel/linux/linux-6.6/scripts/mod/
Dsymsearch.c50 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()
Dmodpost.c713 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name()
776 static void check_section(const char *modname, struct elf_info *elf, in check_section()
1020 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, in find_fromsym()
1026 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) in find_tosym()
1043 static bool is_executable_section(struct elf_info *elf, unsigned int secndx) in is_executable_section()
1051 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler()
1101 static void check_export_symbol(struct module *mod, struct elf_info *elf, in check_export_symbol()
1171 static void check_section_mismatch(struct module *mod, struct elf_info *elf, in check_section_mismatch()
1362 static void get_rel_type_and_sym(struct elf_info *elf, uint64_t r_info, in get_rel_type_and_sym()
1397 static void section_rela(struct module *mod, struct elf_info *elf, in section_rela()
[all …]
/kernel/linux/linux-5.10/scripts/mod/
Dmodpost.c348 static enum export export_from_secname(struct elf_info *elf, unsigned int sec) in export_from_secname()
366 static enum export export_from_sec(struct elf_info *elf, unsigned int sec) in export_from_sec()
821 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name()
901 static void check_section(const char *modname, struct elf_info *elf, in check_section()
1280 static inline int is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name()
1296 static Elf_Sym *find_elf_symbol(struct elf_info *elf, Elf64_Sword addr, in find_elf_symbol()
1344 static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr, in find_elf_symbol2()
1584 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler()
1614 static int is_executable_section(struct elf_info* elf, unsigned int section_index) in is_executable_section()
1659 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/
Dsymbol-elf.c77 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()
235 static int elf_read_program_header(Elf *elf, u64 vaddr, GElf_Phdr *phdr) in elf_read_program_header()
323 Elf *elf; in dso__synthesize_plt_symbols() local
483 static int elf_read_build_id(Elf *elf, void *bf, size_t size) in elf_read_build_id()
597 Elf *elf; in filename__read_build_id() local
717 Elf *elf; in filename__read_debuglink() local
826 Elf *elf; in symsrc__init() local
1083 Elf *elf; in dso__load_sym() local
[all …]
Dsymsrc.h21 Elf *elf; member
/kernel/linux/linux-6.6/tools/perf/util/
Dsymbol-elf.c67 static int elf_getphdrnum(Elf *elf, size_t *dst) in elf_getphdrnum()
180 static size_t elf_addr_to_index(Elf *elf, GElf_Addr addr) in elf_addr_to_index()
199 Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep, in elf_section_by_name()
228 Elf *elf; in filename__has_section() local
253 static int elf_read_program_header(Elf *elf, u64 vaddr, GElf_Phdr *phdr) in elf_read_program_header()
402 static bool get_ifunc_name(Elf *elf, struct dso *dso, GElf_Ehdr *ehdr, in get_ifunc_name()
538 static void get_rela_dyn_info(Elf *elf, GElf_Ehdr *ehdr, struct rela_dyn_info *di, Elf_Scn *scn) in get_rela_dyn_info()
632 static int dso__synthesize_plt_got_symbols(struct dso *dso, Elf *elf, in dso__synthesize_plt_got_symbols()
683 Elf *elf; in dso__synthesize_plt_symbols() local
856 static int elf_read_build_id(Elf *elf, void *bf, size_t size) in elf_read_build_id()
[all …]
/kernel/linux/linux-6.6/tools/lib/bpf/
Delf.c17 Elf *elf; in elf_open() local
50 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) in elf_find_next_scn_by_type()
70 Elf *elf; member
80 Elf *elf, const char *binary_path, in elf_sym_iter_new()
166 long elf_find_func_offset(Elf *elf, const char *binary_path, const char *name) in elf_find_func_offset()
Dusdt.c305 static int sanity_check_usdt_elf(Elf *elf, const char *path) in sanity_check_usdt_elf()
357 static int find_elf_sec_by_name(Elf *elf, const char *sec_name, GElf_Shdr *shdr, Elf_Scn **scn) in find_elf_sec_by_name()
400 static int parse_elf_segs(Elf *elf, const char *path, struct elf_seg **segs, size_t *seg_cnt) in parse_elf_segs()
578 static int collect_usdt_targets(struct usdt_manager *man, Elf *elf, const char *path, pid_t pid, in collect_usdt_targets()
1133 static int parse_usdt_note(Elf *elf, const char *path, GElf_Nhdr *nhdr, in parse_usdt_note()
/kernel/linux/linux-5.10/tools/build/feature/
Dtest-libelf.c6 Elf *elf = elf_begin(0, ELF_C_READ, 0); in main() local
/kernel/linux/linux-6.6/tools/build/feature/
Dtest-libelf.c6 Elf *elf = elf_begin(0, ELF_C_READ, 0); in main() local
/kernel/linux/linux-5.10/tools/objtool/arch/x86/
Ddecode.c32 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-5.10/arch/loongarch/kernel/
Delf.c20 int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf, in arch_elf_pt_proc()
/kernel/linux/linux-6.6/arch/loongarch/kernel/
Delf.c15 int arch_elf_pt_proc(void *_ehdr, void *_phdr, struct file *elf, in arch_elf_pt_proc()
/kernel/linux/linux-5.10/samples/bpf/
Dbpf_load.c316 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-6.6/tools/objtool/arch/x86/
Ddecode.c31 static int is_x86_64(const struct elf *elf) in is_x86_64()
152 const struct elf *elf = file->elf; in arch_decode_instruction() local

123