Lines Matching defs:segment

63   bool needsPassiveInitialization(const OutputSegment *segment);
619 auto isTLS = [](InputChunk *segment) {
620 return segment->live && segment->isTLS();
1000 // We always merge .tbss and .tdata into a single TLS segment so all TLS
1018 LLVM_DEBUG(dbgs() << "new segment: " << name << "\n");
1030 for (InputChunk *segment : file->segments) {
1031 if (!segment->live)
1033 StringRef name = getOutputDataSegmentName(*segment);
1038 if (ctx.arg.relocatable && !segment->getComdatName().empty()) {
1045 s->addInputSegment(segment);
1073 // With PIC code we currently only support a single active data segment since
1075 // combines all data segments into a single .data segment.
1096 LLVM_DEBUG(dbgs() << "added input segment. name=" << inSeg->name
1117 bool Writer::needsPassiveInitialization(const OutputSegment *segment) {
1120 if (ctx.arg.memoryImport.has_value() && !segment->requiredInBinary())
1122 return segment->initFlags & WASM_DATA_SEGMENT_IS_PASSIVE;
1167 auto hasTLSRelocs = [](const OutputSegment *segment) {
1168 if (segment->isTLS())
1169 for (const auto* is: segment->inputSegments)
1334 // When we initialize the TLS segment we also set the `__tls_base`
1361 writeI32Const(os, 0, "source segment offset");
1365 writeUleb128(os, s->index, "segment index immediate");
1415 writeUleb128(os, s->index, "segment index immediate");
1475 // Function that applies relocations to data segment post-instantiation.
1628 writeI32Const(os, 0, "segment offset");
1634 writeUleb128(os, tlsSeg->index, "segment index immediate");
1749 // When outputting PIC code each segment lives at at fixes offset from the