Lines Matching full:off
91 uint64_t InputSection::getVA(uint64_t off) const {
92 return parent->addr + getOffset(off);
106 const Defined *InputSection::getContainingSymbol(uint64_t off) const {
108 symbols, off, [](uint64_t a, const Defined *b) { return a < b->value; });
114 std::string InputSection::getLocation(uint64_t off) const {
117 if (auto *sym = getContainingSymbol(off))
119 Twine::utohexstr(off - sym->value) + ")")
125 off += subsec.offset;
131 Twine::utohexstr(off) + ")")
135 std::string InputSection::getSourceLocation(uint64_t off) const {
146 off += subsec.offset;
161 section.addr + off, object::SectionedAddress::UndefSection))
165 if (const Defined *sym = getContainingSymbol(off)) {
184 const Reloc *InputSection::getRelocAt(uint32_t off) const {
186 relocs, [=](const macho::Reloc &r) { return r.offset == off; });
290 size_t off = 0;
295 fatal(getLocation(off) + ": string is not null terminated");
297 pieces.emplace_back(off, hash);
300 off += size;
304 StringPiece &CStringInputSection::getStringPiece(uint64_t off) {
305 if (off >= data.size())
309 partition_point(pieces, [=](StringPiece p) { return p.inSecOff <= off; });
313 const StringPiece &CStringInputSection::getStringPiece(uint64_t off) const {
314 return const_cast<CStringInputSection *>(this)->getStringPiece(off);
317 size_t CStringInputSection::getStringPieceIndex(uint64_t off) const {
318 if (off >= data.size())
322 partition_point(pieces, [=](StringPiece p) { return p.inSecOff <= off; });
326 uint64_t CStringInputSection::getOffset(uint64_t off) const {
327 const StringPiece &piece = getStringPiece(off);
328 uint64_t addend = off - piece.inSecOff;
353 uint64_t WordLiteralInputSection::getOffset(uint64_t off) const {
358 return osec->getLiteral4Offset(buf + (off & ~3LLU)) | (off & 3);
360 return osec->getLiteral8Offset(buf + (off & ~7LLU)) | (off & 7);
362 return osec->getLiteral16Offset(buf + (off & ~15LLU)) | (off & 15);