Lines Matching defs:pInput

57 ELFReader<32, true>::readRegularSection(Input& pInput, SectionData& pSD) const
59 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset();
62 Fragment* frag = IRBuilder::CreateRegion(pInput, offset, size);
68 bool ELFReader<32, true>::readSymbols(Input& pInput,
86 pInput.context()->addSymbol(LDSymbol::Null());
90 bool is_dyn_obj = (pInput.type()==Input::DynObj);
110 if (pInput.type() == Input::Object &&
113 if (NULL == pInput.context()->getSection(st_shndx))
121 ResolveInfo::Desc ld_desc = getSymDesc(st_shndx, pInput);
127 uint64_t ld_value = getSymValue(st_value, st_shndx, pInput);
135 section = pInput.context()->getSection(st_shndx);
148 LDSymbol* psym = pBuilder.AddSymbol(pInput,
213 bool ELFReader<32, true>::readRela(Input& pInput,
230 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
232 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
241 bool ELFReader<32, true>::readRel(Input& pInput,
258 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
260 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
315 bool ELFReader<32, true>::readSectionHeaders(Input& pInput,
356 shdr_region = pInput.memArea()->request(pInput.fileOffset() + shoff,
377 shdr_region = pInput.memArea()->request(pInput.fileOffset() + shoff,
393 llvm::StringRef sect_name_region = pInput.memArea()->request(
394 pInput.fileOffset() + sh_offset, sh_size);
422 LDSection* section = IRBuilder::CreateELFHeader(pInput,
441 info->section->setLink(pInput.context()->getSection(info->sh_info));
443 info->section->setLink(pInput.context()->getSection(info->sh_link));
451 ResolveInfo* ELFReader<32, true>::readSignature(Input& pInput,
459 uint32_t offset = pInput.fileOffset() + symtab->offset() +
462 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf32_Sym));
481 llvm::StringRef strtab_region = pInput.memArea()->request(
482 pInput.fileOffset() + strtab->offset(), strtab->size());
488 result->setSource(pInput.type() == Input::DynObj);
490 result->setDesc(getSymDesc(st_shndx, pInput));
498 bool ELFReader<32, true>::readDynamic(Input& pInput) const
500 assert(pInput.type() == Input::DynObj);
501 const LDSection* dynamic_sect = pInput.context()->getSection(".dynamic");
510 llvm::StringRef dynamic_region = pInput.memArea()->request(
511 pInput.fileOffset() + dynamic_sect->offset(), dynamic_sect->size());
513 llvm::StringRef dynstr_region = pInput.memArea()->request(
514 pInput.fileOffset() + dynstr_sect->offset(), dynstr_sect->size());
538 pInput.setName(sys::fs::Path(dynstr + d_val).filename().native());
552 pInput.setName(pInput.path().filename().native());
582 ELFReader<64, true>::readRegularSection(Input& pInput, SectionData& pSD) const
584 uint64_t offset = pInput.fileOffset() + pSD.getSection().offset();
587 Fragment* frag = IRBuilder::CreateRegion(pInput, offset, size);
593 bool ELFReader<64, true>::readSymbols(Input& pInput,
611 pInput.context()->addSymbol(LDSymbol::Null());
615 bool is_dyn_obj = (pInput.type()==Input::DynObj);
635 if (pInput.type() == Input::Object &&
638 if (NULL == pInput.context()->getSection(st_shndx))
646 ResolveInfo::Desc ld_desc = getSymDesc(st_shndx, pInput);
652 uint64_t ld_value = getSymValue(st_value, st_shndx, pInput);
660 section = pInput.context()->getSection(st_shndx);
673 LDSymbol* psym = pBuilder.AddSymbol(pInput,
733 bool ELFReader<64, true>::readRela(Input& pInput,
752 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
754 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
763 bool ELFReader<64, true>::readRel(Input& pInput,
779 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
781 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
836 bool ELFReader<64, true>::readSectionHeaders(Input& pInput,
877 shdr_region = pInput.memArea()->request(pInput.fileOffset() + shoff,
898 shdr_region = pInput.memArea()->request(pInput.fileOffset() + shoff,
914 llvm::StringRef sect_name_region = pInput.memArea()->request(
915 pInput.fileOffset() + sh_offset, sh_size);
943 LDSection* section = IRBuilder::CreateELFHeader(pInput,
962 info->section->setLink(pInput.context()->getSection(info->sh_info));
964 info->section->setLink(pInput.context()->getSection(info->sh_link));
972 ResolveInfo* ELFReader<64, true>::readSignature(Input& pInput,
980 uint64_t offset = pInput.fileOffset() + symtab->offset() +
983 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf64_Sym));
1002 llvm::StringRef strtab_region = pInput.memArea()->request(
1003 pInput.fileOffset() + strtab->offset(), strtab->size());
1009 result->setSource(pInput.type() == Input::DynObj);
1011 result->setDesc(getSymDesc(st_shndx, pInput));
1019 bool ELFReader<64, true>::readDynamic(Input& pInput) const
1021 assert(pInput.type() == Input::DynObj);
1022 const LDSection* dynamic_sect = pInput.context()->getSection(".dynamic");
1031 llvm::StringRef dynamic_region = pInput.memArea()->request(
1032 pInput.fileOffset() + dynamic_sect->offset(), dynamic_sect->size());
1034 llvm::StringRef dynstr_region = pInput.memArea()->request(
1035 pInput.fileOffset() + dynstr_sect->offset(), dynstr_sect->size());
1059 pInput.setName(sys::fs::Path(dynstr + d_val).filename().native());
1073 pInput.setName(pInput.path().filename().native());