• Home
  • Raw
  • Download

Lines Matching refs:pInput

62 bool ELFObjectReader::isMyFormat(Input& pInput, bool& pContinue) const {  in isMyFormat()  argument
63 assert(pInput.hasMemArea()); in isMyFormat()
68 if (pInput.memArea()->size() < hdr_size) in isMyFormat()
72 pInput.memArea()->request(pInput.fileOffset(), hdr_size); in isMyFormat()
93 bool ELFObjectReader::readHeader(Input& pInput) { in readHeader() argument
94 assert(pInput.hasMemArea()); in readHeader()
97 if (pInput.memArea()->size() < hdr_size) in readHeader()
101 pInput.memArea()->request(pInput.fileOffset(), hdr_size); in readHeader()
103 m_Backend.mergeFlags(pInput, ELF_hdr); in readHeader()
104 bool result = m_pELFReader->readSectionHeaders(pInput, ELF_hdr); in readHeader()
109 bool ELFObjectReader::readSections(Input& pInput) { in readSections() argument
111 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd(); in readSections()
112 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) { in readSections()
122 pInput, *(*section)->getLink(), (*section)->getInfo()); in readSections()
137 llvm::StringRef region = pInput.memArea()->request( in readSections()
138 pInput.fileOffset() + (*section)->offset(), (*section)->size()); in readSections()
145 pInput.context()->getSection(value[index])->setKind( in readSections()
167 if (!m_pELFReader->readRegularSection(pInput, *sd)) in readSections()
176 if (!m_pELFReader->readRegularSection(pInput, *sd)) in readSections()
188 LDSection* link_sect = pInput.context()->getSection(link_index); in readSections()
208 if (!m_pELFReader->readRegularSection(pInput, *sd)) in readSections()
218 if (!m_pELFReader->readRegularSection(pInput, *sd)) { in readSections()
230 if (!m_pEhFrameReader->read<32, true>(pInput, *eh_frame)) { in readSections()
236 if (!m_pELFReader->readRegularSection(pInput, in readSections()
246 if (!m_Backend.readSection(pInput, *sd)) { in readSections()
266 << (*section)->name() << pInput.name() << pInput.path(); in readSections()
276 bool ELFObjectReader::readSymbols(Input& pInput) { in readSymbols() argument
277 assert(pInput.hasMemArea()); in readSymbols()
279 LDSection* symtab_shdr = pInput.context()->getSection(".symtab"); in readSymbols()
281 note(diag::note_has_no_symtab) << pInput.name() << pInput.path() in readSymbols()
288 fatal(diag::fatal_cannot_read_strtab) << pInput.name() << pInput.path() in readSymbols()
293 llvm::StringRef symtab_region = pInput.memArea()->request( in readSymbols()
294 pInput.fileOffset() + symtab_shdr->offset(), symtab_shdr->size()); in readSymbols()
295 llvm::StringRef strtab_region = pInput.memArea()->request( in readSymbols()
296 pInput.fileOffset() + strtab_shdr->offset(), strtab_shdr->size()); in readSymbols()
299 m_pELFReader->readSymbols(pInput, m_Builder, symtab_region, strtab); in readSymbols()
303 bool ELFObjectReader::readRelocations(Input& pInput) { in readRelocations() argument
304 assert(pInput.hasMemArea()); in readRelocations()
306 MemoryArea* mem = pInput.memArea(); in readRelocations()
307 LDContext::sect_iterator rs, rsEnd = pInput.context()->relocSectEnd(); in readRelocations()
308 for (rs = pInput.context()->relocSectBegin(); rs != rsEnd; ++rs) { in readRelocations()
312 uint32_t offset = pInput.fileOffset() + (*rs)->offset(); in readRelocations()
319 if (!m_pELFReader->readRela(pInput, **rs, region)) { in readRelocations()
325 if (!m_pELFReader->readRel(pInput, **rs, region)) { in readRelocations()