Lines Matching defs:subsections
15 // Perhaps the notion that is new to those who know ELF/COFF is "subsections".
19 // consist of multiple subsections, and subsections are a unit of merging and
20 // garbage-collecting. Therefore, Mach-O's subsections are more similar to
29 // The notion of subsections also affects how relocations are represented in
31 // relocations if they refer to different subsections, because we obviously need
32 // to fix up addresses if subsections are laid out in an output file differently
339 // Split each section into subsections.
365 Subsections &subsections = section.subsections;
366 subsections.reserve(data.size() / recordSize);
370 subsections.push_back({off, isec});
385 section.subsections.push_back({0, isec});
391 section.subsections.push_back({0, isec});
421 section.subsections.push_back({0, isec});
445 ehFrameSection.subsections.push_back(
480 section.subsections, *offset,
539 Subsections &subsections = section.subsections;
540 auto subsecIt = subsections.rbegin();
621 while (subsecIt != subsections.rend() && subsecIt->offset > r.offset)
623 if (subsecIt == subsections.rend() ||
628 subsecIt = subsections.rend();
817 Subsections &subsections = sections[sym.n_sect - 1]->subsections;
819 if (subsections.empty())
830 Subsections &subsections = sections[i]->subsections;
831 if (subsections.empty())
837 // Some sections have already been split into subsections during
864 // Calculate symbol sizes and create subsections by splitting the sections
866 // We populate subsections by repeatedly splitting the last (highest
881 Subsection &subsec = subsections.back();
891 // 1. If the input file does not use subsections-via-symbols.
895 // 3. Alternative entry points do not induce new subsections.
925 subsections.push_back({sym.n_value - sectionAddr, nextIsec});
950 section.subsections.push_back({0, isec});
1028 if (!sections[i]->subsections.empty())
1125 for (const Subsection &subsection : compactUnwindSection.subsections) {
1392 for (const Subsection &subsec : ehFrameSection.subsections) {