Lines Matching full:pinput
54 bool ELFReader<32, true>::readRegularSection(Input& pInput,
56 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset();
59 Fragment* frag = IRBuilder::CreateRegion(pInput, offset, size);
65 bool ELFReader<32, true>::readSymbols(Input& pInput,
82 pInput.context()->addSymbol(LDSymbol::Null());
86 bool is_dyn_obj = (pInput.type() == Input::DynObj);
105 if (pInput.type() == Input::Object && st_shndx < llvm::ELF::SHN_LORESERVE &&
107 if (pInput.context()->getSection(st_shndx) == NULL)
115 ResolveInfo::Desc ld_desc = getSymDesc(st_shndx, pInput);
122 uint64_t ld_value = getSymValue(st_value, st_shndx, pInput);
130 section = pInput.context()->getSection(st_shndx);
142 LDSymbol* psym = pBuilder.AddSymbol(pInput,
204 bool ELFReader<32, true>::readRela(Input& pInput,
222 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
224 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
233 bool ELFReader<32, true>::readRel(Input& pInput,
249 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
251 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
303 bool ELFReader<32, true>::readSectionHeaders(Input& pInput,
343 pInput.memArea()->request(pInput.fileOffset() + shoff, shentsize);
363 pInput.memArea()->request(pInput.fileOffset() + shoff, shnum * shentsize);
378 pInput.memArea()->request(pInput.fileOffset() + sh_offset, sh_size);
406 pInput, sect_name + sh_name, sh_type, sh_flags, sh_addralign);
421 info->section->setLink(pInput.context()->getSection(info->sh_info));
423 info->section->setLink(pInput.context()->getSection(info->sh_link));
431 ResolveInfo* ELFReader<32, true>::readSignature(Input& pInput,
438 uint32_t offset = pInput.fileOffset() + symtab->offset() +
441 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf32_Sym));
459 llvm::StringRef strtab_region = pInput.memArea()->request(
460 pInput.fileOffset() + strtab->offset(), strtab->size());
466 result->setSource(pInput.type() == Input::DynObj);
468 result->setDesc(getSymDesc(st_shndx, pInput));
476 bool ELFReader<32, true>::readDynamic(Input& pInput) const {
477 assert(pInput.type() == Input::DynObj);
478 const LDSection* dynamic_sect = pInput.context()->getSection(".dynamic");
487 llvm::StringRef dynamic_region = pInput.memArea()->request(
488 pInput.fileOffset() + dynamic_sect->offset(), dynamic_sect->size());
490 llvm::StringRef dynstr_region = pInput.memArea()->request(
491 pInput.fileOffset() + dynstr_sect->offset(), dynstr_sect->size());
514 pInput.setName(sys::fs::Path(dynstr + d_val).filename().native());
528 pInput.setName(pInput.path().filename().native());
554 bool ELFReader<64, true>::readRegularSection(Input& pInput,
556 uint64_t offset = pInput.fileOffset() + pSD.getSection().offset();
559 Fragment* frag = IRBuilder::CreateRegion(pInput, offset, size);
565 bool ELFReader<64, true>::readSymbols(Input& pInput,
582 pInput.context()->addSymbol(LDSymbol::Null());
586 bool is_dyn_obj = (pInput.type() == Input::DynObj);
605 if (pInput.type() == Input::Object && st_shndx < llvm::ELF::SHN_LORESERVE &&
607 if (pInput.context()->getSection(st_shndx) == NULL)
615 ResolveInfo::Desc ld_desc = getSymDesc(st_shndx, pInput);
622 uint64_t ld_value = getSymValue(st_value, st_shndx, pInput);
630 section = pInput.context()->getSection(st_shndx);
642 LDSymbol* psym = pBuilder.AddSymbol(pInput,
699 bool ELFReader<64, true>::readRela(Input& pInput,
717 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
719 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
728 bool ELFReader<64, true>::readRel(Input& pInput,
743 LDSymbol* symbol = pInput.context()->getSymbol(r_sym);
745 fatal(diag::err_cannot_read_symbol) << r_sym << pInput.path();
797 bool ELFReader<64, true>::readSectionHeaders(Input& pInput,
837 pInput.memArea()->request(pInput.fileOffset() + shoff, shentsize);
857 pInput.memArea()->request(pInput.fileOffset() + shoff, shnum * shentsize);
872 pInput.memArea()->request(pInput.fileOffset() + sh_offset, sh_size);
900 pInput, sect_name + sh_name, sh_type, sh_flags, sh_addralign);
915 info->section->setLink(pInput.context()->getSection(info->sh_info));
917 info->section->setLink(pInput.context()->getSection(info->sh_link));
925 ResolveInfo* ELFReader<64, true>::readSignature(Input& pInput,
932 uint64_t offset = pInput.fileOffset() + symtab->offset() +
935 pInput.memArea()->request(offset, sizeof(llvm::ELF::Elf64_Sym));
953 llvm::StringRef strtab_region = pInput.memArea()->request(
954 pInput.fileOffset() + strtab->offset(), strtab->size());
960 result->setSource(pInput.type() == Input::DynObj);
962 result->setDesc(getSymDesc(st_shndx, pInput));
970 bool ELFReader<64, true>::readDynamic(Input& pInput) const {
971 assert(pInput.type() == Input::DynObj);
972 const LDSection* dynamic_sect = pInput.context()->getSection(".dynamic");
981 llvm::StringRef dynamic_region = pInput.memArea()->request(
982 pInput.fileOffset() + dynamic_sect->offset(), dynamic_sect->size());
984 llvm::StringRef dynstr_region = pInput.memArea()->request(
985 pInput.fileOffset() + dynstr_sect->offset(), dynstr_sect->size());
1008 pInput.setName(sys::fs::Path(dynstr + d_val).filename().native());
1022 pInput.setName(pInput.path().filename().native());