Searched defs:pReloc (Results 1 - 21 of 21) 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.h92 void setRelocation(const Relocation& pReloc) { m_pReloc = &pReloc; } argument
/frameworks/compile/mclinker/lib/LD/
H A DRelocator.cpp31 void Relocator::partialScanRelocation(Relocation& pReloc, argument
34 if (pReloc.symInfo()->type() == ResolveInfo::Section) {
35 LDSymbol* input_sym = pReloc.symInfo()->outSymbol();
40 pReloc.target() += offset;
49 pReloc.setSymInfo(sym_info);
53 void Relocator::issueUndefRef(Relocation& pReloc, argument
56 FragmentRef::Offset undef_sym_pos = pReloc.targetRef().offset();
61 std::string reloc_sym(pReloc.symInfo()->name());
H A DStubFactory.cpp39 Stub* StubFactory::create(Relocation& pReloc, argument
45 Stub* prototype = findPrototype(pReloc, pReloc.place(), pTargetSymValue);
47 const Fragment* frag = pReloc.targetRef().frag();
58 stub = islands.second->findStub(prototype, pReloc);
63 pReloc.setSymInfo(stub->symInfo());
66 stub = islands.first->findStub(prototype, pReloc);
69 pReloc.setSymInfo(stub->symInfo());
76 name.append(pReloc.symInfo()->name())
105 reloc->setSymInfo(pReloc
122 findPrototype(const Relocation& pReloc, uint64_t pSource, uint64_t pTargetSymValue) argument
[all...]
H A DBranchIsland.cpp86 Stub* BranchIsland::findStub(const Stub* pPrototype, const Relocation& pReloc) { argument
87 Key key(pPrototype, pReloc.symInfo()->outSymbol(), pReloc.addend());
98 const Relocation& pReloc,
101 Key key(pPrototype, pReloc.symInfo()->outSymbol(), pReloc.addend());
127 bool BranchIsland::addRelocation(Relocation& pReloc) { argument
128 m_Relocations.push_back(&pReloc);
97 addStub(const Stub* pPrototype, const Relocation& pReloc, Stub& pStub) argument
H A DDebugString.cpp67 void DebugString::applyOffset(Relocation& pReloc, TargetLDBackend& pBackend) { argument
69 ResolveInfo* info = pReloc.symInfo();
78 uint32_t offset = pBackend.getRelocator()->getDebugStringOffset(pReloc);
82 pBackend.getRelocator()->applyDebugStringOffset(pReloc,
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMToARMStub.cpp61 bool ARMToARMStub::isMyDuty(const class Relocation& pReloc, argument
67 switch (pReloc.type()) {
73 uint64_t dest = pTargetSymValue + pReloc.addend() + 8u;
H A DARMToTHMStub.cpp63 bool ARMToTHMStub::isMyDuty(const class Relocation& pReloc, argument
69 switch (pReloc.type()) {
73 uint64_t dest = pTargetSymValue + pReloc.addend() + 8u;
H A DTHMToARMStub.cpp70 bool THMToARMStub::isMyDuty(const class Relocation& pReloc, argument
76 switch (pReloc.type()) {
80 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
H A DTHMToTHMStub.cpp72 bool THMToTHMStub::isMyDuty(const class Relocation& pReloc, argument
78 switch (pReloc.type()) {
82 uint64_t dest = pTargetSymValue + pReloc.addend() + 4u;
H A DARMRelocator.cpp29 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))
81 static ARMGOTEntry& helper_GOT_init(Relocation& pReloc, argument
85 ResolveInfo* rsym = pReloc.symInfo();
125 static ARMPLT1& helper_PLT_init(Relocation& pReloc, ARMRelocator& pParent) { argument
127 ResolveInfo* rsym = pReloc.symInfo();
149 // its FragmentRef to pReloc
151 helper_DynRel_init(Relocation& pReloc, Relocator::Type pType, ARMRelocator& pParent) argument
429 scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument
520 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument
728 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument
772 applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset) argument
782 none(Relocation& pReloc, ARMRelocator& pParent) argument
787 abs32(Relocation& pReloc, ARMRelocator& pParent) argument
824 rel32(Relocation& pReloc, ARMRelocator& pParent) argument
848 base_prel(Relocation& pReloc, ARMRelocator& pParent) argument
856 gotoff32(Relocation& pReloc, ARMRelocator& pParent) argument
869 got_brel(Relocation& pReloc, ARMRelocator& pParent) argument
887 got_prel(Relocation& pReloc, ARMRelocator& pParent) argument
906 thm_jump8(Relocation& pReloc, ARMRelocator& pParent) argument
924 thm_jump11(Relocation& pReloc, ARMRelocator& pParent) argument
942 thm_jump19(Relocation& pReloc, ARMRelocator& pParent) argument
986 call(Relocation& pReloc, ARMRelocator& pParent) argument
1039 thm_call(Relocation& pReloc, ARMRelocator& pParent) argument
1107 movw_abs_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1136 movw_prel_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1155 movt_abs(Relocation& pReloc, ARMRelocator& pParent) argument
1181 movt_prel(Relocation& pReloc, ARMRelocator& pParent) argument
1194 thm_movw_abs_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1230 thm_movw_prel_nc(Relocation& pReloc, ARMRelocator& pParent) argument
1255 thm_movw_brel(Relocation& pReloc, ARMRelocator& pParent) argument
1279 thm_movt_abs(Relocation& pReloc, ARMRelocator& pParent) argument
1314 thm_movt_prel(Relocation& pReloc, ARMRelocator& pParent) argument
1335 prel31(Relocation& pReloc, ARMRelocator& pParent) argument
1360 tls(Relocation& pReloc, ARMRelocator& pParent) argument
1364 unsupported(Relocation& pReloc, ARMRelocator& pParent) argument
[all...]
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonAbsoluteStub.cpp60 bool HexagonAbsoluteStub::isMyDuty(const class Relocation& pReloc, argument
64 switch (pReloc.type()) {
H A DHexagonRelocator.h78 void scanRelocation(Relocation& pReloc,
85 void partialScanRelocation(Relocation& pReloc,
110 uint32_t getDebugStringOffset(Relocation& pReloc) const { return 0; }
114 void applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset) {} argument
129 virtual void scanLocalReloc(Relocation& pReloc,
134 virtual void scanGlobalReloc(Relocation& pReloc,
H A DHexagonRelocator.cpp55 static HexagonGOTEntry& helper_GOT_init(Relocation& pReloc, argument
59 ResolveInfo* rsym = pReloc.symInfo();
91 static PLTEntryBase& helper_PLT_init(Relocation& pReloc, argument
94 ResolveInfo* rsym = pReloc.symInfo();
127 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc,
195 void HexagonRelocator::scanRelocation(Relocation& pReloc, argument
204 ResolveInfo* rsym = pReloc.symInfo();
216 scanLocalReloc(pReloc, pLinker, pModule, pSection);
218 scanGlobalReloc(pReloc, pLinker, pModule, pSection);
223 issueUndefRef(pReloc, pSectio
235 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
286 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
475 partialScanRelocation(Relocation& pReloc, Module& pModule) argument
499 none(Relocation& pReloc, HexagonRelocator& pParent) argument
506 applyAbs(Relocation& pReloc) argument
584 applyRel(Relocation& pReloc, int64_t pResult) argument
695 relocAbs(Relocation& pReloc, HexagonRelocator& pParent) argument
735 relocPCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
767 relocGPREL(Relocation& pReloc, HexagonRelocator& pParent) argument
817 relocPLTB22PCREL(Relocation& pReloc, HexagonRelocator& pParent) argument
835 relocGOT(Relocation& pReloc, HexagonRelocator& pParent) argument
913 relocGOTREL(Relocation& pReloc, HexagonRelocator& pParent) argument
964 unsupported(Relocation& pReloc, HexagonRelocator& pParent) argument
[all...]
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsLA25Stub.cpp57 bool MipsLA25Stub::isMyDuty(const Relocation& pReloc, argument
60 if (llvm::ELF::R_MIPS_26 != pReloc.type())
63 const ResolveInfo* rsym = pReloc.symInfo();
H A DMipsRelocator.cpp146 Relocator::Result MipsRelocator::applyRelocation(Relocation& pReloc) { argument
150 if (m_CurrentLo16Reloc == NULL && isPostponed(pReloc)) {
151 postponeRelocation(pReloc);
155 for (MipsRelocationInfo info(pReloc, isRel()); !info.isNone();
168 pReloc.target() &= ~mask;
169 pReloc.target() |= info.result() & mask;
184 void MipsRelocator::scanRelocation(Relocation& pReloc, argument
190 ResolveInfo* rsym = pReloc.symInfo();
203 for (MipsRelocationInfo info(pReloc, isRel()); !info.isNone();
214 getTarget().addNonPICBranchSym(pReloc
245 scanLocalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument
331 scanGlobalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument
514 postponeRelocation(Relocation& pReloc) argument
556 getLocalGOTEntry(MipsRelocationInfo& pReloc, Relocation::DWord entryValue) argument
584 getGlobalGOTEntry(MipsRelocationInfo& pReloc) argument
611 getGOTOffset(MipsRelocationInfo& pReloc) argument
628 createDynRel(MipsRelocationInfo& pReloc) argument
696 applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset) argument
743 none(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
749 abs32(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
780 rel26(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
803 hi16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
825 lo16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
849 gprel16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
869 got16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
890 gothi16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
902 gotlo16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
911 sub(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
922 call16(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
930 gprel32(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
944 abs64(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
975 gotdisp(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
983 gotoff(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
990 jalr(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
996 la25lui(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
1006 la25j(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
1016 la25add(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
1024 pc32(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
1029 unsupported(MipsRelocationInfo& pReloc, MipsRelocator& pParent) argument
[all...]
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64RelocationHelpers.h92 static inline AArch64PLT1& helper_PLT_init(Relocation& pReloc, argument
95 ResolveInfo* rsym = pReloc.symInfo();
157 static inline AArch64GOTEntry& helper_GOT_init(Relocation& pReloc, argument
161 ResolveInfo* rsym = pReloc.symInfo();
179 pParent.getRelRelMap().record(pReloc, rel_entry);
H A DAArch64Relocator.cpp34 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc,
149 void AArch64Relocator::scanLocalReloc(Relocation& pReloc, argument
152 ResolveInfo* rsym = pReloc.symInfo();
153 switch (pReloc.type()) {
164 *pReloc.targetRef().frag(),
165 pReloc.targetRef().offset(),
168 getRelRelMap().record(pReloc, reloc);
180 *pReloc.targetRef().frag(),
181 pReloc.targetRef().offset(),
182 pReloc
213 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument
372 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument
414 applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset) argument
424 none(Relocation& pReloc, AArch64Relocator& pParent) argument
428 unsupported(Relocation& pReloc, AArch64Relocator& pParent) argument
435 abs(Relocation& pReloc, AArch64Relocator& pParent) argument
481 rel(Relocation& pReloc, AArch64Relocator& pParent) argument
514 add_abs_lo12(Relocation& pReloc, AArch64Relocator& pParent) argument
526 adr_prel_lo21(Relocation& pReloc, AArch64Relocator& pParent) argument
544 adr_prel_pg_hi21(Relocation& pReloc, AArch64Relocator& pParent) argument
564 call(Relocation& pReloc, AArch64Relocator& pParent) argument
593 condbr(Relocation& pReloc, AArch64Relocator& pParent) argument
622 adr_got_page(Relocation& pReloc, AArch64Relocator& pParent) argument
648 ld64_got_lo12(Relocation& pReloc, AArch64Relocator& pParent) argument
678 ldst_abs_lo12(Relocation& pReloc, AArch64Relocator& pParent) argument
[all...]
/frameworks/compile/mclinker/lib/Object/
H A DObjectLinker.cpp954 void ObjectLinker::writeRelocationResult(Relocation& pReloc, uint8_t* pOutput) { argument
957 pReloc.targetRef().frag()->getParent()->getSection().offset() +
958 pReloc.targetRef().getOutputOffset();
965 switch (pReloc.size(*m_LDBackend.getRelocator())) {
967 std::memcpy(target_addr, &pReloc.target(), 1);
971 tmp_data = mcld::bswap16(pReloc.target());
976 tmp_data = mcld::bswap32(pReloc.target());
981 tmp_data = mcld::bswap64(pReloc.target());
990 &pReloc.target(),
991 pReloc
[all...]
/frameworks/compile/mclinker/lib/Target/X86/
H A DX86Relocator.cpp59 static X86_32GOTEntry& helper_GOT_init(Relocation& pReloc, argument
63 ResolveInfo* rsym = pReloc.symInfo();
92 static Relocator::Address helper_get_GOT_address(Relocation& pReloc, argument
94 X86_32GOTEntry* got_entry = pParent.getSymGOTMap().lookUp(*pReloc.symInfo());
99 static PLTEntryBase& helper_PLT_init(Relocation& pReloc, argument
102 ResolveInfo* rsym = pReloc.symInfo();
136 typedef Relocator::Result (*X86_32ApplyFunctionType)(Relocation& pReloc,
160 void X86Relocator::scanRelocation(Relocation& pReloc, argument
168 ResolveInfo* rsym = pReloc.symInfo();
179 scanLocalReloc(pReloc, pLinke
311 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
514 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
780 convertTLSIEtoLE(Relocation& pReloc, LDSection& pSection) argument
845 applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset) argument
855 none(Relocation& pReloc, X86_32Relocator& pParent) argument
862 abs(Relocation& pReloc, X86_32Relocator& pParent) argument
899 rel(Relocation& pReloc, X86_32Relocator& pParent) argument
933 gotoff32(Relocation& pReloc, X86_32Relocator& pParent) argument
943 gotpc32(Relocation& pReloc, X86_32Relocator& pParent) argument
952 got32(Relocation& pReloc, X86_32Relocator& pParent) argument
973 plt32(Relocation& pReloc, X86_32Relocator& pParent) argument
987 tls_gd(Relocation& pReloc, X86_32Relocator& pParent) argument
1018 tls_ldm(Relocation& pReloc, X86_32Relocator& pParent) argument
1033 tls_ldo_32(Relocation& pReloc, X86_32Relocator& pParent) argument
1042 tls_ie(Relocation& pReloc, X86_32Relocator& pParent) argument
1062 tls_gotie(Relocation& pReloc, X86_32Relocator& pParent) argument
1083 tls_le(Relocation& pReloc, X86_32Relocator& pParent) argument
1099 unsupported(Relocation& pReloc, X86_32Relocator& pParent) argument
1135 helper_GOT_init(Relocation& pReloc, bool pHasRel, X86_64Relocator& pParent) argument
1170 helper_get_GOT_address(Relocation& pReloc, X86_64Relocator& pParent) argument
1184 helper_PLT_init(Relocation& pReloc, X86_64Relocator& pParent) argument
1289 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
1361 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
1514 applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset) argument
1523 none(Relocation& pReloc, X86_64Relocator& pParent) argument
1531 abs(Relocation& pReloc, X86_64Relocator& pParent) argument
1577 signed32(Relocation& pReloc, X86_64Relocator& pParent) argument
1607 gotpcrel(Relocation& pReloc, X86_64Relocator& pParent) argument
1632 plt32(Relocation& pReloc, X86_64Relocator& pParent) argument
1648 rel(Relocation& pReloc, X86_64Relocator& pParent) argument
1685 unsupported(Relocation& pReloc, X86_64Relocator& pParent) argument
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DGNULDBackend.cpp2797 bool GNULDBackend::symbolNeedsCopyReloc(const Relocation& pReloc, argument
2811 uint32_t flag = pReloc.targetRef().frag()->getParent()->getSection().flag();

Completed in 189 milliseconds