Lines Matching +full:apr +full:- +full:v2
1 //===- MapFile.cpp --------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
28 //===----------------------------------------------------------------------===//
54 // locale-agnostic version.
58 constexpr const char *const months[12] = {"Jan", "Feb", "Mar", "Apr",
62 os << format("%s %s %2d %02d:%02d:%02d %d", days[time->tm_wday],
63 months[time->tm_mon], time->tm_mday, time->tm_hour, time->tm_min,
64 time->tm_sec, time->tm_year + 1900);
88 uint64_t rvaa = imageBase + a.first->getRVA();
89 uint64_t rvab = imageBase + b.first->getRVA();
104 for (Symbol *b : file->getSymbols()) {
105 if (!b || !b->isLive())
108 COFFSymbolRef symRef = sym->getCOFFSymbol();
122 if (!file->live)
125 if (!file->thunkSym)
128 if (!file->thunkLive)
131 if (auto *thunkSym = dyn_cast<Defined>(file->thunkSym))
134 if (auto *impSym = dyn_cast_or_null<Defined>(file->impSym))
155 address = absSym->getVA();
158 fileDescr = "<linker-defined>";
161 } else if (Chunk *chunk = sym->getChunk()) {
162 address = sym->getRVA();
164 address -= sec->header.VirtualAddress;
166 sectionIdx = chunk->getOutputSectionIdx();
170 file = impSym->file;
172 file = thunkSym->wrappedSym->file;
174 file = sym->getFile();
177 if (!file->parentName.empty()) {
178 fileDescr = sys::path::filename(file->parentName);
182 fileDescr += sys::path::filename(file->getName());
187 os << left_justify(sym->getName(), 26);
189 os << format_hex_no_prefix((ctx.config.imageBase + sym->getRVA()), 16);
256 for (Chunk *c : sec->chunks) {
262 c->getSectionName() != ChunkRanges.back().first->getSectionName()) {
270 (sec->header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) &&
271 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_READ) &&
272 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE);
277 cr.second->getRVA() + cr.second->getSize() - cr.first->getRVA();
279 auto address = cr.first->getRVA() - sec->header.VirtualAddress;
280 writeHeader(os, sec->sectionIndex, address);
282 os << " " << left_justify(cr.first->getSectionName(), 23);
305 Chunk *chunk = entry->getChunk();
306 entrySecIndex = chunk->getOutputSectionIdx();
308 entry->getRVA() - ctx.getOutputSection(chunk)->header.VirtualAddress;