Lines Matching refs:pModule
51 void ELFObjectWriter::writeSection(Module& pModule, in writeSection() argument
100 emitEhFrame(pModule, *section->getEhFrame(), region); in writeSection()
119 std::error_code ELFObjectWriter::writeObject(Module& pModule, in writeObject() argument
130 target().orderSymbolTable(pModule); in writeObject()
136 target().emitDynNamePools(pModule, pOutput); in writeObject()
141 target().emitRegNamePools(pModule, pOutput); in writeObject()
152 writeSection(pModule, pOutput, *sect); in writeObject()
157 Module::iterator sect, sectEnd = pModule.end(); in writeObject()
158 for (sect = pModule.begin(); sect != sectEnd; ++sect) in writeObject()
159 writeSection(pModule, pOutput, *sect); in writeObject()
161 emitShStrTab(target().getOutputFormat()->getShStrTab(), pModule, pOutput); in writeObject()
166 writeELFHeader<32>(m_Config, pModule, pOutput); in writeObject()
170 emitSectionHeader<32>(pModule, m_Config, pOutput); in writeObject()
174 writeELFHeader<64>(m_Config, pModule, pOutput); in writeObject()
178 emitSectionHeader<64>(pModule, m_Config, pOutput); in writeObject()
188 size_t ELFObjectWriter::getOutputSize(const Module& pModule) const { in getOutputSize()
190 return getLastStartOffset<32>(pModule) + in getOutputSize()
191 sizeof(ELFSizeTraits<32>::Shdr) * pModule.size(); in getOutputSize()
193 return getLastStartOffset<64>(pModule) + in getOutputSize()
194 sizeof(ELFSizeTraits<64>::Shdr) * pModule.size(); in getOutputSize()
204 const Module& pModule, in writeELFHeader() argument
243 header->e_entry = getEntryPoint(pConfig, pModule); in writeELFHeader()
250 header->e_shoff = getLastStartOffset<SIZE>(pModule); in writeELFHeader()
256 header->e_shnum = pModule.size(); in writeELFHeader()
257 header->e_shstrndx = pModule.getSection(".shstrtab")->index(); in writeELFHeader()
262 const Module& pModule) const { in getEntryPoint()
263 llvm::StringRef entry_name = target().getEntry(pModule); in getEntryPoint()
266 bool issue_warning = (pModule.getScript().hasEntry() && in getEntryPoint()
270 const LDSymbol* entry_symbol = pModule.getNamePool().findSymbol(entry_name); in getEntryPoint()
298 void ELFObjectWriter::emitSectionHeader(const Module& pModule, in emitSectionHeader() argument
304 unsigned int sectNum = pModule.size(); in emitSectionHeader()
307 pOutput.request(getLastStartOffset<SIZE>(pModule), header_size); in emitSectionHeader()
314 const LDSection* ld_sect = pModule.getSectionTable().at(sectIdx); in emitSectionHeader()
365 const Module& pModule, in emitShStrTab() argument
371 Module::const_iterator section, sectEnd = pModule.end(); in emitShStrTab()
372 for (section = pModule.begin(); section != sectEnd; ++section) { in emitShStrTab()
401 void ELFObjectWriter::emitEhFrame(Module& pModule, in emitEhFrame() argument
416 LDSection* plt_sect = pModule.getSection(".plt"); in emitEhFrame()
634 uint64_t ELFObjectWriter::getLastStartOffset<32>(const Module& pModule) const { in getLastStartOffset()
635 const LDSection* lastSect = pModule.back(); in getLastStartOffset()
642 uint64_t ELFObjectWriter::getLastStartOffset<64>(const Module& pModule) const { in getLastStartOffset()
643 const LDSection* lastSect = pModule.back(); in getLastStartOffset()