Searched defs:pReloc (Results 1 - 19 of 19) sorted by relevance

/frameworks/compile/mclinker/include/mcld/LD/
H A DIdenticalCodeFolding.h40 FoldingCandidate(LDSection* pCode, LDSection* pReloc, Input* pInput) argument
41 : sect(pCode), reloc_sect(pReloc), obj(pInput)
H A DEhFrame.h101 void setRelocation(const Relocation& pReloc) { m_pReloc = &pReloc; } argument
/frameworks/compile/mclinker/lib/LD/
H A DRelocator.cpp30 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 DStubFactory.cpp39 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 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/ARM/
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.cpp72 bool THMToARMStub::isMyDuty(const class Relocation& pReloc, argument
79 switch (pReloc.type()) {
83 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
H A DTHMToTHMStub.cpp74 bool THMToTHMStub::isMyDuty(const class Relocation& pReloc, argument
81 switch (pReloc.type()) {
85 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
H A DARMRelocator.cpp28 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...]
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonAbsoluteStub.cpp62 bool HexagonAbsoluteStub::isMyDuty(const class Relocation& pReloc, argument
67 switch (pReloc.type()) {
H A DHexagonRelocator.cpp54 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...]
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsLA25Stub.cpp62 bool MipsLA25Stub::isMyDuty(const Relocation& pReloc, argument
66 if (llvm::ELF::R_MIPS_26 != pReloc.type())
69 const ResolveInfo* rsym = pReloc.symInfo();
H A DMipsRelocator.cpp185 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...]
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64RelocationHelpers.h105 helper_PLT_init(Relocation& pReloc, AArch64Relocator& pParent) argument
108 ResolveInfo* rsym = pReloc.symInfo();
179 helper_GOT_init(Relocation& pReloc, bool pHasRel, AArch64Relocator& pParent) argument
182 ResolveInfo* rsym = pReloc.symInfo();
201 pParent.getRelRelMap().record(pReloc, rel_entry);
H A DAArch64Relocator.cpp34 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...]
/frameworks/compile/mclinker/lib/Object/
H A DObjectLinker.cpp888 void ObjectLinker::writeRelocationResult(Relocation& pReloc, uint8_t* pOutput) argument
892 pReloc.targetRef().frag()->getParent()->getSection().offset() +
893 pReloc.targetRef().getOutputOffset();
900 switch(pReloc.size(*m_LDBackend.getRelocator())) {
902 std::memcpy(target_addr, &pReloc.target(), 1);
906 tmp_data = mcld::bswap16(pReloc.target());
911 tmp_data = mcld::bswap32(pReloc.target());
916 tmp_data = mcld::bswap64(pReloc.target());
925 std::memcpy(target_addr, &pReloc.target(),
926 pReloc
[all...]
/frameworks/compile/mclinker/lib/Target/X86/
H A DX86Relocator.cpp66 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...]
/frameworks/compile/mclinker/lib/Target/
H A DGNULDBackend.cpp2937 bool GNULDBackend::symbolNeedsCopyReloc(const Relocation& pReloc, argument
2954 uint32_t flag = pReloc.targetRef().frag()->getParent()->getSection().flag();

Completed in 1782 milliseconds