Home
last modified time | relevance | path

Searched refs:elf_info (Results 1 – 13 of 13) sorted by relevance

/linux/arch/riscv/kernel/
H A Dkexec_elf.c25 struct kexec_elf_info *elf_info, unsigned long old_pbase, in riscv_kexec_elf_load() argument
37 phdr = &elf_info->proghdrs[i]; in riscv_kexec_elf_load()
45 kbuf.buffer = (void *) elf_info->buffer + phdr->p_offset; in riscv_kexec_elf_load()
64 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in elf_find_pbase() argument
75 phdr = &elf_info->proghdrs[i]; in elf_find_pbase()
118 struct kexec_elf_info elf_info; in elf_kexec_load() local
120 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf_kexec_load()
124 ret = elf_find_pbase(image, kernel_len, &ehdr, &elf_info, in elf_kexec_load()
130 ret = riscv_kexec_elf_load(image, &ehdr, &elf_info, in elf_kexec_load()
138 kexec_free_elf_info(&elf_info); in elf_kexec_load()
/linux/arch/loongarch/kernel/
H A Dkexec_elf.c21 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in _elf_kexec_load() argument
31 phdr = &elf_info->proghdrs[i]; in _elf_kexec_load()
39 kbuf->buffer = (void *)elf_info->buffer + phdr->p_offset; in _elf_kexec_load()
63 struct kexec_elf_info elf_info; in elf_kexec_load() local
66 ret = kexec_build_elf_info(kernel, kernel_len, &ehdr, &elf_info); in elf_kexec_load()
80 ret = _elf_kexec_load(image, &ehdr, &elf_info, &kbuf, &text_offset); in elf_kexec_load()
98 kexec_free_elf_info(&elf_info); in elf_kexec_load()
/linux/arch/powerpc/kexec/
H A Delf_64.c41 struct kexec_elf_info elf_info; in elf64_load() local
48 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf64_load()
60 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf64_load()
143 slave_code = elf_info.buffer + elf_info.proghdrs[0].p_offset; in elf64_load()
156 kexec_free_elf_info(&elf_info); in elf64_load()
/linux/arch/parisc/kernel/
H A Dkexec_file.c24 struct kexec_elf_info elf_info; in elf_load() local
28 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf_load()
32 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf_load()
36 image->start = __pa(elf_info.ehdr->e_entry); in elf_load()
/linux/scripts/mod/
H A 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()
H A Dmodpost.c318 static void *sym_get_data_by_offset(const struct elf_info *info, in sym_get_data_by_offset()
326 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data()
332 static const char *sech_name(const struct elf_info *info, Elf_Shdr *sechdr) in sech_name()
338 static const char *sec_name(const struct elf_info *info, unsigned int secindex) in sec_name()
405 static int parse_elf(struct elf_info *info, const char *filename) in parse_elf()
578 static void parse_elf_finish(struct elf_info *info) in parse_elf_finish()
584 static int ignore_undef_symbol(struct elf_info *info, const char *symname) in ignore_undef_symbol()
622 static void handle_symbol(struct module *mod, struct elf_info *info, in handle_symbol()
685 static char *get_next_modinfo(struct elf_info *info, const char *tag, in get_next_modinfo()
705 static char *get_modinfo(struct elf_info *info, const char *tag) in get_modinfo()
[all …]
H A Dfile2alias.c1484 void handle_moddevtable(struct module *mod, struct elf_info *info, in handle_moddevtable()
/linux/arch/powerpc/boot/
H A Delf.h150 struct elf_info { struct
155 int parse_elf64(void *hdr, struct elf_info *info); argument
156 int parse_elf32(void *hdr, struct elf_info *info);
H A Delf_util.c14 int parse_elf64(void *hdr, struct elf_info *info) in parse_elf64()
50 int parse_elf32(void *hdr, struct elf_info *info) in parse_elf32()
H A Dmain.c29 struct elf_info ei; in prep_kernel()
/linux/include/linux/
H A Dkexec.h329 struct kexec_elf_info *elf_info);
332 struct kexec_elf_info *elf_info,
336 void kexec_free_elf_info(struct kexec_elf_info *elf_info);
/linux/fs/
H A Dbinfmt_elf_fdpic.c510 elf_addr_t *elf_info; in create_elf_fdpic_tables() local
615 elf_info = (elf_addr_t *)mm->saved_auxv; in create_elf_fdpic_tables()
619 *elf_info++ = id; \ in create_elf_fdpic_tables()
620 *elf_info++ = val; \ in create_elf_fdpic_tables()
668 memset(elf_info, 0, (char *)mm->saved_auxv + in create_elf_fdpic_tables()
669 sizeof(mm->saved_auxv) - (char *)elf_info); in create_elf_fdpic_tables()
672 elf_info += 2; in create_elf_fdpic_tables()
674 ei_index = elf_info - (elf_addr_t *)mm->saved_auxv; in create_elf_fdpic_tables()
H A Dbinfmt_elf.c181 elf_addr_t *elf_info; in create_elf_tables() local
233 elf_info = (elf_addr_t *)mm->saved_auxv; in create_elf_tables()
237 *elf_info++ = id; \ in create_elf_tables()
238 *elf_info++ = val; \ in create_elf_tables()
294 memset(elf_info, 0, (char *)mm->saved_auxv + in create_elf_tables()
295 sizeof(mm->saved_auxv) - (char *)elf_info); in create_elf_tables()
298 elf_info += 2; in create_elf_tables()
300 ei_index = elf_info - (elf_addr_t *)mm->saved_auxv; in create_elf_tables()