• Home
  • Raw
  • Download

Lines Matching refs:pInput

60 bool ELFObjectReader::isMyFormat(Input &pInput) const  in isMyFormat()
62 assert(pInput.hasMemArea()); in isMyFormat()
67 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in isMyFormat()
80 pInput.memArea()->release(region); in isMyFormat()
85 bool ELFObjectReader::readHeader(Input& pInput) in readHeader() argument
87 assert(pInput.hasMemArea()); in readHeader()
90 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in readHeader()
93 bool result = m_pELFReader->readSectionHeaders(pInput, ELF_hdr); in readHeader()
94 pInput.memArea()->release(region); in readHeader()
99 bool ELFObjectReader::readSections(Input& pInput) in readSections() argument
102 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd(); in readSections()
103 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) { in readSections()
113 m_pELFReader->readSignature(pInput, in readSections()
130 MemoryRegion* region = pInput.memArea()->request( in readSections()
131 pInput.fileOffset() + (*section)->offset(), (*section)->size()); in readSections()
138 pInput.context()->getSection(value[index])->setKind(LDFileFormat::Ignore); in readSections()
141 pInput.memArea()->release(region); in readSections()
150 LDSection* link_sect = pInput.context()->getSection(link_index); in readSections()
169 if (!m_pELFReader->readRegularSection(pInput, *sd)) in readSections()
179 if (!m_pELFReader->readRegularSection(pInput, *sd)) { in readSections()
192 if (!m_pEhFrameReader->read<32, true>(pInput, *eh_frame)) { in readSections()
199 if (!m_pELFReader->readRegularSection(pInput, in readSections()
209 if (!m_Backend.readSection(pInput, *sd)) { in readSections()
229 << pInput.name() in readSections()
230 << pInput.path(); in readSections()
240 bool ELFObjectReader::readSymbols(Input& pInput) in readSymbols() argument
242 assert(pInput.hasMemArea()); in readSymbols()
244 LDSection* symtab_shdr = pInput.context()->getSection(".symtab"); in readSymbols()
246 note(diag::note_has_no_symtab) << pInput.name() in readSymbols()
247 << pInput.path() in readSymbols()
254 fatal(diag::fatal_cannot_read_strtab) << pInput.name() in readSymbols()
255 << pInput.path() in readSymbols()
260 MemoryRegion* symtab_region = pInput.memArea()->request( in readSymbols()
261 pInput.fileOffset() + symtab_shdr->offset(), symtab_shdr->size()); in readSymbols()
262 MemoryRegion* strtab_region = pInput.memArea()->request( in readSymbols()
263 pInput.fileOffset() + strtab_shdr->offset(), strtab_shdr->size()); in readSymbols()
265 bool result = m_pELFReader->readSymbols(pInput, in readSymbols()
269 pInput.memArea()->release(symtab_region); in readSymbols()
270 pInput.memArea()->release(strtab_region); in readSymbols()
274 bool ELFObjectReader::readRelocations(Input& pInput) in readRelocations() argument
276 assert(pInput.hasMemArea()); in readRelocations()
278 MemoryArea* mem = pInput.memArea(); in readRelocations()
279 LDContext::sect_iterator rs, rsEnd = pInput.context()->relocSectEnd(); in readRelocations()
280 for (rs = pInput.context()->relocSectBegin(); rs != rsEnd; ++rs) { in readRelocations()
284 uint32_t offset = pInput.fileOffset() + (*rs)->offset(); in readRelocations()
290 if (!m_pELFReader->readRela(pInput, **rs, *region)) { in readRelocations()
297 if (!m_pELFReader->readRel(pInput, **rs, *region)) { in readRelocations()