Lines Matching +defs:region +defs:end
169 // Expands the memory region by the specified size.
333 if (from == sectionCommands.end())
344 if (insertPos == sectionCommands.end()) {
350 sectionCommands.insert(insertPos, moves.begin(), moves.end());
484 return std::reverse(vec.begin(), vec.end());
532 auto sortByPositionThenCommandLine = [&](size_t begin, size_t end) {
533 llvm::sort(MutableArrayRef<size_t>(indexes).slice(begin, end - begin));
534 for (size_t i = begin; i != end; ++i)
538 MutableArrayRef<InputSectionBase *>(ret).slice(begin, end - begin),
686 part.armExidx->exidxSections.end());
703 ret.insert(ret.end(), isd->sectionBases.begin(), isd->sectionBases.end());
800 insertNames.insert(ic.names.begin(), ic.names.end());
823 // sectionCommands, append it to the end. The section will be inserted by
954 // start = .; *(.foo.*) end = .; *(.bar)
959 // and end symbols.
971 // end up being linked to the same output section. The casts are fine
1047 // When SECTIONS command is present we just add all orphans to the end.
1049 sectionCommands.insert(sectionCommands.end(), v.begin(), v.end());
1051 sectionCommands.insert(sectionCommands.begin(), v.begin(), v.end());
1088 // This function searches for a memory region to place the given output
1089 // section in. If found, a pointer to the appropriate memory region is
1104 << "ignoring memory region assignment for non-allocatable section '"
1109 // If a memory region name was specified in the output section command,
1110 // then try to find that region first.
1114 ErrAlways(ctx) << "memory region '" << sec->memoryRegionName
1119 // If at least one memory region is defined, all sections must
1120 // belong to some memory region. Otherwise, we don't need to do
1125 // An orphan section should continue the previous memory region.
1129 // See if a region can be found by matching section flags.
1136 // Otherwise, no suitable region was found.
1137 ErrAlways(ctx) << "no memory region specified for section '" << sec->name
1165 // starts from the end address of the previous tbss section.
1178 // region, we need to expand the current region to account for the space
1198 // region is the default, and the two sections are in the same memory region,
1263 // If .relro_padding is present, round up the end to a common-page-size
1273 // NOBITS TLS sections are similar. Additionally save the end address.
1411 // Try and find an appropriate memory region to assign offsets in.
1420 ErrAlways(ctx) << "memory region '" << sec->lmaRegionName
1437 if (firstPtLoad != phdrsCommands.end())
1462 if (it == phdrs.end())
1590 if (it == potentialSpillLists.end())
1609 // Record the (potential) reduction in the region's end position.
1614 // Spilling continues until the end position no longer overflows the
1615 // region. Then, another round of address assignment will either confirm
1764 os << "Memory region Used Size Region Size %age Used\n";
1785 static void checkMemoryRegion(Ctx &ctx, const MemoryRegion *region,
1788 uint64_t regionEnd = region->getOrigin() + region->getLength();
1790 ErrAlways(ctx) << "section '" << osec->name << "' will not fit in region '"
1791 << region->name << "': overflowed by "
1831 if (it != provideMap.end() && shouldAddProvideSym(name) &&