Lines Matching defs:relocation

283 /// readRelocations - read all relocation entries
287 // Bitcode is read by the other path. This function reads relocation sections
597 Relocation* relocation = llvm::cast<Relocation>(reloc);
600 ResolveInfo* info = relocation->symInfo();
606 // scan relocation
609 *relocation, *m_pBuilder, *m_pModule, **rs, **input);
612 *relocation, *m_pModule);
615 } // for all relocation section
774 /// relocate - applying relocation entries and create relocation
776 /// Create relocation section, asking TargetLDBackend to
777 /// read the relocation information into RelocationEntry
778 /// and push_back into the relocation section
779 bool ObjectLinker::relocation() {
780 // when producing relocatables, no need to apply relocation
801 Relocation* relocation = llvm::cast<Relocation>(reloc);
804 ResolveInfo* info = relocation->symInfo();
810 // apply the relocation aginst symbol on DebugString
818 debug_str_sect->getDebugString()->applyOffset(*relocation,
823 relocation->apply(*m_LDBackend.getRelocator());
825 } // for all relocation section
885 Relocation* relocation = llvm::cast<Relocation>(reloc);
888 ResolveInfo* info = relocation->symInfo();
894 // bypass the relocation with NONE type. This is to avoid overwrite the
895 // target result by NONE type relocation if there is a place which has
897 // we want is the value of the other relocation result. For example,
900 if (relocation->type() == 0x0)
902 writeRelocationResult(*relocation, data);
904 } // for all relocation section
941 // bypass the relocation with NONE type. This is to avoid overwrite the
942 // target result by NONE type relocation if there is a place which has
944 // we want is the value of the other relocation result. For example,