• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/gdb/bfd/

Lines Matching defs:i_ehdrp

500   Elf_Internal_Ehdr *i_ehdrp;	/* Elf file header, internal form */
564 i_ehdrp = elf_elfheader (abfd);
565 elf_swap_ehdr_in (abfd, &x_ehdr, i_ehdrp);
567 elf_debug_file (i_ehdrp);
571 if (i_ehdrp->e_type == ET_CORE)
576 if (i_ehdrp->e_shoff == 0 && i_ehdrp->e_type == ET_REL)
582 if (i_ehdrp->e_shentsize != sizeof (x_shdr) && i_ehdrp->e_shnum != 0)
586 if (i_ehdrp->e_shoff == 0 && i_ehdrp->e_shnum != 0)
593 if (ebd->elf_machine_code != i_ehdrp->e_machine
595 || i_ehdrp->e_machine != ebd->elf_machine_alt1)
597 || i_ehdrp->e_machine != ebd->elf_machine_alt2))
611 if (back->elf_machine_code == i_ehdrp->e_machine
613 && back->elf_machine_alt1 == i_ehdrp->e_machine)
615 && back->elf_machine_alt2 == i_ehdrp->e_machine))
624 if (i_ehdrp->e_type == ET_EXEC)
626 else if (i_ehdrp->e_type == ET_DYN)
629 if (i_ehdrp->e_phnum > 0)
640 && i_ehdrp->e_ident[EI_OSABI] != ebd->elf_osabi)
664 if (back->elf_osabi == i_ehdrp->e_ident[EI_OSABI]
665 && (back->elf_machine_code == i_ehdrp->e_machine
667 && back->elf_machine_alt1 == i_ehdrp->e_machine)
669 && back->elf_machine_alt2 == i_ehdrp->e_machine)))
678 if (i_ehdrp->e_shoff != 0)
680 bfd_signed_vma where = i_ehdrp->e_shoff;
697 if (i_ehdrp->e_shnum == SHN_UNDEF)
699 i_ehdrp->e_shnum = i_shdr.sh_size;
700 if (i_ehdrp->e_shnum != i_shdr.sh_size
701 || i_ehdrp->e_shnum == 0)
706 if (i_ehdrp->e_shstrndx == SHN_XINDEX)
708 i_ehdrp->e_shstrndx = i_shdr.sh_link;
709 if (i_ehdrp->e_shstrndx != i_shdr.sh_link)
715 if (i_ehdrp->e_shnum != 1)
718 if (i_ehdrp->e_shnum > (unsigned int) -1 / sizeof (x_shdr)
719 || i_ehdrp->e_shnum > (unsigned int) -1 / sizeof (i_shdr))
722 where += (i_ehdrp->e_shnum - 1) * sizeof (x_shdr);
725 if ((bfd_size_type) where <= i_ehdrp->e_shoff)
734 where = i_ehdrp->e_shoff + sizeof (x_shdr);
742 if (i_ehdrp->e_shnum != 0)
747 amt = sizeof (*i_shdrp) * i_ehdrp->e_shnum;
751 num_sec = i_ehdrp->e_shnum;
775 for (shindex = 1; shindex < i_ehdrp->e_shnum; shindex++)
804 if (i_ehdrp->e_shnum != 0)
806 if (! valid_section_index_p (i_ehdrp->e_shstrndx, elf_numsections (abfd)))
814 i_ehdrp->e_shstrndx = SHN_UNDEF;
818 else if (i_ehdrp->e_shstrndx != SHN_UNDEF)
822 if (i_ehdrp->e_phnum == 0)
829 amt = i_ehdrp->e_phnum * sizeof (Elf_Internal_Phdr);
833 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0)
836 for (i = 0; i < i_ehdrp->e_phnum; i++, i_phdr++)
846 if (i_ehdrp->e_shstrndx != 0 && i_ehdrp->e_shoff != 0)
876 bfd_set_start_address (abfd, i_ehdrp->e_entry);
1059 Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */
1065 i_ehdrp = elf_elfheader (abfd);
1071 elf_debug_file (i_ehdrp);
1073 elf_swap_ehdr_out (abfd, i_ehdrp, &x_ehdr);
1081 if (i_ehdrp->e_shnum >= SHN_LORESERVE)
1082 i_shdrp[0]->sh_size = i_ehdrp->e_shnum;
1083 if (i_ehdrp->e_shstrndx >= SHN_LORESERVE)
1084 i_shdrp[0]->sh_link = i_ehdrp->e_shstrndx;
1087 amt = i_ehdrp->e_shnum;
1093 for (count = 0; count < i_ehdrp->e_shnum; i_shdrp++, count++)
1103 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_shoff, SEEK_SET) != 0
1117 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd);
1126 i_ehdr = *i_ehdrp;
1132 num = i_ehdrp->e_phnum;