/frameworks/compile/mclinker/lib/Fragment/ |
D | Relocation.cpp | 29 void Relocation::SetUp(const LinkerConfig& pConfig) { in SetUp() 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 68 Relocation::Address pAddend, in Relocation() 69 Relocation::DWord pTargetData) in Relocation() 78 Relocation::~Relocation() { in ~Relocation() [all …]
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86Relocator.h | 67 virtual Result applyRelocation(Relocation& pRelocation) = 0; 69 virtual const char* getName(Relocation::Type pType) const = 0; 80 void scanRelocation(Relocation& pReloc, 99 virtual void scanLocalReloc(Relocation& pReloc, 104 virtual void scanGlobalReloc(Relocation& pReloc, 129 Result applyRelocation(Relocation& pRelocation); 135 const char* getName(Relocation::Type pType) const; 137 Size getSize(Relocation::Type pType) const; 149 virtual bool mayHaveFunctionPointerAccess(const Relocation& pReloc) const; 153 uint32_t getDebugStringOffset(Relocation& pReloc) const; [all …]
|
D | X86Relocator.cpp | 31 static Relocation& helper_DynRel_init(ResolveInfo* pSym, in helper_DynRel_init() 37 Relocation& rel_entry = *ld_backend.getRelDyn().create(); in helper_DynRel_init() 59 static X86_32GOTEntry& helper_GOT_init(Relocation& pReloc, in helper_GOT_init() 92 static Relocator::Address helper_get_GOT_address(Relocation& pReloc, in helper_get_GOT_address() 99 static PLTEntryBase& helper_PLT_init(Relocation& pReloc, in helper_PLT_init() 116 Relocation& rel_entry = *ld_backend.getRelPLT().create(); in helper_PLT_init() 136 typedef Relocator::Result (*X86_32ApplyFunctionType)(Relocation& pReloc, 160 void X86Relocator::scanRelocation(Relocation& pReloc, in scanRelocation() 190 Relocation& rel_entry = *pTarget.getRelDyn().create(); in addCopyReloc() 278 Relocator::Result X86_32Relocator::applyRelocation(Relocation& pRelocation) { in applyRelocation() [all …]
|
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;
|
/frameworks/compile/mclinker/include/mcld/LD/ |
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 …]
|
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);
|
D | RelocData.h | 44 typedef llvm::iplist<Relocation, GCFactoryListTraits<Relocation> > 73 RelocData& append(Relocation& pRelocation); 74 Relocation& remove(Relocation& pRelocation);
|
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);
|
D | StubFactory.h | 21 class Relocation; variable 36 Stub* create(Relocation& pReloc, 48 Stub* findPrototype(const Relocation& pReloc,
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsRelocator.h | 44 void scanRelocation(Relocation& pReloc, 66 Result applyRelocation(Relocation& pReloc); 70 uint32_t getDebugStringOffset(Relocation& pReloc) const; 74 void applyDebugStringOffset(Relocation& pReloc, uint32_t pOffset); 84 void postponeRelocation(Relocation& pReloc); 91 bool isGpDisp(const Relocation& pReloc) const; 111 Relocation::DWord entryValue); 137 const char* getName(Relocation::Type pType) const; 150 Relocation::Type pType) = 0; 157 Relocation::Type pType); [all …]
|
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;
|
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,
|
D | MipsRelocator.cpp | 29 static bool HasSubType(const Relocation& pParent, Relocation::Type pType) { in HasSubType() 33 for (Relocation::Type type = pParent.type(); in HasSubType() 43 MipsRelocationInfo(Relocation& pParent, bool pIsRel) in MipsRelocationInfo() 58 const Relocation& parent() const { return *m_Parent; } in parent() 60 Relocation& parent() { return *m_Parent; } in parent() 62 Relocation::Type type() const { return m_Type & 0xff; } in type() 64 Relocation::DWord A() const { return m_Addend; } in A() 66 Relocation::DWord S() const { return m_Symbol; } in S() 68 Relocation::DWord P() const { return parent().place(); } in P() 70 Relocation::DWord result() const { return m_Result; } in result() [all …]
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
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,
|
D | AArch64Relocator.cpp | 34 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc, 72 Relocator::Result AArch64Relocator::applyRelocation(Relocation& pRelocation) { in applyRelocation() 73 Relocation::Type type = pRelocation.type(); in applyRelocation() 89 Relocator::Size AArch64Relocator::getSize(Relocation::Type pType) const { in getSize() 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() [all …]
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
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,
|
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() 106 Relocation& rela_entry = *ld_backend.getRelaPLT().create(); in helper_PLT_init() 127 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc, 176 Relocator::Result HexagonRelocator::applyRelocation(Relocation& pRelocation) { in applyRelocation() 177 Relocation::Type type = pRelocation.type(); in applyRelocation() 187 const char* HexagonRelocator::getName(Relocation::Type pType) const { in getName() 191 Relocator::Size HexagonRelocator::getSize(Relocation::Type pType) const { in getSize() [all …]
|
/frameworks/compile/mclinker/include/mcld/Fragment/ |
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);
|
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,
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
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;
|
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() 97 Relocation& rel_entry = *ld_backend.getRelDyn().create(); in helper_GOT_init() 125 static ARMPLT1& helper_PLT_init(Relocation& pReloc, ARMRelocator& pParent) { in helper_PLT_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() 282 typedef Relocator::Result (*ApplyFunctionType)(Relocation& pReloc, 307 Relocator::Result ARMRelocator::applyRelocation(Relocation& pRelocation) { in applyRelocation() 308 Relocation::Type type = pRelocation.type(); in applyRelocation() [all …]
|
/frameworks/compile/mclinker/lib/LD/ |
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()
|
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()
|
/frameworks/compile/mclinker/lib/Target/ |
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()
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | OutputRelocSection.h | 18 class Relocation; variable 31 Relocation* create(); 35 Relocation* consumeEntry();
|