Lines Matching refs:pArchive
93 Archive& pArchive) in readArchive() argument
96 if (Archive::MAGIC_LEN == pArchive.getARFile().memArea()->size()) in readArchive()
99 if (pArchive.getARFile().attribute()->isWholeArchive()) in readArchive()
100 return includeAllMembers(pConfig, pArchive); in readArchive()
103 if (pArchive.getSymbolTable().empty()) { in readArchive()
105 readSymbolTable(pArchive); in readArchive()
108 readStringTable(pArchive); in readArchive()
111 pArchive.addArchiveMember(pArchive.getARFile().name(), in readArchive()
112 pArchive.inputs().root(), in readArchive()
120 for (size_t idx = 0; idx < pArchive.numOfSymbols(); ++idx) { in readArchive()
122 if (Archive::Symbol::Unknown != pArchive.getSymbolStatus(idx)) in readArchive()
126 if (pArchive.hasObjectMember(pArchive.getObjFileOffset(idx))) { in readArchive()
127 pArchive.setSymbolStatus(idx, Archive::Symbol::Include); in readArchive()
133 shouldIncludeSymbol(pArchive.getSymbolName(idx)); in readArchive()
135 pArchive.setSymbolStatus(idx, status); in readArchive()
139 includeMember(pConfig, pArchive, pArchive.getObjFileOffset(idx)); in readArchive()
243 static void readSymbolTableEntries(Archive& pArchive, llvm::StringRef pMemRegion) in readSymbolTableEntries() argument
263 pArchive.addSymbol(name, mcld::bswap<SIZE>(*data)); in readSymbolTableEntries()
265 pArchive.addSymbol(name, *data); in readSymbolTableEntries()
272 bool GNUArchiveReader::readSymbolTable(Archive& pArchive) in readSymbolTable() argument
274 assert(pArchive.getARFile().hasMemArea()); in readSymbolTable()
277 pArchive.getARFile().memArea()->request((pArchive.getARFile().fileOffset() + in readSymbolTable()
285 pArchive.setSymTabSize(symtab_size); in readSymbolTable()
287 if (!pArchive.getARFile().attribute()->isWholeArchive()) { in readSymbolTable()
288 llvm::StringRef symtab_region = pArchive.getARFile().memArea()->request( in readSymbolTable()
289 (pArchive.getARFile().fileOffset() + in readSymbolTable()
296 readSymbolTableEntries<32>(pArchive, symtab_region); in readSymbolTable()
299 readSymbolTableEntries<64>(pArchive, symtab_region); in readSymbolTable()
308 bool GNUArchiveReader::readStringTable(Archive& pArchive) in readStringTable() argument
312 pArchive.getSymTabSize(); in readStringTable()
317 assert(pArchive.getARFile().hasMemArea()); in readStringTable()
320 pArchive.getARFile().memArea()->request((pArchive.getARFile().fileOffset() + in readStringTable()
332 pArchive.getARFile().memArea()->request( in readStringTable()
333 (pArchive.getARFile().fileOffset() + in readStringTable()
337 pArchive.getStrTable().assign(strtab, strtab_size); in readStringTable()
365 Archive& pArchive, in includeMember() argument
368 Input* cur_archive = &(pArchive.getARFile()); in includeMember()
376 member = readMemberHeader(pArchive, in includeMember()
391 pArchive.getArchiveMember(cur_archive->name()); in includeMember()
394 pArchive.inputs().insert(parent->lastPos, *(parent->move), *member); in includeMember()
405 if (pArchive.getARFile().noExport()) { in includeMember()
408 pArchive.addObjectMember(pFileOffset, parent->lastPos); in includeMember()
418 pArchive.addArchiveMember(member->name(), in includeMember()
435 Archive& pArchive) in includeAllMembers() argument
438 readSymbolTable(pArchive); in includeAllMembers()
441 readStringTable(pArchive); in includeAllMembers()
444 pArchive.addArchiveMember(pArchive.getARFile().name(), in includeAllMembers()
445 pArchive.inputs().root(), in includeAllMembers()
448 bool isThinAR = isThinArchive(pArchive.getARFile()); in includeAllMembers()
449 uint32_t begin_offset = pArchive.getARFile().fileOffset() + in includeAllMembers()
452 pArchive.getSymTabSize(); in includeAllMembers()
453 if (pArchive.hasStrTable()) { in includeAllMembers()
457 pArchive.getStrTable().size(); in includeAllMembers()
459 uint32_t end_offset = pArchive.getARFile().memArea()->size(); in includeAllMembers()
464 size_t size = includeMember(pConfig, pArchive, offset); in includeAllMembers()