Searched refs:pReloc (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMRelocator.cpp30 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc,
145 void ARMRelocator::checkValidReloc(Relocation& pReloc) const
151 switch(pReloc.type()) {
165 error(diag::non_pic_relocation) << (int)pReloc.type()
166 << pReloc.symInfo()->name();
172 ARMRelocator::scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument
175 ResolveInfo* rsym = pReloc.symInfo();
177 switch(pReloc.type()){
184 pReloc.setType(llvm::ELF::R_ARM_ABS32);
210 error(diag::non_pic_relocation) << (int)pReloc
271 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument
487 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
523 getThumbBit(const Relocation& pReloc) argument
580 helper_get_GOT_and_init(Relocation& pReloc, ARMRelocator& pParent) argument
630 helper_GOT(Relocation& pReloc, ARMRelocator& pParent) argument
638 helper_get_PLT_and_init(Relocation& pReloc, ARMRelocator& pParent) argument
679 helper_PLT(Relocation& pReloc, ARMRelocator& pParent) argument
689 helper_DynRel(Relocation& pReloc, ARMRelocator::Type pType, ARMRelocator& pParent) argument
809 none(Relocation& pReloc, ARMRelocator& pParent) argument
815 abs32(Relocation& pReloc, ARMRelocator& pParent) argument
867 rel32(Relocation& pReloc, ARMRelocator& pParent) argument
891 base_prel(Relocation& pReloc, ARMRelocator& pParent) argument
900 gotoff32(Relocation& pReloc, ARMRelocator& pParent) argument
914 got_brel(Relocation& pReloc, ARMRelocator& pParent) argument
929 got_prel(Relocation& pReloc, ARMRelocator& pParent) argument
945 thm_jump11(Relocation& pReloc, ARMRelocator& pParent) argument
968 call(Relocation& pReloc, ARMRelocator& pParent) argument
1024 thm_call(Relocation& pReloc, ARMRelocator& pParent) argument
1097 movw_abs_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1127 movw_prel_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1147 movt_abs(Relocation& pReloc, ARMRelocator& pParent) argument
1173 movt_prel(Relocation& pReloc, ARMRelocator& pParent) argument
1187 thm_movw_abs_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1222 thm_movw_prel_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1247 thm_movw_brel(Relocation& pReloc, ARMRelocator& pParent) argument
1272 thm_movt_abs(Relocation& pReloc, ARMRelocator& pParent) argument
1309 thm_movt_prel(Relocation& pReloc, ARMRelocator& pParent) argument
1331 prel31(Relocation& pReloc, ARMRelocator& pParent) argument
1357 tls(Relocation& pReloc, ARMRelocator& pParent) argument
1362 unsupport(Relocation& pReloc, ARMRelocator& pParent) argument
[all...]
H A DARMRelocator.h106 void scanRelocation(Relocation& pReloc,
112 void scanLocalReloc(Relocation& pReloc, const LDSection& pSection);
114 void scanGlobalReloc(Relocation& pReloc,
118 void checkValidReloc(Relocation& pReloc) const;
H A DARMToARMStub.cpp64 bool ARMToARMStub::isMyDuty(const class Relocation& pReloc, argument
71 switch (pReloc.type()) {
77 uint64_t dest = pTargetSymValue + pReloc.addend() + 8u;
H A DARMToTHMStub.cpp66 bool ARMToTHMStub::isMyDuty(const class Relocation& pReloc, argument
73 switch (pReloc.type()) {
77 uint64_t dest = pTargetSymValue + pReloc.addend() + 8u;
H A DTHMToARMStub.cpp66 bool THMToARMStub::isMyDuty(const class Relocation& pReloc, argument
73 switch (pReloc.type()) {
77 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
H A DTHMToTHMStub.cpp68 bool THMToTHMStub::isMyDuty(const class Relocation& pReloc, argument
75 switch (pReloc.type()) {
79 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
H A DARMToARMStub.h39 bool isMyDuty(const class Relocation& pReloc,
H A DARMToTHMStub.h39 bool isMyDuty(const class Relocation& pReloc,
H A DTHMToARMStub.h39 bool isMyDuty(const class Relocation& pReloc,
H A DTHMToTHMStub.h39 bool isMyDuty(const class Relocation& pReloc,
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonRelocator.cpp28 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc,
100 void HexagonRelocator::scanRelocation(Relocation& pReloc, argument
108 pReloc.updateAddend();
110 ResolveInfo* rsym = pReloc.symInfo();
119 scanLocalReloc(pReloc, pLinker, pModule, pSection);
121 scanGlobalReloc(pReloc, pLinker, pModule, pSection);
139 void HexagonRelocator::scanLocalReloc(Relocation& pReloc, argument
145 ResolveInfo* rsym = pReloc.symInfo();
147 switch(pReloc.type()){
168 void HexagonRelocator::scanGlobalReloc(Relocation& pReloc, argument
304 partialScanRelocation(Relocation& pReloc, Module& pModule, const LDSection& pSection) argument
362 helper_get_GOT_and_init(Relocation& pReloc, HexagonRelocator& pParent) argument
406 helper_GOT(Relocation& pReloc, HexagonRelocator& pParent) argument
413 helper_get_PLT_and_init(Relocation& pReloc, HexagonRelocator& pParent) argument
453 helper_PLT(Relocation& pReloc, HexagonRelocator& pParent) argument
465 none(Relocation& pReloc, HexagonRelocator& pParent) argument
471 relocB15PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
488 relocB22PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
506 relocB7PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
523 reloc32(Relocation& pReloc, HexagonRelocator& pParent) argument
551 reloc16(Relocation& pReloc, HexagonRelocator& pParent) argument
564 reloc8(Relocation& pReloc, HexagonRelocator& pParent) argument
577 relocLO16(Relocation& pReloc, HexagonRelocator& pParent) argument
590 relocHI16(Relocation& pReloc, HexagonRelocator& pParent) argument
603 relocGPREL16_0(Relocation& pReloc, HexagonRelocator& pParent) argument
622 relocGPREL16_1(Relocation& pReloc, HexagonRelocator& pParent) argument
641 relocGPREL16_2(Relocation& pReloc, HexagonRelocator& pParent) argument
660 relocGPREL16_3(Relocation& pReloc, HexagonRelocator& pParent) argument
679 relocB13PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
696 relocB9PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
714 relocB32PCRELX(Relocation& pReloc, HexagonRelocator& pParent) argument
728 reloc32_6_X(Relocation& pReloc, HexagonRelocator& pParent) argument
747 relocB22PCRELX(Relocation& pReloc, HexagonRelocator& pParent) argument
767 relocB15PCRELX(Relocation& pReloc, HexagonRelocator& pParent) argument
787 relocB13PCRELX(Relocation& pReloc, HexagonRelocator& pParent) argument
807 relocB9PCRELX(Relocation& pReloc, HexagonRelocator& pParent) argument
828 relocB7PCRELX(Relocation& pReloc, HexagonRelocator& pParent) argument
847 reloc32PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
866 relocHexNX(Relocation& pReloc, HexagonRelocator& pParent) argument
879 relocPLTB22PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
895 relocHexGOTRELLO16(Relocation& pReloc, HexagonRelocator& pParent) argument
908 relocHexGOTRELHI16(Relocation& pReloc, HexagonRelocator& pParent) argument
922 relocHexGOTREL32(Relocation& pReloc, HexagonRelocator& pParent) argument
936 relocHex6PCRELX(Relocation& pReloc, HexagonRelocator& pParent) argument
951 relocHexGOT326X(Relocation& pReloc, HexagonRelocator& pParent) argument
968 relocHexGOT1611X(Relocation& pReloc, HexagonRelocator& pParent) argument
983 unsupport(Relocation& pReloc, HexagonRelocator& pParent) argument
[all...]
H A DHexagonRelocator.h95 void scanRelocation(Relocation& pReloc,
101 void partialScanRelocation(Relocation& pReloc,
137 virtual void scanLocalReloc(Relocation& pReloc,
142 virtual void scanGlobalReloc(Relocation& pReloc,
H A DHexagonAbsoluteStub.h39 bool isMyDuty(const class Relocation& pReloc,
H A DHexagonAbsoluteStub.cpp61 bool HexagonAbsoluteStub::isMyDuty(const class Relocation& pReloc, argument
66 switch (pReloc.type()) {
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsRelocator.cpp79 void MipsRelocator::scanRelocation(Relocation& pReloc, argument
85 ResolveInfo* rsym = pReloc.symInfo();
90 if (pReloc.symInfo() == getTarget().getGpDispSymbol()->resolveInfo())
94 pReloc.updateAddend();
105 scanLocalReloc(pReloc, pBuilder, pSection);
107 scanGlobalReloc(pReloc, pBuilder, pSection);
139 void MipsRelocator::scanLocalReloc(Relocation& pReloc, argument
143 ResolveInfo* rsym = pReloc.symInfo();
145 switch (pReloc.type()){
223 fatal(diag::unknown_relocation) << (int)pReloc
228 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument
327 helper_FindLo16Reloc(Relocation& pReloc) argument
343 helper_isGpDisp(const Relocation& pReloc) argument
356 helper_SetupRelDynForGOTEntry(MipsGOTEntry& got_entry, Relocation& pReloc, ResolveInfo* rsym, MipsRelocator& pParent) argument
370 helper_GetGOTEntry(Relocation& pReloc, MipsRelocator& pParent) argument
414 helper_GetGOTOffset(Relocation& pReloc, MipsRelocator& pParent) argument
442 helper_DynRel(Relocation& pReloc, MipsRelocator& pParent) argument
473 none(Relocation& pReloc, MipsRelocator& pParent) argument
480 abs32(Relocation& pReloc, MipsRelocator& pParent) argument
510 hi16(Relocation& pReloc, MipsRelocator& pParent) argument
540 lo16(Relocation& pReloc, MipsRelocator& pParent) argument
569 got16(Relocation& pReloc, MipsRelocator& pParent) argument
604 gothi16(Relocation& pReloc, MipsRelocator& pParent) argument
622 gotlo16(Relocation& pReloc, MipsRelocator& pParent) argument
634 call16(Relocation& pReloc, MipsRelocator& pParent) argument
646 gprel32(Relocation& pReloc, MipsRelocator& pParent) argument
[all...]
H A DMipsRelocator.h40 void scanRelocation(Relocation& pReloc,
85 void scanLocalReloc(Relocation& pReloc,
89 void scanGlobalReloc(Relocation& pReloc,
/frameworks/compile/mclinker/lib/LD/
H A DRelocator.cpp25 void Relocator::partialScanRelocation(Relocation& pReloc, argument
30 if (pReloc.symInfo()->type() == ResolveInfo::Section) {
31 LDSymbol* input_sym = pReloc.symInfo()->outSymbol();
36 pReloc.target() += offset;
45 pReloc.setSymInfo(sym_info);
H A DStubFactory.cpp40 Stub* StubFactory::create(Relocation& pReloc, argument
46 Stub* prototype = findPrototype(pReloc,
47 pReloc.place(),
51 BranchIsland* island = pBRIslandFactory.find(*(pReloc.targetRef().frag()));
53 island = pBRIslandFactory.produce(*(pReloc.targetRef().frag()));
58 Stub* stub = island->findStub(prototype, pReloc);
61 pReloc.setSymInfo(stub->symInfo());
69 name.append(pReloc.symInfo()->name());
95 reloc->setSymInfo(pReloc.symInfo());
100 island->addStub(prototype, pReloc, *stu
112 findPrototype(const Relocation& pReloc, uint64_t pSource, uint64_t pTargetSymValue) argument
[all...]
H A DBranchIsland.cpp98 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/lib/Target/X86/
H A DX86Relocator.cpp30 typedef Relocator::Result (*X86_32ApplyFunctionType)(Relocation& pReloc,
58 void X86Relocator::scanRelocation(Relocation& pReloc, argument
66 ResolveInfo* rsym = pReloc.symInfo();
70 pReloc.updateAddend();
78 scanLocalReloc(pReloc, pLinker, pModule, pSection);
80 scanGlobalReloc(pReloc, pLinker, pModule, pSection);
204 void X86_32Relocator::scanLocalReloc(Relocation& pReloc, argument
210 ResolveInfo* rsym = pReloc.symInfo();
212 switch(pReloc.type()){
314 convertTLSIEtoLE(pReloc, pSectio
361 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
600 convertTLSIEtoLE(Relocation& pReloc, LDSection& pSection) argument
691 helper_get_GOT_and_init(Relocation& pReloc, X86_32Relocator& pParent) argument
737 helper_GOT(Relocation& pReloc, X86_32Relocator& pParent) argument
746 helper_get_PLT_and_init(Relocation& pReloc, X86_32Relocator& pParent) argument
788 helper_PLT(Relocation& pReloc, X86_32Relocator& pParent) argument
800 none(Relocation& pReloc, X86_32Relocator& pParent) argument
808 abs(Relocation& pReloc, X86_32Relocator& pParent) argument
868 rel(Relocation& pReloc, X86_32Relocator& pParent) argument
911 gotoff32(Relocation& pReloc, X86_32Relocator& pParent) argument
922 gotpc32(Relocation& pReloc, X86_32Relocator& pParent) argument
932 got32(Relocation& pReloc, X86_32Relocator& pParent) argument
947 plt32(Relocation& pReloc, X86_32Relocator& pParent) argument
962 tls_gd(Relocation& pReloc, X86_32Relocator& pParent) argument
1025 tls_ldm(Relocation& pReloc, X86_32Relocator& pParent) argument
1041 tls_ldo_32(Relocation& pReloc, X86_32Relocator& pParent) argument
1051 tls_ie(Relocation& pReloc, X86_32Relocator& pParent) argument
1090 tls_gotie(Relocation& pReloc, X86_32Relocator& pParent) argument
1122 tls_le(Relocation& pReloc, X86_32Relocator& pParent) argument
1144 unsupport(Relocation& pReloc, X86_32Relocator& pParent) argument
1203 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
1267 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
1449 helper_get_GOT_and_init(Relocation& pReloc, X86_64Relocator& pParent) argument
1496 helper_GOT(Relocation& pReloc, X86_64Relocator& pParent) argument
1503 helper_get_PLT_and_init(Relocation& pReloc, X86_64Relocator& pParent) argument
1543 helper_PLT(Relocation& pReloc, X86_64Relocator& pParent) argument
1551 none(Relocation& pReloc, X86_64Relocator& pParent) argument
1560 abs(Relocation& pReloc, X86_64Relocator& pParent) argument
1622 signed32(Relocation& pReloc, X86_64Relocator& pParent) argument
1657 gotpcrel(Relocation& pReloc, X86_64Relocator& pParent) argument
1672 plt32(Relocation& pReloc, X86_64Relocator& pParent) argument
1689 rel(Relocation& pReloc, X86_64Relocator& pParent) argument
1723 unsupport(Relocation& pReloc, X86_64Relocator& pParent) argument
[all...]
H A DX86Relocator.h95 void scanRelocation(Relocation& pReloc,
113 virtual void scanLocalReloc(Relocation& pReloc,
118 virtual void scanGlobalReloc(Relocation& pReloc,
165 void scanLocalReloc(Relocation& pReloc,
170 void scanGlobalReloc(Relocation& pReloc,
177 void convertTLSIEtoLE(Relocation& pReloc, LDSection& pSection);
217 void scanLocalReloc(Relocation& pReloc,
222 void scanGlobalReloc(Relocation& pReloc,
/frameworks/compile/mclinker/include/mcld/LD/
H A DStubFactory.h38 Stub* create(Relocation& pReloc,
46 Stub* findPrototype(const Relocation& pReloc,
H A DRelocator.h61 /// @param pReloc - a read in relocation entry
64 virtual void scanRelocation(Relocation& pReloc,
92 /// @param pReloc - a read in relocation entry
95 virtual void partialScanRelocation(Relocation& pReloc,
/frameworks/compile/mclinker/lib/Fragment/
H A DFragmentLinker.cpp225 void FragmentLinker::writeRelocationResult(Relocation& pReloc, uint8_t* pOutput) argument
229 pReloc.targetRef().frag()->getParent()->getSection().offset() +
230 pReloc.targetRef().getOutputOffset();
237 switch(pReloc.size(*m_Backend.getRelocator())) {
239 std::memcpy(target_addr, &pReloc.target(), 1);
243 tmp_data = mcld::bswap16(pReloc.target());
248 tmp_data = mcld::bswap32(pReloc.target());
253 tmp_data = mcld::bswap64(pReloc.target());
262 std::memcpy(target_addr, &pReloc.target(),
263 pReloc
[all...]
/frameworks/compile/mclinker/include/mcld/Fragment/
H A DFragmentLinker.h67 void writeRelocationResult(Relocation& pReloc, uint8_t* pOutput);

Completed in 354 milliseconds

12