Home
last modified time | relevance | path

Searched refs:osec (Results 1 – 9 of 9) sorted by relevance

/external/llvm-project/lld/ELF/
DMapFile.cpp90 OutputSection *osec = syms[i]->getOutputSection(); in getSymbolStrings() local
92 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; in getSymbolStrings()
133 const OutputSection *osec = sec->getOutputSection(); in printEhFrame() local
135 writeHeader(os, osec->addr + p.outputOff, osec->getLMA() + p.outputOff, in printEhFrame()
166 OutputSection* osec = nullptr; in writeMapFile() local
171 uint64_t lma = osec ? osec->getLMA() + cmd->addr - osec->getVA(0) : 0; in writeMapFile()
177 osec = cast<OutputSection>(base); in writeMapFile()
178 writeHeader(os, osec->addr, osec->getLMA(), osec->size, osec->alignment); in writeMapFile()
179 os << osec->name << '\n'; in writeMapFile()
182 for (BaseCommand *base : osec->sectionCommands) { in writeMapFile()
[all …]
DRelocations.cpp599 OutputSection *osec = (isRO ? in.bssRelRo : in.bss)->getParent(); in addCopyRelSymbol() local
603 if (osec->sectionCommands.empty() || in addCopyRelSymbol()
604 !isa<InputSectionDescription>(osec->sectionCommands.back())) in addCopyRelSymbol()
605 osec->sectionCommands.push_back(make<InputSectionDescription>("")); in addCopyRelSymbol()
606 auto *isd = cast<InputSectionDescription>(osec->sectionCommands.back()); in addCopyRelSymbol()
608 osec->commitSection(sec); in addCopyRelSymbol()
DOutputSections.cpp393 if (OutputSection *osec = sections[read32(&idx)]->getOutputSection()) in finalizeShtGroup() local
394 seen.insert(osec->sectionIndex); in finalizeShtGroup()
DInputSection.cpp400 OutputSection *osec = sections[idx]->getOutputSection(); in copyShtGroup() local
401 if (osec && seen.insert(osec->sectionIndex).second) in copyShtGroup()
402 *to++ = osec->sectionIndex; in copyShtGroup()
/external/llvm-project/lld/MachO/
DWriter.cpp169 for (OutputSection *osec : seg->getSections()) { in writeTo()
170 if (!isZeroFill(osec->flags)) { in writeTo()
171 assert(osec->fileOff >= seg->fileOff); in writeTo()
173 c->filesize, osec->fileOff + osec->getFileSize() - seg->fileOff); in writeTo()
176 if (osec->isHidden()) in writeTo()
182 memcpy(sectHdr->sectname, osec->name.data(), osec->name.size()); in writeTo()
185 sectHdr->addr = osec->addr; in writeTo()
186 sectHdr->offset = osec->fileOff; in writeTo()
187 sectHdr->align = Log2_32(osec->align); in writeTo()
188 sectHdr->flags = osec->flags; in writeTo()
[all …]
DOutputSegment.cpp41 for (const OutputSection *osec : sections) { in numNonHiddenSections() local
42 count += (!osec->isHidden() ? 1 : 0); in numNonHiddenSections()
47 void OutputSegment::addOutputSection(OutputSection *osec) { in addOutputSection() argument
48 osec->parent = this; in addOutputSection()
49 sections.push_back(osec); in addOutputSection()
DSyntheticSections.cpp79 for (OutputSection *osec : seg->getSections()) { in writeTo()
80 if (isThreadLocalVariables(osec->flags)) { in writeTo()
130 static void encodeRebase(const OutputSection *osec, uint64_t outSecOff, in encodeRebase() argument
133 OutputSegment *seg = osec->parent; in encodeRebase()
134 uint64_t offset = osec->getSegmentOffset() + outSecOff; in encodeRebase()
174 const auto *osec = loc.section.get<const OutputSection *>(); in finalizeContents() local
175 encodeRebase(osec, loc.offset, lastRebase, os); in finalizeContents()
228 static void encodeBinding(const Symbol *sym, const OutputSection *osec, in encodeBinding() argument
232 OutputSegment *seg = osec->parent; in encodeBinding()
233 uint64_t offset = osec->getSegmentOffset() + outSecOff; in encodeBinding()
[all …]
/external/llvm-project/lld/wasm/
DMapFile.cpp121 for (OutputSection *osec : outputSections) { in writeMapFile()
122 writeHeader(os, -1, osec->getOffset(), osec->getSize()); in writeMapFile()
123 os << toString(*osec) << '\n'; in writeMapFile()
124 if (auto *code = dyn_cast<CodeSection>(osec)) { in writeMapFile()
132 } else if (auto *data = dyn_cast<DataSection>(osec)) { in writeMapFile()
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
Dwildcard-flags.test26 # RUN: llvm-objcopy --strip-all --only-section='.f*' %t.o %t.osec.1.o
27 # RUN: llvm-readobj --sections %t.osec.1.o \