/linux/kernel/ |
H A D | kexec_elf.c | 203 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/scripts/mod/ |
H A D | modpost.h | 120 struct elf_info { struct 144 static inline unsigned int get_secindex(const struct elf_info *info, in get_secindex() argument 173 static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name() 183 void symsearch_init(struct elf_info *elf); 184 void symsearch_finish(struct elf_info *elf); 185 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr, 190 void handle_moddevtable(struct module *mod, struct elf_info *info, 201 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym);
|
H A D | symsearch.c | 50 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 D | modpost.c | 300 static void *sym_get_data_by_offset(const struct elf_info *info, in sym_get_data_by_offset() 308 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data() 314 static const char *sech_name(const struct elf_info *info, Elf_Shdr *sechdr) in sech_name() 320 static const char *sec_name(const struct elf_info *info, unsigned int secindex) in sec_name() 387 static int parse_elf(struct elf_info *info, const char *filename) in parse_elf() 557 static void parse_elf_finish(struct elf_info *info) in parse_elf_finish() 563 static int ignore_undef_symbol(struct elf_info *info, const char *symname) in ignore_undef_symbol() 592 static void handle_symbol(struct module *mod, struct elf_info *info, in handle_symbol() 655 static char *get_next_modinfo(struct elf_info *info, const char *tag, in get_next_modinfo() 675 static char *get_modinfo(struct elf_info *info, const char *tag) in get_modinfo() [all …]
|
H A D | file2alias.c | 1481 void handle_moddevtable(struct module *mod, struct elf_info *info, in handle_moddevtable()
|
/linux/arch/powerpc/kexec/ |
H A D | elf_64.c | 41 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 D | kexec_file.c | 24 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/arch/riscv/kernel/ |
H A D | elf_kexec.c | 38 struct kexec_elf_info *elf_info, unsigned long old_pbase, in riscv_kexec_elf_load() argument 50 phdr = &elf_info->proghdrs[i]; in riscv_kexec_elf_load() 58 kbuf.buffer = (void *) elf_info->buffer + phdr->p_offset; in riscv_kexec_elf_load() 77 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in elf_find_pbase() argument 88 phdr = &elf_info->proghdrs[i]; in elf_find_pbase() 209 struct kexec_elf_info elf_info; in elf_kexec_load() local 212 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf_kexec_load() 216 ret = elf_find_pbase(image, kernel_len, &ehdr, &elf_info, in elf_kexec_load() 223 ret = riscv_kexec_elf_load(image, &ehdr, &elf_info, in elf_kexec_load() 335 kexec_free_elf_info(&elf_info); in elf_kexec_load()
|
/linux/arch/powerpc/boot/ |
H A D | elf.h | 150 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 D | elf_util.c | 14 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 D | main.c | 29 struct elf_info ei; in prep_kernel()
|