Lines Matching refs:ProgHdr
1681 Elf_Phdr ProgHdr;
1682 RT_ZERO(ProgHdr);
1683 ProgHdr.p_type = PT_LOAD;
1689 ProgHdr.p_vaddr = pMapInfo->pMap.pr_vaddr; /* Virtual address of this mapping in the process address space */
1690 ProgHdr.p_offset = pSolCore->offWrite; /* Where this mapping is located in the core file */
1691 ProgHdr.p_memsz = pMapInfo->pMap.pr_size; /* Size of the memory image of the mapping */
1692 ProgHdr.p_filesz = pMapInfo->pMap.pr_size; /* Size of the file image of the mapping */
1694 ProgHdr.p_flags = 0; /* Reset fields in a loop when needed! */
1696 ProgHdr.p_flags |= PF_R;
1698 ProgHdr.p_flags |= PF_W;
1700 ProgHdr.p_flags |= PF_X;
1703 ProgHdr.p_flags |= PF_SUNW_FAILURE;
1705 rc = pSolCore->pfnWriter(pSolCore->fdCoreFile, &ProgHdr, sizeof(ProgHdr));
1712 pSolCore->offWrite += ProgHdr.p_filesz;
1765 Elf_Phdr ProgHdr;
1766 RT_ZERO(ProgHdr);
1767 ProgHdr.p_type = PT_NOTE;
1768 ProgHdr.p_flags = PF_R;
1773 pSolCore->offWrite += sizeof(ElfHdr) + cProgHdrs * sizeof(ProgHdr);
1774 ProgHdr.p_offset = pSolCore->offWrite;
1775 ProgHdr.p_filesz = ElfNoteSectionSize(pSolCore, enmOldEra);
1776 rc = pSolCore->pfnWriter(pSolCore->fdCoreFile, &ProgHdr, sizeof(ProgHdr));
1786 pSolCore->offWrite += ProgHdr.p_filesz;
1787 ProgHdr.p_offset = pSolCore->offWrite;
1788 ProgHdr.p_filesz = ElfNoteSectionSize(pSolCore, enmNewEra);
1789 rc = pSolCore->pfnWriter(pSolCore->fdCoreFile, &ProgHdr, sizeof(ProgHdr));
1799 pSolCore->offWrite += ProgHdr.p_filesz;