/aosp12/frameworks/compile/mclinker/lib/Fragment/ |
H A D | Relocation.cpp | 34 void Relocation::Clear() { in Clear() 39 Relocation* Relocation::Create() { in Create() 47 Relocation* Relocation::Create(Type pType, in Create() 54 void Relocation::Destroy(Relocation*& pRelocation) { in Destroy() 62 Relocation::Relocation() in Relocation() function in mcld::Relocation 66 Relocation::Relocation(Relocation::Type pType, in Relocation() function in mcld::Relocation 78 Relocation::~Relocation() { in ~Relocation() 81 Relocation::Address Relocation::place() const { in place() 86 Relocation::Address Relocation::symValue() const { in symValue() 138 Relocation::Size Relocation::size(Relocator& pRelocator) const { in size() [all …]
|
/aosp12/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86Relocator.h | 80 void scanRelocation(Relocation& pReloc, 99 virtual void scanLocalReloc(Relocation& pReloc, 104 virtual void scanGlobalReloc(Relocation& pReloc, 129 Result applyRelocation(Relocation& pRelocation); 137 Size getSize(Relocation::Type pType) const; 160 void scanLocalReloc(Relocation& pReloc, 165 void scanGlobalReloc(Relocation& pReloc, 188 typedef KeyEntryMap<Relocation, Relocation> RelRelMap; 201 Size getSize(Relocation::Type pType) const; 225 void scanLocalReloc(Relocation& pReloc, [all …]
|
H A D | X86Relocator.cpp | 31 static Relocation& helper_DynRel_init(ResolveInfo* pSym, in helper_DynRel_init() 99 static PLTEntryBase& helper_PLT_init(Relocation& pReloc, in helper_PLT_init() 160 void X86Relocator::scanRelocation(Relocation& pReloc, in scanRelocation() 279 Relocation::Type type = pRelocation.type(); in applyRelocation() 298 const Relocation& pReloc) const { in mayHaveFunctionPointerAccess() 424 Relocation& rel_entry1 = helper_DynRel_init( in scanLocalReloc() 786 Relocation* reloc = in convertTLSIEtoLE() 800 reloc = Relocation::Create( in convertTLSIEtoLE() 1153 Relocation& rel_entry = helper_DynRel_init( in helper_GOT_init() 1238 Relocation::Type type = pRelocation.type(); in applyRelocation() [all …]
|
H A D | X86LDBackend.h | 33 Relocation::Type pCopyRel); 102 Relocation::Type getPointerRel() { return m_PointerRel; } in getPointerRel() 104 Relocation::Type getCopyRelType() const { return m_CopyRel; } in getCopyRelType() 105 Relocation::Type getPointerRelType() const { return m_PointerRel; } in getPointerRelType() 150 Relocation::Type m_CopyRel; 151 Relocation::Type m_PointerRel;
|
/aosp12/frameworks/compile/mclinker/include/mcld/LD/ |
H A D | Relocator.h | 26 typedef Relocation::Type Type; 27 typedef Relocation::Address Address; 28 typedef Relocation::DWord DWord; 29 typedef Relocation::SWord SWord; 30 typedef Relocation::Size Size; 41 virtual Result applyRelocation(Relocation& pRelocation) = 0; 51 virtual void scanRelocation(Relocation& pReloc, 63 virtual void issueUndefRef(Relocation& pReloc, 89 virtual void partialScanRelocation(Relocation& pReloc, 107 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const { in mayHaveFunctionPointerAccess() [all …]
|
H A D | RelocationFactory.h | 26 : public GCFactory<Relocation, MCLD_RELOCATIONS_PER_INPUT> { 28 typedef Relocation::Type Type; 29 typedef Relocation::Address Address; 30 typedef Relocation::DWord DWord; 31 typedef Relocation::SWord SWord; 43 Relocation* produce(Type pType, FragmentRef& pFragRef, Address pAddend = 0); 47 Relocation* produceEmptyEntry(); 49 void destroy(Relocation* pRelocation);
|
H A D | RelocData.h | 44 typedef llvm::iplist<Relocation, GCFactoryListTraits<Relocation> > 73 RelocData& append(Relocation& pRelocation); 74 Relocation& remove(Relocation& pRelocation);
|
H A D | BranchIsland.h | 27 class Relocation; variable 39 typedef std::vector<Relocation*> RelocationListType; 91 Stub* findStub(const Stub* pPrototype, const Relocation& pReloc); 94 bool addStub(const Stub* pPrototype, const Relocation& pReloc, Stub& pStub); 99 bool addRelocation(Relocation& pReloc);
|
/aosp12/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsRelocator.h | 44 void scanRelocation(Relocation& pReloc, 66 Result applyRelocation(Relocation& pReloc); 84 void postponeRelocation(Relocation& pReloc); 91 bool isGpDisp(const Relocation& pReloc) const; 137 const char* getName(Relocation::Type pType) const; 157 Relocation::Type pType); 181 bool isPostponed(const Relocation& pReloc) const; 208 Relocation::Type pType); 209 Size getSize(Relocation::Type pType) const; 223 Relocation::Type pType); [all …]
|
H A D | MipsGOT.h | 51 Relocation::DWord pAddend); 64 Fragment* consumeTLS(Relocation::Type pType); 73 Relocation::Type pType); 74 Fragment* lookupTLSEntry(const ResolveInfo* pInfo, Relocation::Type pType); 77 Relocation::DWord pAddend, 80 Relocation::DWord pAddend); 131 void consumeTLS(Relocation::Type pType); 139 Relocation::DWord m_Addend; 143 Relocation::DWord addend, 197 Relocation::DWord m_Addend;
|
H A D | MipsLDBackend.h | 38 bool needsLA25Stub(Relocation::Type pType, const mcld::ResolveInfo* pSym); 144 bool relaxRelocation(IRBuilder& pBuilder, Relocation& pRel); 171 Relocation::Type& pType, 177 Relocation::Type& pType, 184 Relocation::Type& pType, 190 Relocation::Type& pType, 197 Relocation::Type pType, 203 Relocation::Type pType, 210 Relocation::Type pType, 216 Relocation::Type pType,
|
H A D | MipsRelocator.cpp | 29 static bool HasSubType(const Relocation& pParent, Relocation::Type pType) { in HasSubType() 33 for (Relocation::Type type = pParent.type(); in HasSubType() 60 Relocation& parent() { return *m_Parent; } in parent() 64 Relocation::DWord A() const { return m_Addend; } in A() 75 Relocation* m_Parent; 76 Relocation::Type m_Type; 77 Relocation::DWord m_Addend; 78 Relocation::DWord m_Symbol; 79 Relocation::DWord m_Result; 81 MipsRelocationInfo(Relocation& pParent, Relocation::Type pType, in MipsRelocationInfo() [all …]
|
/aosp12/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64Relocator.h | 27 typedef KeyEntryMap<Relocation, Relocation> RelRelMap; 70 Result applyRelocation(Relocation& pRelocation); 76 const char* getName(Relocation::Type pType) const; 78 Size getSize(Relocation::Type pType) const; 98 void scanRelocation(Relocation& pReloc, 106 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const; 110 uint32_t getDebugStringOffset(Relocation& pReloc) const; 114 void applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset); 117 void scanLocalReloc(Relocation& pReloc, const LDSection& pSection); 119 void scanGlobalReloc(Relocation& pReloc,
|
H A D | AArch64Relocator.cpp | 34 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc, 73 Relocation::Type type = pRelocation.type(); in applyRelocation() 94 Relocation& rel_entry = *getTarget().getRelaDyn().create(); in addCopyReloc() 151 void AArch64Relocator::scanLocalReloc(Relocation& pReloc, in scanLocalReloc() 165 Relocation& reloc = helper_DynRela_init(rsym, in scanLocalReloc() 181 Relocation& reloc = helper_DynRela_init(rsym, in scanLocalReloc() 215 void AArch64Relocator::scanGlobalReloc(Relocation& pReloc, in scanGlobalReloc() 251 Relocation& reloc = in scanGlobalReloc() 259 Relocation& reloc = helper_DynRela_init(rsym, in scanGlobalReloc() 374 void AArch64Relocator::scanRelocation(Relocation& pReloc, in scanRelocation() [all …]
|
H A D | AArch64RelocationHelpers.h | 92 static inline AArch64PLT1& helper_PLT_init(Relocation& pReloc, in helper_PLT_init() 109 Relocation& rel_entry = *ld_backend.getRelaPLT().create(); in helper_PLT_init() 117 static inline Relocation& helper_DynRela_init(ResolveInfo* pSym, in helper_DynRela_init() 123 Relocation& rel_entry = *ld_backend.getRelaDyn().create(); in helper_DynRela_init() 157 static inline AArch64GOTEntry& helper_GOT_init(Relocation& pReloc, in helper_GOT_init() 176 Relocation& rel_entry = helper_DynRela_init( in helper_GOT_init()
|
/aosp12/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonRelocator.h | 32 typedef KeyEntryMap<Relocation, Relocation> RelRelMap; 70 Result applyRelocation(Relocation& pRelocation); 78 void scanRelocation(Relocation& pReloc, 85 void partialScanRelocation(Relocation& pReloc, 92 const char* getName(Relocation::Type pType) const; 94 Size getSize(Relocation::Type pType) const; 110 uint32_t getDebugStringOffset(Relocation& pReloc) const { return 0; } in getDebugStringOffset() 114 void applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset) {} in applyDebugStringOffset() 129 virtual void scanLocalReloc(Relocation& pReloc, 134 virtual void scanGlobalReloc(Relocation& pReloc,
|
H A D | HexagonRelocator.cpp | 27 static Relocation& helper_DynRel_init(ResolveInfo* pSym, in helper_DynRel_init() 33 Relocation& rela_entry = *ld_backend.getRelaDyn().create(); in helper_DynRel_init() 55 static HexagonGOTEntry& helper_GOT_init(Relocation& pReloc, in helper_GOT_init() 91 static PLTEntryBase& helper_PLT_init(Relocation& pReloc, in helper_PLT_init() 177 Relocation::Type type = pRelocation.type(); in applyRelocation() 195 void HexagonRelocator::scanRelocation(Relocation& pReloc, in scanRelocation() 228 Relocation& rel_entry = *pTarget.getRelaDyn().create(); in addCopyReloc() 265 Relocation& reloc = helper_DynRel_init(rsym, in scanLocalReloc() 328 Relocation& reloc = helper_DynRel_init(rsym, in scanGlobalReloc() 506 Relocator::Result applyAbs(Relocation& pReloc) { in applyAbs() [all …]
|
/aosp12/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMRelocator.h | 64 Result applyRelocation(Relocation& pRelocation); 70 const char* getName(Relocation::Type pType) const; 72 Size getSize(Relocation::Type pType) const; 89 void scanRelocation(Relocation& pReloc, 97 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const; 101 uint32_t getDebugStringOffset(Relocation& pReloc) const; 105 void applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset); 108 void scanLocalReloc(Relocation& pReloc, const LDSection& pSection); 110 void scanGlobalReloc(Relocation& pReloc, 114 void checkValidReloc(Relocation& pReloc) const;
|
H A D | ARMRelocator.cpp | 29 static Relocator::DWord getThumbBit(const Relocation& pReloc) { in getThumbBit() 81 static ARMGOTEntry& helper_GOT_init(Relocation& pReloc, in helper_GOT_init() 140 Relocation& rel_entry = *ld_backend.getRelPLT().create(); in helper_PLT_init() 151 static void helper_DynRel_init(Relocation& pReloc, in helper_DynRel_init() 158 Relocation& rel_entry = *ld_backend.getRelDyn().create(); in helper_DynRel_init() 308 Relocation::Type type = pRelocation.type(); in applyRelocation() 409 const Relocation& pReloc) const { in mayHaveFunctionPointerAccess() 429 void ARMRelocator::scanLocalReloc(Relocation& pReloc, in scanLocalReloc() 520 void ARMRelocator::scanGlobalReloc(Relocation& pReloc, in scanGlobalReloc() 728 void ARMRelocator::scanRelocation(Relocation& pReloc, in scanRelocation() [all …]
|
/aosp12/frameworks/compile/mclinker/include/mcld/Fragment/ |
H A D | Relocation.h | 25 class Relocation : public llvm::ilist_node<Relocation> { 27 friend class GCFactoryListTraits<Relocation>; 28 friend class Chunk<Relocation, MCLD_RELOCATIONS_PER_INPUT>; 38 Relocation(); 40 Relocation(Type pType, 45 ~Relocation(); 55 static Relocation* Create(); 61 static Relocation* Create(Type pType, 66 static void Destroy(Relocation*& pRelocation);
|
H A D | Stub.h | 25 class Relocation; variable 30 typedef Relocation::DWord DWord; 31 typedef Relocation::SWord SWord; 32 typedef Relocation::Type Type; 68 virtual bool isMyDuty(const Relocation& pReloc, in isMyDuty() 109 virtual void applyFixup(Relocation& pSrcReloc,
|
/aosp12/frameworks/compile/mclinker/lib/LD/ |
H A D | RelocationFactory.cpp | 26 : GCFactory<Relocation, MCLD_RELOCATIONS_PER_INPUT>(), m_pConfig(NULL) { in RelocationFactory() 33 Relocation* RelocationFactory::produce(RelocationFactory::Type pType, in produce() 72 Relocation* result = allocate(); in produce() 73 new (result) Relocation(pType, &pFragRef, pAddend, target_data); in produce() 77 Relocation* RelocationFactory::produceEmptyEntry() { in produceEmptyEntry() 78 Relocation* result = allocate(); in produceEmptyEntry() 79 new (result) Relocation(0, 0, 0, 0); in produceEmptyEntry() 83 void RelocationFactory::destroy(Relocation* pRelocation) { in destroy()
|
H A D | RelocData.cpp | 46 RelocData& RelocData::append(Relocation& pRelocation) { in append() 51 Relocation& RelocData::remove(Relocation& pRelocation) { in remove() 53 Relocation* rel = m_Relocations.remove(iter); in remove()
|
/aosp12/frameworks/compile/mclinker/lib/Target/ |
H A D | OutputRelocSection.cpp | 37 Relocation* OutputRelocSection::create() { in create() 38 Relocation* reloc = Relocation::Create(); in create() 45 m_pRelocData->append(*Relocation::Create()); in reserveEntry() 48 Relocation* OutputRelocSection::consumeEntry() { in consumeEntry()
|
/aosp12/frameworks/compile/mclinker/include/mcld/Target/ |
H A D | OutputRelocSection.h | 18 class Relocation; variable 31 Relocation* create(); 35 Relocation* consumeEntry();
|