Lines Matching refs:part
68 SmallVector<PhdrEntry *, 0> createPhdrs(Partition &part);
69 void addPhdrForSection(Partition &part, unsigned shType, unsigned pType,
73 void setPhdrs(Partition &part);
121 for (unsigned part = 2; part != partitions.size() + 1; ++part) { in copySectionsIntoPartitions() local
126 copy->partition = part; in copySectionsIntoPartitions()
132 copy->partition = part; in copySectionsIntoPartitions()
323 for (Partition &part : partitions) in run()
324 removeEmptyPTLoad(part.phdrs); in run()
331 for (Partition &part : partitions) in run()
332 setPhdrs(part); in run()
836 for (Partition &part : partitions) { in setReservedSymbolSections()
837 for (PhdrEntry *p : part.phdrs) { in setReservedSymbolSections()
1434 for (Partition &part : partitions) in finalizeAddressDependentContent()
1435 finalizeSynthetic(part.armExidx.get()); in finalizeAddressDependentContent()
1475 for (Partition &part : partitions) { in finalizeAddressDependentContent()
1482 if (part.relrAuthDyn) { in finalizeAddressDependentContent()
1484 part.relrAuthDyn->relocs, [&part](const RelativeReloc &elem) { in finalizeAddressDependentContent()
1488 part.relaDyn->addReloc({R_AARCH64_AUTH_RELATIVE, elem.inputSec, in finalizeAddressDependentContent()
1494 changed |= (it != part.relrAuthDyn->relocs.end()); in finalizeAddressDependentContent()
1495 part.relrAuthDyn->relocs.erase(it, part.relrAuthDyn->relocs.end()); in finalizeAddressDependentContent()
1497 if (part.relaDyn) in finalizeAddressDependentContent()
1498 changed |= part.relaDyn->updateAllocSize(); in finalizeAddressDependentContent()
1499 if (part.relrDyn) in finalizeAddressDependentContent()
1500 changed |= part.relrDyn->updateAllocSize(); in finalizeAddressDependentContent()
1501 if (part.relrAuthDyn) in finalizeAddressDependentContent()
1502 changed |= part.relrAuthDyn->updateAllocSize(); in finalizeAddressDependentContent()
1503 if (part.memtagGlobalDescriptors) in finalizeAddressDependentContent()
1504 changed |= part.memtagGlobalDescriptors->updateAllocSize(); in finalizeAddressDependentContent()
1768 for (Partition &part : partitions) in finalizeSections()
1769 finalizeSynthetic(part.ehFrame.get()); in finalizeSections()
1866 for (Partition &part : MutableArrayRef<Partition>(partitions).slice(1)) { in finalizeSections()
1868 for (const SymbolTableEntry &e : part.dynSymTab->getSymbols()) in finalizeSections()
1870 for (DynamicReloc &reloc : part.relaDyn->relocs) in finalizeSections()
1873 part.dynSymTab->addSymbol(reloc.sym); in finalizeSections()
1923 for (Partition &part : partitions) { in finalizeSections()
1924 part.phdrs = script->hasPhdrsCommands() ? script->createPhdrs() in finalizeSections()
1925 : createPhdrs(part); in finalizeSections()
1928 addPhdrForSection(part, SHT_ARM_EXIDX, PT_ARM_EXIDX, PF_R); in finalizeSections()
1932 addPhdrForSection(part, SHT_MIPS_REGINFO, PT_MIPS_REGINFO, PF_R); in finalizeSections()
1933 addPhdrForSection(part, SHT_MIPS_OPTIONS, PT_MIPS_OPTIONS, PF_R); in finalizeSections()
1934 addPhdrForSection(part, SHT_MIPS_ABIFLAGS, PT_MIPS_ABIFLAGS, PF_R); in finalizeSections()
1937 addPhdrForSection(part, SHT_RISCV_ATTRIBUTES, PT_RISCV_ATTRIBUTES, in finalizeSections()
1980 for (Partition &part : partitions) { in finalizeSections()
1981 if (part.relaDyn) { in finalizeSections()
1982 part.relaDyn->mergeRels(); in finalizeSections()
1984 part.relaDyn->partitionRels(); in finalizeSections()
1985 finalizeSynthetic(part.relaDyn.get()); in finalizeSections()
1987 if (part.relrDyn) { in finalizeSections()
1988 part.relrDyn->mergeRels(); in finalizeSections()
1989 finalizeSynthetic(part.relrDyn.get()); in finalizeSections()
1991 if (part.relrAuthDyn) { in finalizeSections()
1992 part.relrAuthDyn->mergeRels(); in finalizeSections()
1993 finalizeSynthetic(part.relrAuthDyn.get()); in finalizeSections()
1996 finalizeSynthetic(part.dynSymTab.get()); in finalizeSections()
1997 finalizeSynthetic(part.gnuHashTab.get()); in finalizeSections()
1998 finalizeSynthetic(part.hashTab.get()); in finalizeSections()
1999 finalizeSynthetic(part.verDef.get()); in finalizeSections()
2000 finalizeSynthetic(part.ehFrameHdr.get()); in finalizeSections()
2001 finalizeSynthetic(part.verSym.get()); in finalizeSections()
2002 finalizeSynthetic(part.verNeed.get()); in finalizeSections()
2003 finalizeSynthetic(part.dynamic.get()); in finalizeSections()
2157 SmallVector<PhdrEntry *, 0> Writer<ELFT>::createPhdrs(Partition &part) { in createPhdrs() argument
2164 unsigned partNo = part.getNumber(); in createPhdrs()
2179 addHdr(PT_PHDR, PF_R)->add(part.programHeaders->getParent()); in createPhdrs()
2284 if (OutputSection *sec = part.dynamic->getParent()) in createPhdrs()
2291 if (part.ehFrame->isNeeded() && part.ehFrameHdr && in createPhdrs()
2292 part.ehFrame->getParent() && part.ehFrameHdr->getParent()) in createPhdrs()
2293 addHdr(PT_GNU_EH_FRAME, part.ehFrameHdr->getParent()->getPhdrFlags()) in createPhdrs()
2294 ->add(part.ehFrameHdr->getParent()); in createPhdrs()
2352 void Writer<ELFT>::addPhdrForSection(Partition &part, unsigned shType, in addPhdrForSection() argument
2354 unsigned partNo = part.getNumber(); in addPhdrForSection()
2363 part.phdrs.push_back(entry); in addPhdrForSection()
2424 for (Partition &part : partitions) { in fixSectionAlignments()
2426 for (const PhdrEntry *p : part.phdrs) in fixSectionAlignments()
2491 for (Partition &part : partitions) in assignFileOffsets()
2492 for (PhdrEntry *p : part.phdrs) in assignFileOffsets()
2544 template <class ELFT> void Writer<ELFT>::setPhdrs(Partition &part) { in setPhdrs() argument
2545 for (PhdrEntry *p : part.phdrs) { in setPhdrs()
2552 if (part.armExidx && p->p_type == PT_ARM_EXIDX) { in setPhdrs()
2553 p->p_filesz = part.armExidx->getSize(); in setPhdrs()
2554 p->p_memsz = part.armExidx->getSize(); in setPhdrs()
2555 p->p_offset = first->offset + part.armExidx->outSecOff; in setPhdrs()
2556 p->p_vaddr = first->addr + part.armExidx->outSecOff; in setPhdrs()
2557 p->p_align = part.armExidx->addralign; in setPhdrs()
2558 if (part.elfHeader) in setPhdrs()
2559 p->p_offset -= part.elfHeader->getParent()->offset; in setPhdrs()
2562 p->p_paddr = first->getLMA() + part.armExidx->outSecOff; in setPhdrs()
2577 if (part.elfHeader) in setPhdrs()
2578 p->p_offset -= part.elfHeader->getParent()->offset; in setPhdrs()
2796 for (Partition &part : partitions) { in writeTrapInstr()
2798 for (PhdrEntry *p : part.phdrs) in writeTrapInstr()
2810 for (PhdrEntry *p : part.phdrs) in writeTrapInstr()
2874 for (Partition &part : partitions) in writeBuildId()
2875 part.buildId->writeBuildId(config->buildIdVector); in writeBuildId()
2914 for (Partition &part : partitions) in writeBuildId()
2915 part.buildId->writeBuildId(output); in writeBuildId()