Home
last modified time | relevance | path

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

/Linux-v5.4/kernel/
Dkexec_elf.c203 struct kexec_elf_info *elf_info, in elf_read_phdr() argument
207 struct elf_phdr *phdr = (struct elf_phdr *) &elf_info->proghdrs[idx]; in elf_read_phdr()
208 const struct elfhdr *ehdr = elf_info->ehdr; in elf_read_phdr()
212 pbuf = buf + elf_info->ehdr->e_phoff + (idx * sizeof(*buf_phdr)); in elf_read_phdr()
215 phdr->p_type = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_type); in elf_read_phdr()
216 phdr->p_flags = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_flags); in elf_read_phdr()
252 struct kexec_elf_info *elf_info) in elf_read_phdrs() argument
255 const struct elfhdr *ehdr = elf_info->ehdr; in elf_read_phdrs()
263 elf_info->proghdrs = kzalloc(phdr_size, GFP_KERNEL); in elf_read_phdrs()
264 if (!elf_info->proghdrs) in elf_read_phdrs()
[all …]
/Linux-v5.4/arch/powerpc/kernel/
Dkexec_elf_64.c38 struct kexec_elf_info elf_info; in elf64_load() local
45 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf64_load()
49 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf64_load()
109 slave_code = elf_info.buffer + elf_info.proghdrs[0].p_offset; in elf64_load()
116 kexec_free_elf_info(&elf_info); in elf64_load()
/Linux-v5.4/arch/parisc/kernel/
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-v5.4/arch/powerpc/boot/
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);
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()
Dmain.c29 struct elf_info ei; in prep_kernel()
/Linux-v5.4/scripts/mod/
Dmodpost.c303 static const char *sech_name(struct elf_info *elf, Elf_Shdr *sechdr) in sech_name()
310 static const char *sec_name(struct elf_info *elf, int secindex) in sec_name()
317 static enum export export_from_secname(struct elf_info *elf, unsigned int sec) in export_from_secname()
335 static enum export export_from_sec(struct elf_info *elf, unsigned int sec) in export_from_sec()
351 static const char *namespace_from_kstrtabns(struct elf_info *info, in namespace_from_kstrtabns()
480 static int parse_elf(struct elf_info *info, const char *filename) in parse_elf()
648 static void parse_elf_finish(struct elf_info *info) in parse_elf_finish()
653 static int ignore_undef_symbol(struct elf_info *info, const char *symname) in ignore_undef_symbol()
682 static void handle_modversions(struct module *mod, struct elf_info *info, in handle_modversions()
792 static char *get_next_modinfo(struct elf_info *info, const char *tag, in get_next_modinfo()
[all …]
Dmodpost.h135 struct elf_info { struct
174 static inline unsigned int get_secindex(const struct elf_info *info, in get_secindex() argument
186 void handle_moddevtable(struct module *mod, struct elf_info *info,
Dfile2alias.c1415 void handle_moddevtable(struct module *mod, struct elf_info *info, in handle_moddevtable()
/Linux-v5.4/include/linux/
Dkexec.h234 struct kexec_elf_info *elf_info);
237 struct kexec_elf_info *elf_info,
241 void kexec_free_elf_info(struct kexec_elf_info *elf_info);
/Linux-v5.4/fs/
Dbinfmt_elf.c178 elf_addr_t *elf_info; in create_elf_tables() local
229 elf_info = (elf_addr_t *)current->mm->saved_auxv; in create_elf_tables()
233 elf_info[ei_index++] = id; \ in create_elf_tables()
234 elf_info[ei_index++] = val; \ in create_elf_tables()
278 memset(&elf_info[ei_index], 0, in create_elf_tables()
279 sizeof current->mm->saved_auxv - ei_index * sizeof elf_info[0]); in create_elf_tables()
341 if (copy_to_user(sp, elf_info, ei_index * sizeof(elf_addr_t))) in create_elf_tables()