• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/

Lines Matching refs:elf_ex

582 		struct elfhdr elf_ex;
593 loc->elf_ex = *((struct elfhdr *)bprm->buf);
597 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
600 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN)
602 if (!elf_check_arch(&loc->elf_ex))
608 if (loc->elf_ex.e_phentsize != sizeof(struct elf_phdr))
610 if (loc->elf_ex.e_phnum < 1 ||
611 loc->elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr))
613 size = loc->elf_ex.e_phnum * sizeof(struct elf_phdr);
619 retval = kernel_read(bprm->file, loc->elf_ex.e_phoff,
636 for (i = 0; i < loc->elf_ex.e_phnum; i++) {
695 for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++)
726 SET_PERSONALITY(loc->elf_ex);
727 if (elf_read_implies_exec(loc->elf_ex, executable_stack))
751 i < loc->elf_ex.e_phnum; i++, elf_ppnt++) {
796 if (loc->elf_ex.e_type == ET_EXEC || load_addr_set) {
798 } else if (loc->elf_ex.e_type == ET_DYN) {
822 if (loc->elf_ex.e_type == ET_DYN) {
862 loc->elf_ex.e_entry += load_bias;
913 elf_entry = loc->elf_ex.e_entry;
935 retval = create_elf_tables(bprm, &loc->elf_ex,
1006 struct elfhdr elf_ex;
1009 retval = kernel_read(file, 0, (char *)&elf_ex, sizeof(elf_ex));
1010 if (retval != sizeof(elf_ex))
1013 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
1017 if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 ||
1018 !elf_check_arch(&elf_ex) || !file->f_op || !file->f_op->mmap)
1023 j = sizeof(struct elf_phdr) * elf_ex.e_phnum;
1024 /* j < ELF_MIN_ALIGN because elf_ex.e_phnum <= 2 */
1033 retval = kernel_read(file, elf_ex.e_phoff, (char *)eppnt, j);
1037 for (j = 0, i = 0; i<elf_ex.e_phnum; i++)