Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/kernel/
Dkexec_elf_64.c42 struct elf_info { struct
217 static int elf_read_phdr(const char *buf, size_t len, struct elf_info *elf_info, in elf_read_phdr() argument
221 struct elf_phdr *phdr = (struct elf_phdr *) &elf_info->proghdrs[idx]; in elf_read_phdr()
225 pbuf = buf + elf_info->ehdr->e_phoff + (idx * sizeof(*buf_phdr)); in elf_read_phdr()
228 phdr->p_type = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_type); in elf_read_phdr()
229 phdr->p_offset = elf_addr_to_cpu(elf_info->ehdr, buf_phdr->p_offset); in elf_read_phdr()
230 phdr->p_paddr = elf_addr_to_cpu(elf_info->ehdr, buf_phdr->p_paddr); in elf_read_phdr()
231 phdr->p_vaddr = elf_addr_to_cpu(elf_info->ehdr, buf_phdr->p_vaddr); in elf_read_phdr()
232 phdr->p_flags = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_flags); in elf_read_phdr()
238 phdr->p_filesz = elf_addr_to_cpu(elf_info->ehdr, buf_phdr->p_filesz); in elf_read_phdr()
[all …]
/Linux-v4.19/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.c18 int parse_elf64(void *hdr, struct elf_info *info) in parse_elf64()
54 int parse_elf32(void *hdr, struct elf_info *info) in parse_elf32()
Dmain.c33 struct elf_info ei; in prep_kernel()
/Linux-v4.19/scripts/mod/
Dmodpost.c268 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()
420 static int parse_elf(struct elf_info *info, const char *filename) in parse_elf()
584 static void parse_elf_finish(struct elf_info *info) in parse_elf_finish()
589 static int ignore_undef_symbol(struct elf_info *info, const char *symname) in ignore_undef_symbol()
618 static void handle_modversions(struct module *mod, struct elf_info *info, in handle_modversions()
727 static char *get_next_modinfo(struct elf_info *info, const char *tag, in get_next_modinfo()
747 static char *get_modinfo(struct elf_info *info, const char *tag) in get_modinfo()
[all …]
Dmodpost.h126 struct elf_info { struct
164 static inline unsigned int get_secindex(const struct elf_info *info, in get_secindex() argument
176 void handle_moddevtable(struct module *mod, struct elf_info *info,
Dfile2alias.c1402 void handle_moddevtable(struct module *mod, struct elf_info *info, in handle_moddevtable()
/Linux-v4.19/fs/
Dbinfmt_elf.c179 elf_addr_t *elf_info; in create_elf_tables() local
230 elf_info = (elf_addr_t *)current->mm->saved_auxv; in create_elf_tables()
234 elf_info[ei_index++] = id; \ in create_elf_tables()
235 elf_info[ei_index++] = val; \ in create_elf_tables()
279 memset(&elf_info[ei_index], 0, in create_elf_tables()
280 sizeof current->mm->saved_auxv - ei_index * sizeof elf_info[0]); in create_elf_tables()
342 if (copy_to_user(sp, elf_info, ei_index * sizeof(elf_addr_t))) in create_elf_tables()