Lines Matching +defs:run +defs:s

65         db 'This program cannot be run in DOS mode.$'
208 void run();
223 bool isInRange(uint16_t relType, uint64_t s, uint64_t p, int margin,
351 llvm::TimeTraceScope timeScope("Write output(s)");
352 Writer(ctx).run();
405 bool Writer::isInRange(uint16_t relType, uint64_t s, uint64_t p, int margin,
408 int64_t diff = AbsoluteDifference(s, p + 4) + margin;
419 int64_t diff = AbsoluteDifference(s, p) + margin;
512 uint64_t s = sym->getRVA();
514 if (isInRange(rel.Type, s, p, margin, machine))
531 // To redirect the relocation, add a symbol to the parent object file's
541 // Get a writable copy of this section's relocations so they can be
636 uint64_t s = sym->getRVA();
638 if (!isInRange(rel.Type, s, p, 0, machine))
755 void Writer::run() {
796 // Fix up the alignment in the TLS Directory's characteristic field,
824 StringRef s = name.split('$').first;
828 return s.substr(0, s.find('.', 1));
890 llvm::stable_sort(pSec->chunks, [&](Chunk *s, Chunk *t) {
891 SectionChunk *sc1 = dyn_cast<SectionChunk>(s);
997 // Return whether a SectionChunk's suffix (the dollar and any trailing
1157 auto sectionOrder = [&](const OutputSection *s) {
1161 if (s->header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) {
1165 if (s->name.starts_with(".debug_"))
1172 if (s == rsrcSec)
1177 [&](const OutputSection *s, const OutputSection *t) {
1178 return sectionOrder(s) < sectionOrder(t);
1377 auto isUnused = [this](OutputSection *s) {
1378 if (s == relocSec)
1382 return s->chunks.empty();
1391 auto isEmpty = [](OutputSection *s) { return s->getVirtualSize() == 0; };
1698 // executable consists of an MS-DOS MZ executable. If the executable is run
1699 // under DOS, that program gets run (usually to just print an error message).
1700 // When run under Windows, the loader looks at AddressOfNewExeHeader and uses
1953 // symbol's offset into that Chunk.
1954 static void addSymbolToRVASet(SymbolRVASet &rvaSet, Defined *s) {
1955 Chunk *c = s->getChunk();
1960 uint32_t off = s->getRVA() - (c ? c->getRVA() : 0);
1967 Symbol *s) {
1968 if (!s)
1971 switch (s->kind()) {
1994 addSymbolToRVASet(addressTakenSyms, cast<Defined>(s));
1999 // address taken if the symbol type is function and it's in an executable
2001 auto *d = cast<DefinedRegular>(s);
2095 for (Symbol *s : giatsSymbols) {
2096 if (auto *di = dyn_cast<DefinedImportData>(s)) {
2169 if (Symbol *s = objSymbols[symIndex]) {
2170 if (s->isLive())
2171 symbols.push_back(cast<Symbol>(s));
2185 for (Symbol *s : syms)
2186 addSymbolToRVASet(tableSymbols, cast<Defined>(s));
2216 for (Symbol *s : symtab->expSymbols) {
2217 auto sym = dyn_cast<Defined>(s);
2234 // assume it's a regular function and look for #foo instead.
2317 // There's a symbol pointing to the start sentinel pointer, __CTOR_LIST__
2611 for (OutputSection *s : ctx.outputSections)
2612 if (s->header.Characteristics & IMAGE_SCN_CNT_INITIALIZED_DATA)
2613 res += s->getRawSize();
2672 Symbol *s = ctx.hybridSymtab->findUnderscore("__chpe_metadata");
2673 if (auto chpeSym = cast_or_null<DefinedRegular>(s))
2799 if (auto *s = dyn_cast<DefinedSynthetic>(symtab.findUnderscore(sym))) \
2800 if (loadConfig->field != ctx.config.imageBase + s->getRVA()) \
2804 if (auto *s = dyn_cast<DefinedAbsolute>(symtab.findUnderscore(sym))) \
2805 if (loadConfig->field != s->getVA()) \