Searched refs:pReloc (Results 1 - 25 of 37) sorted by path

12

/frameworks/compile/mclinker/include/mcld/Fragment/
H A DStub.h67 /// isMyDuty - return true when the pReloc is problematic and the stub is able
69 virtual bool isMyDuty(const class Relocation& pReloc,
/frameworks/compile/mclinker/include/mcld/LD/
H A DBranchIsland.h92 Stub* findStub(const Stub* pPrototype, const Relocation& pReloc);
95 bool addStub(const Stub* pPrototype, const Relocation& pReloc, Stub& pStub);
98 bool addRelocation(Relocation& pReloc);
H A DEhFrame.h101 void setRelocation(const Relocation& pReloc) { m_pReloc = &pReloc; } argument
H A DIdenticalCodeFolding.h40 FoldingCandidate(LDSection* pCode, LDSection* pReloc, Input* pInput) argument
41 : sect(pCode), reloc_sect(pReloc), obj(pInput)
H A DRelocator.h58 /// @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 DStubFactory.h35 Stub* create(Relocation& pReloc,
43 Stub* findPrototype(const Relocation& pReloc,
/frameworks/compile/mclinker/include/mcld/Object/
H A DObjectLinker.h161 void writeRelocationResult(Relocation& pReloc, uint8_t* pOutput);
/frameworks/compile/mclinker/include/mcld/Target/
H A DGNULDBackend.h254 bool symbolNeedsCopyReloc(const Relocation& pReloc,
/frameworks/compile/mclinker/lib/LD/
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
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...]
/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/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...]
H A DAArch64Relocator.h114 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 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...]
H A DARMRelocator.h95 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 DARMToARMStub.cpp64 bool ARMToARMStub::isMyDuty(const class Relocation& pReloc, argument
71 switch (pReloc.type()) {
77 uint64_t dest = pTargetSymValue + pReloc.addend() + 8u;
H A DARMToARMStub.h36 bool isMyDuty(const class Relocation& pReloc,
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 DARMToTHMStub.h36 bool isMyDuty(const class Relocation& pReloc,
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 DTHMToARMStub.h35 bool isMyDuty(const class Relocation& pReloc,
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 DTHMToTHMStub.h35 bool isMyDuty(const class Relocation& pReloc,

Completed in 164 milliseconds

12