Lines Matching full:pconfig
44 const LinkerConfig& pConfig)
45 : ObjectWriter(), m_Backend(pBackend), m_Config(pConfig) {
203 void ELFObjectWriter::writeELFHeader(const LinkerConfig& pConfig,
219 pConfig.targets().isLittleEndian()
226 switch (pConfig.codeGenType()) {
237 llvm::errs() << "unspported output file type: " << pConfig.codeGenType()
243 header->e_entry = getEntryPoint(pConfig, pModule);
245 if (LinkerConfig::Object != pConfig.codeGenType())
261 uint64_t ELFObjectWriter::getEntryPoint(const LinkerConfig& pConfig,
267 LinkerConfig::Object != pConfig.codeGenType() &&
268 LinkerConfig::DynObj != pConfig.codeGenType());
299 const LinkerConfig& pConfig,
323 shdr[sectIdx].sh_link = getSectLink(*ld_sect, pConfig);
448 void ELFObjectWriter::emitRelocation(const LinkerConfig& pConfig,
455 if (pConfig.targets().is32Bits())
456 emitRel<32>(pConfig, *sect_data, pRegion);
457 else if (pConfig.targets().is64Bits())
458 emitRel<64>(pConfig, *sect_data, pRegion);
460 fatal(diag::unsupported_bitclass) << pConfig.targets().triple().str()
461 << pConfig.targets().bitclass();
464 if (pConfig.targets().is32Bits())
465 emitRela<32>(pConfig, *sect_data, pRegion);
466 else if (pConfig.targets().is64Bits())
467 emitRela<64>(pConfig, *sect_data, pRegion);
469 fatal(diag::unsupported_bitclass) << pConfig.targets().triple().str()
470 << pConfig.targets().bitclass();
478 void ELFObjectWriter::emitRel(const LinkerConfig& pConfig,
499 if (LinkerConfig::DynObj == pConfig.codeGenType() ||
500 LinkerConfig::Exec == pConfig.codeGenType()) {
520 void ELFObjectWriter::emitRela(const LinkerConfig& pConfig,
541 if (LinkerConfig::DynObj == pConfig.codeGenType() ||
542 LinkerConfig::Exec == pConfig.codeGenType()) {
593 const LinkerConfig& pConfig) const {
605 if (LinkerConfig::Object == pConfig.codeGenType())