Lines Matching defs:osec
374 OutputSection *osec = (isRO ? ctx.in.bssRelRo : ctx.in.bss)->getParent();
378 if (osec->commands.empty() ||
379 !isa<InputSectionDescription>(osec->commands.back()))
380 osec->commands.push_back(make<InputSectionDescription>(""));
381 auto *isd = cast<InputSectionDescription>(osec->commands.back());
383 osec->commitSection(sec);
2519 static bool matchesRefTo(const NoCrossRefCommand &cmd, StringRef osec) {
2521 return cmd.outputSections[0] == osec;
2522 return llvm::is_contained(cmd.outputSections, osec);
2527 OutputSection *osec, InputSection *sec, Rels rels) {
2531 // nullptr, osec for a self-reference, or a section that is described by the
2534 if (!dstOsec || dstOsec == osec || !matchesRefTo(cmd, dstOsec->name))
2543 << ": prohibited cross reference from '" << osec->name << "' to '"
2551 for (OutputSection *osec : ctx.outputSections) {
2553 if (!llvm::is_contained(noxref.outputSections, osec->name) ||
2554 (noxref.toFirst && noxref.outputSections[0] == osec->name))
2556 for (SectionCommand *cmd : osec->commands) {
2561 invokeOnRelocs(*sec, scanCrossRefs<ELFT>, ctx, noxref, osec, sec);