Home
last modified time | relevance | path

Searched refs:pBuilder (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/compile/mclinker/lib/MC/
DCommandAction.cpp29 bool InputFileAction::activate(InputBuilder& pBuilder) const in activate()
31 pBuilder.createNode<InputTree::Positional>(path().stem().native(), path()); in activate()
44 bool NamespecAction::activate(InputBuilder& pBuilder) const in activate()
48 if (pBuilder.getConstraint().isSharedSystem()) { in activate()
52 if (pBuilder.getAttributes().isStatic()) { in activate()
72 pBuilder.createNode<InputTree::Positional>(namespec(), *path); in activate()
83 bool BitcodeAction::activate(InputBuilder& pBuilder) const in activate()
85 pBuilder.createNode<InputTree::Positional>("bitcode", path(), Input::External); in activate()
96 bool StartGroupAction::activate(InputBuilder& pBuilder) const in activate()
98 if (pBuilder.isInGroup()) { in activate()
[all …]
DFileAction.cpp22 bool ContextAction::activate(InputBuilder& pBuilder) const in activate()
24 Input* input = *pBuilder.getCurrentNode(); in activate()
36 return pBuilder.setContext(*input); in activate()
48 bool MemoryAreaAction::activate(InputBuilder& pBuilder) const in activate()
50 Input* input = *pBuilder.getCurrentNode(); in activate()
62 return pBuilder.setMemory(*input, m_Mode, m_Permission); in activate()
/frameworks/compile/mclinker/lib/LD/
DELFFileFormat.cpp67 void ELFFileFormat::initStdSections(ObjectBuilder& pBuilder, unsigned int pBitClass) in initStdSections() argument
69 f_pTextSection = pBuilder.CreateSection(".text", in initStdSections()
74 f_pNULLSection = pBuilder.CreateSection("", in initStdSections()
78 f_pReadOnlySection = pBuilder.CreateSection(".rodata", in initStdSections()
84 f_pBSSSection = pBuilder.CreateSection(".bss", in initStdSections()
89 f_pComment = pBuilder.CreateSection(".comment", in initStdSections()
94 f_pDataSection = pBuilder.CreateSection(".data", in initStdSections()
99 f_pData1 = pBuilder.CreateSection(".data1", in initStdSections()
104 f_pDebug = pBuilder.CreateSection(".debug", in initStdSections()
109 f_pInit = pBuilder.CreateSection(".init", in initStdSections()
[all …]
DELFDynObjFileFormat.cpp17 void ELFDynObjFileFormat::initObjectFormat(ObjectBuilder& pBuilder, in initObjectFormat() argument
20 f_pDynSymTab = pBuilder.CreateSection(".dynsym", in initObjectFormat()
25 f_pDynStrTab = pBuilder.CreateSection(".dynstr", in initObjectFormat()
30 f_pInterp = pBuilder.CreateSection(".interp", in initObjectFormat()
35 f_pHashTab = pBuilder.CreateSection(".hash", in initObjectFormat()
40 f_pDynamic = pBuilder.CreateSection(".dynamic", in initObjectFormat()
45 f_pRelaDyn = pBuilder.CreateSection(".rela.dyn", in initObjectFormat()
50 f_pRelaPlt = pBuilder.CreateSection(".rela.plt", in initObjectFormat()
55 f_pRelDyn = pBuilder.CreateSection(".rel.dyn", in initObjectFormat()
60 f_pRelPlt = pBuilder.CreateSection(".rel.plt", in initObjectFormat()
[all …]
DELFExecFileFormat.cpp17 void ELFExecFileFormat::initObjectFormat(ObjectBuilder& pBuilder, in initObjectFormat() argument
21 f_pDynSymTab = pBuilder.CreateSection(".dynsym", in initObjectFormat()
26 f_pDynStrTab = pBuilder.CreateSection(".dynstr", in initObjectFormat()
31 f_pInterp = pBuilder.CreateSection(".interp", in initObjectFormat()
36 f_pHashTab = pBuilder.CreateSection(".hash", in initObjectFormat()
41 f_pDynamic = pBuilder.CreateSection(".dynamic", in initObjectFormat()
46 f_pRelaDyn = pBuilder.CreateSection(".rela.dyn", in initObjectFormat()
51 f_pRelaPlt = pBuilder.CreateSection(".rela.plt", in initObjectFormat()
56 f_pRelDyn = pBuilder.CreateSection(".rel.dyn", in initObjectFormat()
61 f_pRelPlt = pBuilder.CreateSection(".rel.plt", in initObjectFormat()
[all …]
/frameworks/compile/mclinker/lib/Target/X86/
DX86LDBackend.h44 void doPreLayout(IRBuilder& pBuilder);
47 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
82 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) = 0;
84 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
109 void defineGOTSymbol(IRBuilder& pBuilder, Fragment&);
124 virtual void setGOTSectionSize(IRBuilder& pBuilder) = 0;
168 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
182 void setGOTSectionSize(IRBuilder& pBuilder);
211 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
225 void setGOTSectionSize(IRBuilder& pBuilder);
DX86Relocator.h85 IRBuilder& pBuilder,
104 IRBuilder& pBuilder,
109 IRBuilder& pBuilder,
160 IRBuilder& pBuilder,
165 IRBuilder& pBuilder,
220 IRBuilder& pBuilder,
225 IRBuilder& pBuilder,
DX86LDBackend.cpp87 void X86GNULDBackend::doPreLayout(IRBuilder& pBuilder) in doPreLayout() argument
96 setGOTSectionSize(pBuilder); in doPreLayout()
117 addEhFrameForPLT(pBuilder.getModule()); in doPreLayout()
121 IRBuilder& pBuilder) in doPostLayout() argument
141 void X86GNULDBackend::defineGOTSymbol(IRBuilder& pBuilder, Fragment& pFrag) in defineGOTSymbol() argument
145 pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in defineGOTSymbol()
156 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Resolve>( in defineGOTSymbol()
276 void X86GNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) in initTargetSymbols() argument
282 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
374 ObjectBuilder& pBuilder) in initTargetSections() argument
[all …]
/frameworks/compile/mclinker/include/mcld/Target/
DTargetLDBackend.h57 virtual void initTargetSegments(IRBuilder& pBuilder) { } in initTargetSegments() argument
58 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) { } in initTargetSections() argument
59 virtual void initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { } in initTargetSymbols() argument
60 virtual void initTargetRelocation(IRBuilder& pBuilder) { } in initTargetRelocation() argument
61 virtual bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule) = 0;
75 virtual bool initStdSections(ObjectBuilder& pBuilder) = 0;
81 virtual void preLayout(Module& pModule, IRBuilder& pBuilder) = 0;
84 virtual void postLayout(Module& pModule, IRBuilder& pBuilder) = 0;
153 virtual bool relax(Module& pModule, IRBuilder& pBuilder) = 0;
DGNULDBackend.h58 ELFObjectReader* createObjectReader(IRBuilder& pBuilder);
59 ELFDynObjReader* createDynObjReader(IRBuilder& pBuilder);
60 ELFBinaryReader* createBinaryReader(IRBuilder& pBuilder);
65 bool initStdSections(ObjectBuilder& pBuilder);
79 bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule);
415 void preLayout(Module& pModule, IRBuilder& pBuilder);
418 void postLayout(Module& pModule, IRBuilder& pBuilder);
421 virtual void doPreLayout(IRBuilder& pBuilder) = 0;
436 bool relax(Module& pModule, IRBuilder& pBuilder);
445 virtual bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished) in doRelax() argument
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64LDBackend.h39 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
42 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
52 void doPreLayout(IRBuilder& pBuilder);
55 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
115 void defineGOTSymbol(IRBuilder& pBuilder);
127 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
DAArch64LDBackend.cpp88 ObjectBuilder& pBuilder) in initTargetSections() argument
128 void AArch64GNULDBackend::initTargetSymbols(IRBuilder& pBuilder, in initTargetSymbols() argument
134 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
167 void AArch64GNULDBackend::defineGOTSymbol(IRBuilder& pBuilder) in defineGOTSymbol() argument
171 pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in defineGOTSymbol()
182 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Resolve>( in defineGOTSymbol()
194 void AArch64GNULDBackend::doPreLayout(IRBuilder& pBuilder) in doPreLayout() argument
208 defineGOTSymbol(pBuilder); in doPreLayout()
217 defineGOTSymbol(pBuilder); in doPreLayout()
246 void AArch64GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) in doPostLayout() argument
[all …]
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.h44 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
47 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
54 void doPreLayout(IRBuilder& pBuilder);
57 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
132 void defineGOTSymbol(IRBuilder& pBuilder);
133 void defineGOTPLTSymbol(IRBuilder& pBuilder);
135 bool relaxRelocation(IRBuilder& pBuilder, Relocation& pRel);
155 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
250 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
267 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
DMipsLDBackend.cpp94 ObjectBuilder& pBuilder) in initTargetSections() argument
110 void MipsGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) in initTargetSymbols() argument
114 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
127 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
137 m_pGpDispSymbol = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
146 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Unresolve>( in initTargetSymbols()
169 void MipsGNULDBackend::doPreLayout(IRBuilder& pBuilder) in doPreLayout() argument
184 defineGOTSymbol(pBuilder); in doPreLayout()
190 defineGOTPLTSymbol(pBuilder); in doPreLayout()
216 void MipsGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) in doPostLayout() argument
[all …]
DMipsRelocator.h41 IRBuilder& pBuilder,
143 IRBuilder& pBuilder,
147 IRBuilder& pBuilder,
160 LDSymbol& defineSymbolforCopyReloc(IRBuilder& pBuilder,
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.h49 void doPreLayout(IRBuilder& pBuilder);
54 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
97 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
99 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
107 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
151 void defineGOTSymbol(IRBuilder& pBuilder, Fragment&);
169 virtual void setGOTSectionSize(IRBuilder& pBuilder);
DHexagonLDBackend.cpp87 void HexagonLDBackend::doPreLayout(IRBuilder& pBuilder) in doPreLayout() argument
97 setGOTSectionSize(pBuilder); in doPreLayout()
121 void HexagonLDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) in doPostLayout() argument
313 void HexagonLDBackend::setGOTSectionSize(IRBuilder& pBuilder) in setGOTSectionSize() argument
320 defineGOTSymbol(pBuilder, *(m_pGOTPLT->begin())); in setGOTSectionSize()
349 void HexagonLDBackend::defineGOTSymbol(IRBuilder& pBuilder, in defineGOTSymbol() argument
354 pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in defineGOTSymbol()
365 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Resolve>( in defineGOTSymbol()
432 ObjectBuilder& pBuilder) in initTargetSections() argument
462 m_psdata = pBuilder.CreateSection(".sdata", in initTargetSections()
[all …]
DHexagonRelocator.h83 IRBuilder& pBuilder,
129 IRBuilder& pBuilder,
134 IRBuilder& pBuilder,
/frameworks/compile/mclinker/lib/Target/ARM/
DARMLDBackend.h49 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
52 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
62 void doPreLayout(IRBuilder& pBuilder);
65 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
134 void defineGOTSymbol(IRBuilder& pBuilder);
148 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
DARMLDBackend.cpp82 void ARMGNULDBackend::initTargetSections(Module& pModule, ObjectBuilder& pBuilder) in initTargetSections() argument
86 m_pEXIDX = pBuilder.CreateSection(".ARM.exidx", in initTargetSections()
91 m_pEXTAB = pBuilder.CreateSection(".ARM.extab", in initTargetSections()
96 m_pAttributes = pBuilder.CreateSection(".ARM.attributes", in initTargetSections()
129 void ARMGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) in initTargetSymbols() argument
134 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
151 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
162 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
178 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
189 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
[all …]
DARMRelocator.h96 IRBuilder& pBuilder,
110 IRBuilder& pBuilder,
/frameworks/compile/mclinker/tools/mcld/
Dmain.cpp41 mcld::IRBuilder& pBuilder, in ConfigLinker() argument
94 inline bool InitializeInputs(mcld::IRBuilder& pBuilder, in InitializeInputs() argument
100 (*action)->activate(pBuilder.getInputBuilder()); in InitializeInputs()
104 if (pBuilder.getInputBuilder().isInGroup()) { in InitializeInputs()
/frameworks/compile/mclinker/include/mcld/MC/
DFileAction.h26 bool activate(InputBuilder& pBuilder) const;
39 bool activate(InputBuilder& pBuilder) const;
/frameworks/compile/mclinker/lib/Core/
DLinker.cpp66 bool Linker::link(Module& pModule, IRBuilder& pBuilder) in link() argument
68 if (!normalize(pModule, pBuilder)) in link()
78 bool Linker::normalize(Module& pModule, IRBuilder& pBuilder) in normalize() argument
82 m_pIRBuilder = &pBuilder; in normalize()
87 if (!m_pObjLinker->initialize(pModule, pBuilder)) in normalize()
/frameworks/compile/mclinker/include/mcld/
DLinker.h43 bool normalize(Module& pModule, IRBuilder& pBuilder);
52 bool link(Module& pModule, IRBuilder& pBuilder);

123