Searched refs:num_phdrs (Results 1 – 2 of 2) sorted by relevance
376 static void fill_ehdr(VKI_ESZ(Ehdr) *ehdr, Int num_phdrs) in fill_ehdr() argument400 if (num_phdrs >= VKI_PN_XNUM) { in fill_ehdr()403 ehdr->e_shoff = ehdr->e_phoff + ehdr->e_phentsize * num_phdrs; in fill_ehdr()406 ehdr->e_phnum = num_phdrs; in fill_ehdr()443 static void fill_zero_shdr(VKI_ESZ(Shdr) *shdr, UInt num_phdrs) in fill_zero_shdr() argument445 vg_assert(num_phdrs >= VKI_PN_XNUM); in fill_zero_shdr()450 shdr->sh_info = num_phdrs; in fill_zero_shdr()921 UInt num_phdrs = 2; /* two CORE note sections */ in VG_() local926 num_phdrs++; in VG_()930 fill_ehdr(&ehdr, num_phdrs); in VG_()[all …]
87 static void fill_ehdr(ESZ(Ehdr) *ehdr, Int num_phdrs) in fill_ehdr() argument105 ehdr->e_phnum = num_phdrs; in fill_ehdr()577 Int num_phdrs; in make_elf_coredump() local629 num_phdrs = 1; /* start with notes */ in make_elf_coredump()634 num_phdrs++; in make_elf_coredump()637 fill_ehdr(&ehdr, num_phdrs); in make_elf_coredump()642 phdrs = VG_(malloc)("coredump-elf.mec.1", sizeof(*phdrs) * num_phdrs); in make_elf_coredump()673 off = sizeof(ehdr) + sizeof(*phdrs) * num_phdrs; in make_elf_coredump()704 VG_(write)(core_fd, phdrs, sizeof(*phdrs) * num_phdrs); in make_elf_coredump()