Lines Matching defs:addend
206 void addEntry(InputFile &file, Symbol &sym, int64_t addend, RelExpr expr);
211 int64_t addend) const;
213 int64_t addend) const;
322 // Symbol and addend.
423 /// be nullptr) and uses #addend as the result of computeAddend(ctx).
426 /// only used to compute the addend with InputSection::getRelocTargetVA().
430 /// symbol table and uses #addend as the value of computeAddend(ctx).
433 /// symbol table and uses InputSection::getRelocTargetVA() + #addend for the
434 /// final addend. It can be used for relocations that write the symbol VA as
435 // the addend (e.g. R_MIPS_TLS_TPREL64) but still reference the symbol.
443 uint64_t offsetInSec, Kind kind, Symbol &sym, int64_t addend,
446 addend(addend), kind(kind), expr(expr) {}
449 uint64_t offsetInSec, int64_t addend = 0)
451 addend(addend), kind(AddendOnly), expr(R_ADDEND) {}
456 int64_t addend)
458 offsetInSec(offsetInSec), type(type), addend(addend),
467 /// Computes the addend of the dynamic relocation. Note that this is not the
468 /// same as the #addend member variable as it may also include the symbol
481 // Initially input addend, then the output addend after
483 int64_t addend;
511 /// Add a dynamic relocation without writing an addend to the output section.
517 /// Add a dynamic relocation against \p sym with an optional addend.
519 uint64_t offsetInSec, Symbol &sym, int64_t addend = 0,
522 /// (i.e. InputSection::getRelocTargetVA()) + \p addend as the addend.
528 uint64_t offsetInSec, Symbol &sym, int64_t addend,
530 assert(expr != R_ADDEND && "expected non-addend relocation expression");
532 offsetInSec, sym, addend, expr, addendRelType);
534 /// Add a dynamic relocation using the target address of \p sym as the addend
542 uint64_t offsetInSec, Symbol &sym, int64_t addend, RelExpr expr,
546 if (ctx.arg.writeAddends && (expr != R_ADDEND || addend != 0))
547 sec.addReloc({expr, addendRelType, offsetInSec, addend, &sym});
548 addReloc<shard>({dynType, &sec, offsetInSec, kind, sym, addend, expr});
1374 uint64_t getEntryVA(const Symbol *sym, int64_t addend);
1375 std::optional<uint32_t> addEntry(const Symbol *sym, int64_t addend);