/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64Relocator.cpp | 34 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc, 156 AArch64Relocator::scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument 159 ResolveInfo* rsym = pReloc.symInfo(); 160 switch(pReloc.type()) { 171 *pReloc.targetRef().frag(), 172 pReloc.targetRef().offset(), 175 getRelRelMap().record(pReloc, reloc); 187 *pReloc.targetRef().frag(), 188 pReloc.targetRef().offset(), pReloc 218 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 377 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument 413 none(Relocation& pReloc, AArch64Relocator& pParent) argument 418 unsupport(Relocation& pReloc, AArch64Relocator& pParent) argument 426 abs(Relocation& pReloc, AArch64Relocator& pParent) argument 474 rel(Relocation& pReloc, AArch64Relocator& pParent) argument 508 add_abs_lo12(Relocation& pReloc, AArch64Relocator& pParent) argument 523 adr_prel_pg_hi21(Relocation& pReloc, AArch64Relocator& pParent) argument 543 call(Relocation& pReloc, AArch64Relocator& pParent) argument 574 condbr(Relocation& pReloc, AArch64Relocator& pParent) argument 605 adr_got_page(Relocation& pReloc, AArch64Relocator& pParent) argument 632 ld64_got_lo12(Relocation& pReloc, AArch64Relocator& pParent) argument 663 ldst_abs_lo12(Relocation& pReloc, AArch64Relocator& pParent) argument [all...] |
H A D | AArch64Relocator.h | 114 void scanRelocation(Relocation& pReloc, 121 void scanLocalReloc(Relocation& pReloc, const LDSection& pSection); 123 void scanGlobalReloc(Relocation& pReloc,
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMRelocator.cpp | 28 static Relocator::DWord getThumbBit(const Relocation& pReloc) argument 33 ((!pReloc.symInfo()->isUndef() || pReloc.symInfo()->isDyn()) && 34 (pReloc.symInfo()->type() == ResolveInfo::Function) && 35 ((pReloc.symValue() & 0x1) != 0))? 91 ARMGOTEntry& helper_GOT_init(Relocation& pReloc, argument 96 ResolveInfo* rsym = pReloc.symInfo(); 143 ARMPLT1& helper_PLT_init(Relocation& pReloc, ARMRelocator& pParent) argument 146 ResolveInfo* rsym = pReloc.symInfo(); 168 // its FragmentRef to pReloc 171 helper_DynRel_init(Relocation& pReloc, Relocator::Type pType, ARMRelocator& pParent) argument 487 scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument 582 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 795 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument 833 none(Relocation& pReloc, ARMRelocator& pParent) argument 839 abs32(Relocation& pReloc, ARMRelocator& pParent) argument 876 rel32(Relocation& pReloc, ARMRelocator& pParent) argument 901 base_prel(Relocation& pReloc, ARMRelocator& pParent) argument 910 gotoff32(Relocation& pReloc, ARMRelocator& pParent) argument 924 got_brel(Relocation& pReloc, ARMRelocator& pParent) argument 943 got_prel(Relocation& pReloc, ARMRelocator& pParent) argument 963 thm_jump8(Relocation& pReloc, ARMRelocator& pParent) argument 982 thm_jump11(Relocation& pReloc, ARMRelocator& pParent) argument 1001 thm_jump19(Relocation& pReloc, ARMRelocator& pParent) argument 1046 call(Relocation& pReloc, ARMRelocator& pParent) argument 1102 thm_call(Relocation& pReloc, ARMRelocator& pParent) argument 1174 movw_abs_nc(Relocation& pReloc, ARMRelocator& pParent) argument 1204 movw_prel_nc(Relocation& pReloc, ARMRelocator& pParent) argument 1224 movt_abs(Relocation& pReloc, ARMRelocator& pParent) argument 1250 movt_prel(Relocation& pReloc, ARMRelocator& pParent) argument 1264 thm_movw_abs_nc(Relocation& pReloc, ARMRelocator& pParent) argument 1299 thm_movw_prel_nc(Relocation& pReloc, ARMRelocator& pParent) argument 1324 thm_movw_brel(Relocation& pReloc, ARMRelocator& pParent) argument 1349 thm_movt_abs(Relocation& pReloc, ARMRelocator& pParent) argument 1386 thm_movt_prel(Relocation& pReloc, ARMRelocator& pParent) argument 1408 prel31(Relocation& pReloc, ARMRelocator& pParent) argument 1434 tls(Relocation& pReloc, ARMRelocator& pParent) argument 1439 unsupport(Relocation& pReloc, ARMRelocator& pParent) argument [all...] |
H A D | ARMRelocator.h | 95 void scanRelocation(Relocation& pReloc, 104 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const; 107 void scanLocalReloc(Relocation& pReloc, const LDSection& pSection); 109 void scanGlobalReloc(Relocation& pReloc, 113 void checkValidReloc(Relocation& pReloc) const;
|
H A D | ARMToARMStub.cpp | 64 bool ARMToARMStub::isMyDuty(const class Relocation& pReloc, argument 71 switch (pReloc.type()) { 77 uint64_t dest = pTargetSymValue + pReloc.addend() + 8u;
|
H A D | ARMToTHMStub.cpp | 66 bool ARMToTHMStub::isMyDuty(const class Relocation& pReloc, argument 73 switch (pReloc.type()) { 77 uint64_t dest = pTargetSymValue + pReloc.addend() + 8u;
|
H A D | THMToARMStub.cpp | 72 bool THMToARMStub::isMyDuty(const class Relocation& pReloc, argument 79 switch (pReloc.type()) { 83 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
|
H A D | THMToTHMStub.cpp | 74 bool THMToTHMStub::isMyDuty(const class Relocation& pReloc, argument 81 switch (pReloc.type()) { 85 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
|
H A D | ARMToARMStub.h | 36 bool isMyDuty(const class Relocation& pReloc,
|
H A D | ARMToTHMStub.h | 36 bool isMyDuty(const class Relocation& pReloc,
|
H A D | THMToARMStub.h | 35 bool isMyDuty(const class Relocation& pReloc,
|
H A D | THMToTHMStub.h | 35 bool isMyDuty(const class Relocation& pReloc,
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsRelocator.cpp | 185 MipsRelocator::applyRelocation(Relocation& pReloc) argument 190 if (NULL == m_CurrentLo16Reloc && isPostponed(pReloc)) { 191 postponeRelocation(pReloc); 195 for (MipsRelocationInfo info(pReloc, isRel()); 208 pReloc.target() &= ~mask; 209 pReloc.target() |= info.result() & mask; 226 void MipsRelocator::scanRelocation(Relocation& pReloc, argument 233 ResolveInfo* rsym = pReloc.symInfo(); 245 for (MipsRelocationInfo info(pReloc, isRel()); 256 getTarget().addNonPICBranchSym(pReloc 291 scanLocalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 376 scanGlobalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 562 postponeRelocation(Relocation& pReloc) argument 613 getLocalGOTEntry(MipsRelocationInfo& pReloc, Relocation::DWord entryValue) argument 642 getGlobalGOTEntry(MipsRelocationInfo& pReloc) argument 670 getGOTOffset(MipsRelocationInfo& pReloc) argument 689 createDynRel(MipsRelocationInfo& pReloc) argument 795 none(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 802 abs32(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 833 rel26(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 857 hi16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 881 lo16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 907 gprel16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 928 got16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 951 gothi16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 964 gotlo16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 974 sub(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 986 call16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 995 gprel32(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1010 abs64(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1041 gotdisp(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1050 gotoff(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1058 jalr(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1065 la25lui(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1076 la25j(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1087 la25add(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1096 pc32(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument 1102 unsupport(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument [all...] |
H A D | MipsRelocator.h | 40 void scanRelocation(Relocation& pReloc, 62 Result applyRelocation(Relocation& pReloc); 75 void postponeRelocation(Relocation& pReloc); 82 bool isGpDisp(const Relocation& pReloc) const; 93 Fragment& getLocalGOTEntry(MipsRelocationInfo& pReloc, 98 Fragment& getGlobalGOTEntry(MipsRelocationInfo& pReloc); 101 Address getGOTOffset(MipsRelocationInfo& pReloc); 104 void createDynRel(MipsRelocationInfo& pReloc); 142 void scanLocalReloc(MipsRelocationInfo& pReloc, 146 void scanGlobalReloc(MipsRelocationInfo& pReloc, [all...] |
H A D | MipsLA25Stub.cpp | 62 bool MipsLA25Stub::isMyDuty(const Relocation& pReloc, argument 66 if (llvm::ELF::R_MIPS_26 != pReloc.type()) 69 const ResolveInfo* rsym = pReloc.symInfo();
|
/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86Relocator.cpp | 66 X86_32GOTEntry& helper_GOT_init(Relocation& pReloc, argument 71 ResolveInfo* rsym = pReloc.symInfo(); 105 Relocator::Address helper_get_GOT_address(Relocation& pReloc, argument 108 X86_32GOTEntry* got_entry = pParent.getSymGOTMap().lookUp(*pReloc.symInfo()); 114 PLTEntryBase& helper_PLT_init(Relocation& pReloc, X86_32Relocator& pParent) argument 117 ResolveInfo* rsym = pReloc.symInfo(); 152 typedef Relocator::Result (*X86_32ApplyFunctionType)(Relocation& pReloc, 180 void X86Relocator::scanRelocation(Relocation& pReloc, argument 189 ResolveInfo* rsym = pReloc.symInfo(); 200 scanLocalReloc(pReloc, pLinke 343 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 551 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 816 convertTLSIEtoLE(Relocation& pReloc, LDSection& pSection) argument 874 none(Relocation& pReloc, X86_32Relocator& pParent) argument 882 abs(Relocation& pReloc, X86_32Relocator& pParent) argument 923 rel(Relocation& pReloc, X86_32Relocator& pParent) argument 959 gotoff32(Relocation& pReloc, X86_32Relocator& pParent) argument 970 gotpc32(Relocation& pReloc, X86_32Relocator& pParent) argument 980 got32(Relocation& pReloc, X86_32Relocator& pParent) argument 1002 plt32(Relocation& pReloc, X86_32Relocator& pParent) argument 1017 tls_gd(Relocation& pReloc, X86_32Relocator& pParent) argument 1049 tls_ldm(Relocation& pReloc, X86_32Relocator& pParent) argument 1065 tls_ldo_32(Relocation& pReloc, X86_32Relocator& pParent) argument 1075 tls_ie(Relocation& pReloc, X86_32Relocator& pParent) argument 1096 tls_gotie(Relocation& pReloc, X86_32Relocator& pParent) argument 1117 tls_le(Relocation& pReloc, X86_32Relocator& pParent) argument 1135 unsupport(Relocation& pReloc, X86_32Relocator& pParent) argument 1180 helper_GOT_init(Relocation& pReloc, bool pHasRel, X86_64Relocator& pParent) argument 1221 helper_get_GOT_address(Relocation& pReloc, X86_64Relocator& pParent) argument 1239 helper_PLT_init(Relocation& pReloc, X86_64Relocator& pParent) argument 1351 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 1426 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 1573 none(Relocation& pReloc, X86_64Relocator& pParent) argument 1582 abs(Relocation& pReloc, X86_64Relocator& pParent) argument 1630 signed32(Relocation& pReloc, X86_64Relocator& pParent) argument 1661 gotpcrel(Relocation& pReloc, X86_64Relocator& pParent) argument 1687 plt32(Relocation& pReloc, X86_64Relocator& pParent) argument 1704 rel(Relocation& pReloc, X86_64Relocator& pParent) argument 1743 unsupport(Relocation& pReloc, X86_64Relocator& pParent) argument [all...] |
H A D | X86Relocator.h | 84 void scanRelocation(Relocation& pReloc, 103 virtual void scanLocalReloc(Relocation& pReloc, 108 virtual void scanGlobalReloc(Relocation& pReloc, 156 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const; 159 void scanLocalReloc(Relocation& pReloc, 164 void scanGlobalReloc(Relocation& pReloc, 171 void convertTLSIEtoLE(Relocation& pReloc, LDSection& pSection); 216 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const; 219 void scanLocalReloc(Relocation& pReloc, 224 void scanGlobalReloc(Relocation& pReloc, [all...] |
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonRelocator.cpp | 54 static HexagonGOTEntry &helper_GOT_init(Relocation &pReloc, argument 58 ResolveInfo *rsym = pReloc.symInfo(); 92 static PLTEntryBase &helper_PLT_init(Relocation &pReloc, argument 95 ResolveInfo *rsym = pReloc.symInfo(); 128 typedef Relocator::Result (*ApplyFunctionType)(Relocation &pReloc, 193 void HexagonRelocator::scanRelocation(Relocation &pReloc, IRBuilder &pLinker, argument 199 ResolveInfo *rsym = pReloc.symInfo(); 211 scanLocalReloc(pReloc, pLinker, pModule, pSection); 213 scanGlobalReloc(pReloc, pLinker, pModule, pSection); 218 issueUndefRef(pReloc, pSectio 230 scanLocalReloc(Relocation &pReloc, IRBuilder &pBuilder, Module &pModule, LDSection &pSection) argument 279 scanGlobalReloc(Relocation &pReloc, IRBuilder &pBuilder, Module &pModule, LDSection &pSection) argument 458 partialScanRelocation(Relocation &pReloc, Module &pModule, const LDSection &pSection) argument 483 none(Relocation &pReloc, HexagonRelocator &pParent) argument 490 applyAbs(Relocation &pReloc) argument 569 applyRel(Relocation &pReloc, int64_t pResult) argument 680 relocAbs(Relocation &pReloc, HexagonRelocator &pParent) argument 720 relocPCREL(Relocation &pReloc, HexagonRelocator &pParent) argument 752 relocGPREL(Relocation &pReloc, HexagonRelocator &pParent) argument 802 relocPLTB22PCREL(Relocation &pReloc, HexagonRelocator &pParent) argument 820 relocGOT(Relocation &pReloc, HexagonRelocator &pParent) argument 899 relocGOTREL(Relocation &pReloc, HexagonRelocator &pParent) argument 950 unsupport(Relocation &pReloc, HexagonRelocator &pParent) argument [all...] |
H A D | HexagonRelocator.h | 82 void scanRelocation(Relocation& pReloc, 89 void partialScanRelocation(Relocation& pReloc, 128 virtual void scanLocalReloc(Relocation& pReloc, 133 virtual void scanGlobalReloc(Relocation& pReloc,
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | StubFactory.cpp | 39 Stub* StubFactory::create(Relocation& pReloc, argument 46 Stub* prototype = findPrototype(pReloc, pReloc.place(), pTargetSymValue); 48 const Fragment* frag = pReloc.targetRef().frag(); 59 stub = islands.second->findStub(prototype, pReloc); 64 pReloc.setSymInfo(stub->symInfo()); 67 stub = islands.first->findStub(prototype, pReloc); 70 pReloc.setSymInfo(stub->symInfo()); 77 name.append(pReloc.symInfo()->name()) 104 reloc->setSymInfo(pReloc 121 findPrototype(const Relocation& pReloc, uint64_t pSource, uint64_t pTargetSymValue) argument [all...] |
H A D | Relocator.cpp | 30 void Relocator::partialScanRelocation(Relocation& pReloc, argument 35 if (pReloc.symInfo()->type() == ResolveInfo::Section) { 36 LDSymbol* input_sym = pReloc.symInfo()->outSymbol(); 41 pReloc.target() += offset; 50 pReloc.setSymInfo(sym_info); 54 void Relocator::issueUndefRef(Relocation& pReloc, argument 58 FragmentRef::Offset undef_sym_pos = pReloc.targetRef().offset(); 62 std::string reloc_sym(pReloc.symInfo()->name());
|
H A D | BranchIsland.cpp | 98 Stub* BranchIsland::findStub(const Stub* pPrototype, const Relocation& pReloc) argument 100 Key key(pPrototype, pReloc.symInfo()->outSymbol(), pReloc.addend()); 111 const Relocation& pReloc, 115 Key key(pPrototype, pReloc.symInfo()->outSymbol(), pReloc.addend()); 143 bool BranchIsland::addRelocation(Relocation& pReloc) argument 145 m_Relocations.push_back(&pReloc); 110 addStub(const Stub* pPrototype, const Relocation& pReloc, Stub& pStub) argument
|
/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | StubFactory.h | 35 Stub* create(Relocation& pReloc, 43 Stub* findPrototype(const Relocation& pReloc,
|
H A D | Relocator.h | 58 /// @param pReloc - a read in relocation entry 62 virtual void scanRelocation(Relocation& pReloc, 70 /// @param pReloc - a read in relocation entry 73 virtual void issueUndefRef(Relocation& pReloc, 100 /// @param pReloc - a read in relocation entry 103 virtual void partialScanRelocation(Relocation& pReloc, 122 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const
|
H A D | IdenticalCodeFolding.h | 40 FoldingCandidate(LDSection* pCode, LDSection* pReloc, Input* pInput) argument 41 : sect(pCode), reloc_sect(pReloc), obj(pInput)
|