/kernel/linux/common_modules/xpm/validator/ |
H A D | elf_code_segment_info.c | 23 struct elf_info { struct 76 struct elf_info *elf_info) in get_elf32_code_segment_count() 83 for (i = 0; i < elf_info->e_phnum; i++) { in get_elf32_code_segment_count() 85 p_flags = elf32_get_value(&elf_info->elf_ehdr, phdr_info->p_flags); in get_elf32_code_segment_count() 94 static int get_elf32_code_segment(struct elf32_phdr *elf_phdr, struct elf_info *elf_info, in get_elf32_code_segment() argument 105 for (i = 0; i < elf_info->e_phnum; i++) { in get_elf32_code_segment() 107 p_flags = elf32_get_value(&elf_info->elf_ehdr, phdr_info->p_flags); in get_elf32_code_segment() 111 p_offset = elf32_get_value(&elf_info in get_elf32_code_segment() 75 get_elf32_code_segment_count(struct elf32_phdr *elf_phdr, struct elf_info *elf_info) get_elf32_code_segment_count() argument 125 get_elf64_code_segment_count(struct elf64_phdr *elf_phdr, struct elf_info *elf_info) get_elf64_code_segment_count() argument 143 get_elf64_code_segment(struct elf64_phdr *elf_phdr, struct elf_info *elf_info, struct exec_file_signature_info *exec_file_info) get_elf64_code_segment() argument 174 get_elf32_info(struct elfhdr *elf_ehdr, struct elf_info *elf_info) get_elf32_info() argument 201 get_elf64_info(struct elfhdr *elf_ehdr, struct elf_info *elf_info) get_elf64_info() argument 228 elf_check_and_get_code_segment_offset(struct file *file, struct elf_info *elf_info, bool *skip) elf_check_and_get_code_segment_offset() argument 257 find_elf_code_segment_info(const char *phdr_info, struct elf_info *elf_info, struct exec_file_signature_info **file_info) find_elf_code_segment_info() argument 329 struct elf_info elf_info = {0}; parse_elf_code_segment_info() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | kexec_elf.c | 203 struct kexec_elf_info *elf_info, in elf_read_phdr() 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() 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 in elf_read_phdrs() 202 elf_read_phdr(const char *buf, size_t len, struct kexec_elf_info *elf_info, int idx) elf_read_phdr() argument 251 elf_read_phdrs(const char *buf, size_t len, struct kexec_elf_info *elf_info) elf_read_phdrs() argument 296 elf_read_from_buffer(const char *buf, size_t len, struct elfhdr *ehdr, struct kexec_elf_info *elf_info) elf_read_from_buffer() argument 319 kexec_free_elf_info(struct kexec_elf_info *elf_info) kexec_free_elf_info() argument 327 kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr, struct kexec_elf_info *elf_info) kexec_build_elf_info() argument 368 struct kexec_elf_info elf_info; kexec_elf_probe() local 388 kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, struct kexec_elf_info *elf_info, struct kexec_buf *kbuf, unsigned long *lowest_load_addr) kexec_elf_load() argument [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_elf.c | 203 struct kexec_elf_info *elf_info, in elf_read_phdr() 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() 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 in elf_read_phdrs() 202 elf_read_phdr(const char *buf, size_t len, struct kexec_elf_info *elf_info, int idx) elf_read_phdr() argument 251 elf_read_phdrs(const char *buf, size_t len, struct kexec_elf_info *elf_info) elf_read_phdrs() argument 296 elf_read_from_buffer(const char *buf, size_t len, struct elfhdr *ehdr, struct kexec_elf_info *elf_info) elf_read_from_buffer() argument 319 kexec_free_elf_info(struct kexec_elf_info *elf_info) kexec_free_elf_info() argument 327 kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr, struct kexec_elf_info *elf_info) kexec_build_elf_info() argument 368 struct kexec_elf_info elf_info; kexec_elf_probe() local 388 kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, struct kexec_elf_info *elf_info, struct kexec_buf *kbuf, unsigned long *lowest_load_addr) kexec_elf_load() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kexec/ |
H A D | elf_64.c | 39 struct kexec_elf_info elf_info; in elf64_load() local 46 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf64_load() 58 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf64_load() 138 slave_code = elf_info.buffer + elf_info.proghdrs[0].p_offset; in elf64_load() 146 kexec_free_elf_info(&elf_info); in elf64_load()
|
/kernel/linux/linux-6.6/arch/powerpc/kexec/ |
H A D | elf_64.c | 39 struct kexec_elf_info elf_info; in elf64_load() local 46 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf64_load() 58 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf64_load() 137 slave_code = elf_info.buffer + elf_info.proghdrs[0].p_offset; in elf64_load() 149 kexec_free_elf_info(&elf_info); in elf64_load()
|
/kernel/linux/linux-5.10/scripts/mod/ |
H A D | modpost.c | 318 static void *sym_get_data_by_offset(const struct elf_info *info, in sym_get_data_by_offset() 329 static void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data() 335 static const char *sech_name(const struct elf_info *info, Elf_Shdr *sechdr) in sech_name() 341 static const char *sec_name(const struct elf_info *info, int secindex) in sec_name() 348 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() 382 static const char *namespace_from_kstrtabns(const struct elf_info *info, in namespace_from_kstrtabns() 474 static int parse_elf(struct elf_info *info, const char *filename) in parse_elf() 637 static void parse_elf_finish(struct elf_info *info) in parse_elf_finish() 642 static int ignore_undef_symbol(struct elf_info *inf [all...] |
H A D | modpost.h | 136 struct elf_info { struct 174 static inline unsigned int get_secindex(const struct elf_info *info, in get_secindex() 194 void handle_moddevtable(struct module *mod, struct elf_info *info,
|
H A D | file2alias.c | 1450 void handle_moddevtable(struct module *mod, struct elf_info *info, in handle_moddevtable()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | elf_kexec.c | 37 struct kexec_elf_info *elf_info, unsigned long old_pbase, in riscv_kexec_elf_load() 49 phdr = &elf_info->proghdrs[i]; in riscv_kexec_elf_load() 57 kbuf.buffer = (void *) elf_info->buffer + phdr->p_offset; in riscv_kexec_elf_load() 76 struct elfhdr *ehdr, struct kexec_elf_info *elf_info, in elf_find_pbase() 87 phdr = &elf_info->proghdrs[i]; in elf_find_pbase() 207 struct kexec_elf_info elf_info; in elf_kexec_load() local 210 ret = kexec_build_elf_info(kernel_buf, kernel_len, &ehdr, &elf_info); in elf_kexec_load() 214 ret = elf_find_pbase(image, kernel_len, &ehdr, &elf_info, in elf_kexec_load() 222 ret = riscv_kexec_elf_load(image, &ehdr, &elf_info, in elf_kexec_load() 328 kexec_free_elf_info(&elf_info); in elf_kexec_load() 36 riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, struct kexec_elf_info *elf_info, unsigned long old_pbase, unsigned long new_pbase) riscv_kexec_elf_load() argument 75 elf_find_pbase(struct kimage *image, unsigned long kernel_len, struct elfhdr *ehdr, struct kexec_elf_info *elf_info, unsigned long *old_pbase, unsigned long *new_pbase) elf_find_pbase() argument [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/scripts/mod/ |
H A D | modpost.h | 112 struct elf_info { struct 134 static inline unsigned int get_secindex(const struct elf_info *info, in get_secindex() 158 void handle_moddevtable(struct module *mod, struct elf_info *info, 168 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym);
|
H A D | modpost.c | 335 static void *sym_get_data_by_offset(const struct elf_info *info, in sym_get_data_by_offset() 343 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data() 349 static const char *sech_name(const struct elf_info *info, Elf_Shdr *sechdr) in sech_name() 355 static const char *sec_name(const struct elf_info *info, unsigned int secindex) in sec_name() 424 static int parse_elf(struct elf_info *info, const char *filename) in parse_elf() 583 static void parse_elf_finish(struct elf_info *info) in parse_elf_finish() 588 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 *inf [all...] |
H A D | file2alias.c | 1566 void handle_moddevtable(struct module *mod, struct elf_info *info, in handle_moddevtable()
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A D | elf.h | 150 struct elf_info { struct 155 int parse_elf64(void *hdr, struct elf_info *info); 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()
|
/kernel/linux/linux-6.6/arch/powerpc/boot/ |
H A D | elf.h | 150 struct elf_info { struct 155 int parse_elf64(void *hdr, struct elf_info *info); 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()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | kexec.h | 271 struct kexec_elf_info *elf_info); 274 struct kexec_elf_info *elf_info, 278 void kexec_free_elf_info(struct kexec_elf_info *elf_info);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | kexec.h | 286 struct kexec_elf_info *elf_info); 289 struct kexec_elf_info *elf_info, 293 void kexec_free_elf_info(struct kexec_elf_info *elf_info);
|
/kernel/linux/linux-5.10/fs/ |
H A D | binfmt_elf.c | 188 elf_addr_t *elf_info; in create_elf_tables() local 239 elf_info = (elf_addr_t *)mm->saved_auxv; in create_elf_tables() 243 *elf_info++ = id; \ in create_elf_tables() 244 *elf_info++ = val; \ in create_elf_tables() 288 memset(elf_info, 0, (char *)mm->saved_auxv + in create_elf_tables() 289 sizeof(mm->saved_auxv) - (char *)elf_info); in create_elf_tables() 292 elf_info += 2; in create_elf_tables() 294 ei_index = elf_info - (elf_addr_t *)mm->saved_auxv; in create_elf_tables() 354 /* Put the elf_info on the stack in the right place. */ in create_elf_tables()
|
/kernel/linux/linux-6.6/fs/ |
H A D | binfmt_elf.c | 191 elf_addr_t *elf_info; in create_elf_tables() local 243 elf_info = (elf_addr_t *)mm->saved_auxv; in create_elf_tables() 247 *elf_info++ = id; \ in create_elf_tables() 248 *elf_info++ = val; \ in create_elf_tables() 298 memset(elf_info, 0, (char *)mm->saved_auxv + in create_elf_tables() 299 sizeof(mm->saved_auxv) - (char *)elf_info); in create_elf_tables() 302 elf_info += 2; in create_elf_tables() 304 ei_index = elf_info - (elf_addr_t *)mm->saved_auxv; in create_elf_tables() 364 /* Put the elf_info on the stack in the right place. */ in create_elf_tables()
|