Lines Matching refs:sec
100 std::string lld::toString(const Section &sec) { in toString() argument
101 return (toString(sec.file) + ":(" + sec.name + ")").str(); in toString()
305 for (const SectionHeader &sec : sectionHeaders) { in parseSections() local
307 StringRef(sec.sectname, strnlen(sec.sectname, sizeof(sec.sectname))); in parseSections()
309 StringRef(sec.segname, strnlen(sec.segname, sizeof(sec.segname))); in parseSections()
310 sections.push_back(make<Section>(this, segname, name, sec.flags, sec.addr)); in parseSections()
311 if (sec.align >= 32) { in parseSections()
312 error("alignment " + std::to_string(sec.align) + " of section " + name + in parseSections()
317 uint32_t align = 1 << sec.align; in parseSections()
318 ArrayRef<uint8_t> data = {isZeroFill(sec.flags) ? nullptr in parseSections()
319 : buf + sec.offset, in parseSections()
320 static_cast<size_t>(sec.size)}; in parseSections()
335 if (sectionType(sec.flags) == S_CSTRING_LITERALS || in parseSections()
336 (config->dedupLiterals && isWordLiteralSection(sec.flags))) { in parseSections()
337 if (sec.nreloc && config->dedupLiterals) in parseSections()
338 fatal(toString(this) + " contains relocations in " + sec.segname + "," + in parseSections()
339 sec.sectname + in parseSections()
344 if (sectionType(sec.flags) == S_CSTRING_LITERALS) { in parseSections()
421 [](uint64_t value, const Section *sec) { return value < sec->addr; })); in findContainingSection() argument
610 static bool validateRelocationInfo(InputFile *file, const SectionHeader &sec, in validateRelocationInfo() argument
614 auto message = [relocAttrs, file, sec, rel, &valid](const Twine &diagnostic) { in validateRelocationInfo()
617 std::to_string(rel.r_address) + " of " + sec.segname + "," + in validateRelocationInfo()
618 sec.sectname + " in " + toString(file)) in validateRelocationInfo()
627 if (isThreadLocalVariables(sec.flags) && in validateRelocationInfo()
643 const SectionHeader &sec, Section §ion) { in parseRelocations() argument
646 reinterpret_cast<const relocation_info *>(buf + sec.reloff), sec.nreloc); in parseRelocations()
685 if (!validateRelocationInfo(this, sec, relInfo)) in parseRelocations()
690 int64_t embeddedAddend = target->getEmbeddedAddend(mb, sec.offset, relInfo); in parseRelocations()
714 referentOffset = sec.addr + relInfo.r_address + 4 + totalAddend - in parseRelocations()
1123 for (Section *sec : sections) { in parse()
1124 Section **s = StringSwitch<Section **>(sec->name) in parse()
1129 *s = sec; in parse()
1448 Section *sec = findContainingSection(sections, &addr); in findSymbolAtAddress() local
1449 auto *isec = cast<ConcatInputSection>(findContainingSubsection(*sec, &addr)); in findSymbolAtAddress()
1580 Section *sec = findContainingSection(sections, &lsdaAddr); in registerEhFrames() local
1582 cast<ConcatInputSection>(findContainingSubsection(*sec, &lsdaAddr)); in registerEhFrames()