Lines Matching refs:OutputSection

81   void addStartStopSymbols(OutputSection *Sec);
103 OutputSection *Out = Rel->getOutputSection(); in getOutputSectionName()
262 static OutputSection *findSection(StringRef Name) { in findSection()
264 if (auto *Sec = dyn_cast<OutputSection>(Base)) in findSection()
289 Out::ProgramHeaders = make<OutputSection>("", 0, SHF_ALLOC); in createSyntheticSections()
486 for (OutputSection *Sec : OutputSections) in run()
504 for (OutputSection *Sec : OutputSections) in run()
625 auto *Sec = dyn_cast<OutputSection>(Base); in addSectionSymbols()
660 static bool isRelroSection(const OutputSection *Sec) { in isRelroSection()
758 static unsigned getSectionRank(const OutputSection *Sec) { in getSectionRank()
888 const OutputSection *A = cast<OutputSection>(ACmd); in compareSections()
889 const OutputSection *B = cast<OutputSection>(BCmd); in compareSections()
900 void PhdrEntry::add(OutputSection *Sec) { in add()
991 OutputSection *Edata = nullptr; in setReservedSymbolSections()
992 for (OutputSection *OS : OutputSections) { in setReservedSymbolSections()
1019 for (OutputSection *OS : OutputSections) { in setReservedSymbolSections()
1033 static int getRankProximityAux(OutputSection *A, OutputSection *B) { in getRankProximityAux()
1037 static int getRankProximity(OutputSection *A, BaseCommand *B) { in getRankProximity()
1038 if (auto *Sec = dyn_cast<OutputSection>(B)) in getRankProximity()
1070 OutputSection *Sec = cast<OutputSection>(*E); in findOrphanPos()
1082 auto *CurSec = dyn_cast<OutputSection>(*I); in findOrphanPos()
1090 auto IsOutputSec = [](BaseCommand *Cmd) { return isa<OutputSection>(Cmd); }; in findOrphanPos()
1236 static void sortSection(OutputSection *Sec, in sortSection()
1273 if (auto *Sec = dyn_cast<OutputSection>(Base)) in sortInputSections()
1288 auto *OS = dyn_cast<OutputSection>(Base); in sortSections()
1303 auto IsSection = [](BaseCommand *Base) { return isa<OutputSection>(Base); }; in sortSections()
1353 if (auto *Sec = dyn_cast<OutputSection>(Base)) in sortSections()
1374 OutputSection *Orphan = cast<OutputSection>(*NonScriptI); in sortSections()
1380 return cast<OutputSection>(Cmd)->SortRank != Rank; in sortSections()
1397 OutputSection *AOut = LA->getParent(); in compareByFilePosition()
1398 OutputSection *BOut = LB->getParent(); in compareByFilePosition()
1453 for (OutputSection *Sec : OutputSections) { in resolveShfLinkOrder()
1577 OutputSection *OS = SS->getParent(); in removeUnusedSyntheticSections()
1633 if (auto *Sec = dyn_cast<OutputSection>(Base)) in finalizeSections()
1727 if (auto *Sec = dyn_cast<OutputSection>(Base)) in finalizeSections()
1731 for (OutputSection *Sec : OutputSections) { in finalizeSections()
1743 OutputSection *Sec = OutputSections[I]; in finalizeSections()
1820 for (OutputSection *Sec : OutputSections) in finalizeSections()
1831 for (OutputSection *OS : OutputSections) in checkExecuteOnly()
1858 OutputSection *Default = findSection(".text"); in addStartEndSymbols()
1862 auto Define = [=](StringRef Start, StringRef End, OutputSection *OS) { in addStartEndSymbols()
1876 if (OutputSection *Sec = findSection(".ARM.exidx")) in addStartEndSymbols()
1886 void Writer<ELFT>::addStartStopSymbols(OutputSection *Sec) { in addStartStopSymbols()
1894 static bool needsPtLoad(OutputSection *Sec) { in needsPtLoad()
1933 if (OutputSection *Cmd = findSection(".interp")) in createPhdrs()
1944 for (OutputSection *Sec : OutputSections) { in createPhdrs()
1972 for (OutputSection *Sec : OutputSections) in createPhdrs()
1979 if (OutputSection *Sec = In.Dynamic->getParent()) in createPhdrs()
1989 for (OutputSection *Sec : OutputSections) { in createPhdrs()
2015 if (OutputSection *Cmd = findSection(".openbsd.randomdata")) in createPhdrs()
2036 for (OutputSection *Sec : OutputSections) { in createPhdrs()
2052 auto I = llvm::find_if(OutputSections, [](OutputSection *Cmd) { in addPtArmExid()
2068 auto PageAlign = [](OutputSection *Cmd) { in fixSectionAlignments()
2093 OutputSection *Cmd = (*(I + 1)); in fixSectionAlignments()
2102 static uint64_t computeFileOffset(OutputSection *OS, uint64_t Off) { in computeFileOffset()
2114 OutputSection *First = OS->PtLoad->FirstSec; in computeFileOffset()
2127 static uint64_t setFileOffset(OutputSection *OS, uint64_t Off) { in setFileOffset()
2138 for (OutputSection *Sec : OutputSections) in assignFileOffsetsBinary()
2159 for (OutputSection *Sec : OutputSections) { in assignFileOffsets()
2183 for (OutputSection *Sec : OutputSections) { in assignFileOffsets()
2197 OutputSection *First = P->FirstSec; in setPhdrs()
2198 OutputSection *Last = P->LastSec; in setPhdrs()
2235 OutputSection *Sec;
2276 for (OutputSection *OS : OutputSections) in checkSections()
2289 for (OutputSection *Sec : OutputSections) in checkSections()
2307 for (OutputSection *Sec : OutputSections) in checkSections()
2316 for (OutputSection *Sec : OutputSections) in checkSections()
2341 if (OutputSection *Sec = findSection(".text")) { in getEntryAddr()
2440 for (OutputSection *Sec : OutputSections) in writeHeader()
2468 for (OutputSection *Sec : OutputSections) in writeSectionsBinary()
2511 OutputSection *EhFrameHdr = nullptr; in writeSections()
2518 for (OutputSection *Sec : OutputSections) in writeSections()
2522 for (OutputSection *Sec : OutputSections) in writeSections()