Home
last modified time | relevance | path

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

123

/frameworks/compile/mclinker/lib/MC/
DCommandAction.cpp35 bool InputFileAction::activate(InputBuilder& pBuilder) const { in activate()
36 pBuilder.createNode<InputTree::Positional>(path().stem().native(), path()); in activate()
49 bool NamespecAction::activate(InputBuilder& pBuilder) const { in activate()
52 if (pBuilder.getConstraint().isSharedSystem()) { in activate()
56 if (pBuilder.getAttributes().isStatic()) { in activate()
74 pBuilder.createNode<InputTree::Positional>(namespec(), *path); in activate()
85 bool BitcodeAction::activate(InputBuilder& pBuilder) const { in activate()
86 pBuilder.createNode<InputTree::Positional>( in activate()
98 bool StartGroupAction::activate(InputBuilder& pBuilder) const { in activate()
99 if (pBuilder.isInGroup()) { in activate()
[all …]
DFileAction.cpp22 bool ContextAction::activate(InputBuilder& pBuilder) const { in activate()
23 Input* input = *pBuilder.getCurrentNode(); in activate()
33 return pBuilder.setContext(*input); in activate()
45 bool MemoryAreaAction::activate(InputBuilder& pBuilder) const { in activate()
46 Input* input = *pBuilder.getCurrentNode(); in activate()
56 return pBuilder.setMemory(*input, m_Mode, m_Permission); in activate()
/frameworks/compile/mclinker/lib/LD/
DELFFileFormat.cpp66 void ELFFileFormat::initStdSections(ObjectBuilder& pBuilder, in initStdSections() argument
69 pBuilder.CreateSection(".text", in initStdSections()
75 pBuilder.CreateSection("", LDFileFormat::Null, llvm::ELF::SHT_NULL, 0x0); in initStdSections()
76 f_pReadOnlySection = pBuilder.CreateSection(".rodata", in initStdSections()
83 pBuilder.CreateSection(".bss", in initStdSections()
88 f_pComment = pBuilder.CreateSection( in initStdSections()
91 pBuilder.CreateSection(".data", in initStdSections()
96 f_pData1 = pBuilder.CreateSection(".data1", in initStdSections()
101 f_pDebug = pBuilder.CreateSection( in initStdSections()
104 pBuilder.CreateSection(".init", in initStdSections()
[all …]
DELFExecFileFormat.cpp17 void ELFExecFileFormat::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()
41 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 …]
DELFDynObjFileFormat.cpp17 void ELFDynObjFileFormat::initObjectFormat(ObjectBuilder& pBuilder, in initObjectFormat() argument
19 f_pDynSymTab = pBuilder.CreateSection(".dynsym", in initObjectFormat()
24 f_pDynStrTab = pBuilder.CreateSection(".dynstr", in initObjectFormat()
29 f_pInterp = pBuilder.CreateSection(".interp", in initObjectFormat()
34 f_pHashTab = pBuilder.CreateSection(".hash", in initObjectFormat()
40 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 …]
DStubFactory.cpp42 IRBuilder& pBuilder, in create() argument
70 stub->applyFixup(pReloc, pBuilder, *islands.first); in create()
81 IRBuilder& pBuilder, in create() argument
97 stub->applyFixup(pFragRef, pBuilder, *islands.first); in create()
/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);
108 void defineGOTSymbol(IRBuilder& pBuilder, Fragment&);
121 virtual void setGOTSectionSize(IRBuilder& pBuilder) = 0;
164 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
178 void setGOTSectionSize(IRBuilder& pBuilder);
206 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
220 void setGOTSectionSize(IRBuilder& pBuilder);
DX86Relocator.h81 IRBuilder& pBuilder,
100 IRBuilder& pBuilder,
105 IRBuilder& pBuilder,
161 IRBuilder& pBuilder,
166 IRBuilder& pBuilder,
226 IRBuilder& pBuilder,
231 IRBuilder& pBuilder,
DX86LDBackend.cpp82 void X86GNULDBackend::doPreLayout(IRBuilder& pBuilder) { in doPreLayout() argument
90 setGOTSectionSize(pBuilder); in doPreLayout()
113 addEhFrameForPLT(pBuilder.getModule()); in doPreLayout()
116 void X86GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
133 void X86GNULDBackend::defineGOTSymbol(IRBuilder& pBuilder, Fragment& pFrag) { in defineGOTSymbol() argument
136 pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in defineGOTSymbol()
146 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Resolve>( in defineGOTSymbol()
254 void X86GNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { in initTargetSymbols() argument
259 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
346 ObjectBuilder& pBuilder) { in initTargetSections() argument
[all …]
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64LDBackend.h41 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
44 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
54 void doPreLayout(IRBuilder& pBuilder);
57 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
117 void defineGOTSymbol(IRBuilder& pBuilder);
123 IRBuilder& pBuilder,
134 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
DAArch64LDBackend.cpp89 ObjectBuilder& pBuilder) { in initTargetSections() argument
125 void AArch64GNULDBackend::initTargetSymbols(IRBuilder& pBuilder, in initTargetSymbols() argument
131 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
160 void AArch64GNULDBackend::defineGOTSymbol(IRBuilder& pBuilder) { in defineGOTSymbol() argument
163 pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in defineGOTSymbol()
173 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Resolve>( in defineGOTSymbol()
185 void AArch64GNULDBackend::doPreLayout(IRBuilder& pBuilder) { in doPreLayout() argument
197 defineGOTSymbol(pBuilder); in doPreLayout()
204 defineGOTSymbol(pBuilder); in doPreLayout()
235 void AArch64GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
[all …]
/frameworks/compile/mclinker/include/mcld/Target/
DTargetLDBackend.h61 virtual void initTargetSegments(IRBuilder& pBuilder) {} in initTargetSegments() argument
62 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) {} in initTargetSections() argument
63 virtual void initTargetSymbols(IRBuilder& pBuilder, Module& pModule) {} in initTargetSymbols() argument
64 virtual void initTargetRelocation(IRBuilder& pBuilder) {} in initTargetRelocation() argument
65 virtual bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule) = 0;
79 virtual bool initStdSections(ObjectBuilder& pBuilder) = 0;
85 virtual void preLayout(Module& pModule, IRBuilder& pBuilder) = 0;
88 virtual void postLayout(Module& pModule, IRBuilder& pBuilder) = 0;
165 virtual bool relax(Module& pModule, IRBuilder& pBuilder) = 0;
DGNULDBackend.h57 ELFObjectReader* createObjectReader(IRBuilder& pBuilder);
58 ELFDynObjReader* createDynObjReader(IRBuilder& pBuilder);
59 ELFBinaryReader* createBinaryReader(IRBuilder& pBuilder);
64 bool initStdSections(ObjectBuilder& pBuilder);
78 bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule);
413 void preLayout(Module& pModule, IRBuilder& pBuilder);
416 void postLayout(Module& pModule, IRBuilder& pBuilder);
419 virtual void doPreLayout(IRBuilder& pBuilder) = 0;
434 virtual bool relax(Module& pModule, IRBuilder& pBuilder);
443 virtual bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished) { in doRelax() argument
/frameworks/compile/mclinker/lib/Target/ARM/
DARMLDBackend.h50 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
53 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
63 void doPreLayout(IRBuilder& pBuilder);
66 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
141 void defineGOTSymbol(IRBuilder& pBuilder);
152 virtual bool relax(Module& pModule, IRBuilder& pBuilder);
158 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
DARMLDBackend.cpp150 ObjectBuilder& pBuilder) { in initTargetSections() argument
154 pBuilder.CreateSection(".ARM.exidx", in initTargetSections()
159 m_pEXTAB = pBuilder.CreateSection(".ARM.extab", in initTargetSections()
164 m_pAttributes = pBuilder.CreateSection(".ARM.attributes", in initTargetSections()
197 void ARMGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { in initTargetSymbols() argument
202 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
218 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
228 m_pEXIDXEnd = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
244 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
254 m_pEXIDXEnd = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
[all …]
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.h48 void doPreLayout(IRBuilder& pBuilder);
53 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
95 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
97 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
105 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
146 void defineGOTSymbol(IRBuilder& pBuilder, Fragment&);
162 virtual void setGOTSectionSize(IRBuilder& pBuilder);
DHexagonLDBackend.cpp84 void HexagonLDBackend::doPreLayout(IRBuilder& pBuilder) { in doPreLayout() argument
93 setGOTSectionSize(pBuilder); in doPreLayout()
119 void HexagonLDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
291 void HexagonLDBackend::setGOTSectionSize(IRBuilder& pBuilder) { in setGOTSectionSize() argument
296 defineGOTSymbol(pBuilder, *(m_pGOTPLT->begin())); in setGOTSectionSize()
323 void HexagonLDBackend::defineGOTSymbol(IRBuilder& pBuilder, Fragment& pFrag) { in defineGOTSymbol() argument
326 pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in defineGOTSymbol()
336 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Resolve>( in defineGOTSymbol()
404 ObjectBuilder& pBuilder) { in initTargetSections() argument
429 m_psdata = pBuilder.CreateSection(".sdata", in initTargetSections()
[all …]
DHexagonRelocator.h79 IRBuilder& pBuilder,
130 IRBuilder& pBuilder,
135 IRBuilder& pBuilder,
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.h45 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
48 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
55 void doPreLayout(IRBuilder& pBuilder);
58 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
141 void defineGOTSymbol(IRBuilder& pBuilder);
142 void defineGOTPLTSymbol(IRBuilder& pBuilder);
144 bool relaxRelocation(IRBuilder& pBuilder, Relocation& pRel);
164 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
277 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
293 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
DMipsLDBackend.cpp97 ObjectBuilder& pBuilder) { in initTargetSections() argument
112 m_psdata = pBuilder.CreateSection( in initTargetSections()
118 m_pAbiFlags = pBuilder.CreateSection(".MIPS.abiflags", LDFileFormat::Target, in initTargetSections()
123 void MipsGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { in initTargetSymbols() argument
126 m_pGOTSymbol = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
138 m_pPLTSymbol = pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
149 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Resolve>( in initTargetSymbols()
159 pBuilder.AddSymbol<IRBuilder::AsReferred, IRBuilder::Unresolve>( in initTargetSymbols()
180 void MipsGNULDBackend::doPreLayout(IRBuilder& pBuilder) { in doPreLayout() argument
196 defineGOTSymbol(pBuilder); in doPreLayout()
[all …]
DMipsRelocator.h45 IRBuilder& pBuilder,
173 IRBuilder& pBuilder,
177 IRBuilder& pBuilder,
190 LDSymbol& defineSymbolforCopyReloc(IRBuilder& pBuilder,
/frameworks/compile/mclinker/lib/Fragment/
DStub.cpp33 IRBuilder& pBuilder, in applyFixup() argument
45 pBuilder.AddSymbol<IRBuilder::Force, IRBuilder::Unresolve>( in applyFixup()
68 IRBuilder& pBuilder, in applyFixup() argument
/frameworks/compile/mclinker/include/mcld/MC/
DFileAction.h25 bool activate(InputBuilder& pBuilder) const;
37 bool activate(InputBuilder& pBuilder) const;
/frameworks/compile/mclinker/include/mcld/LD/
DStubFactory.h38 IRBuilder& pBuilder,
42 IRBuilder& pBuilder,
/frameworks/compile/mclinker/lib/Core/
DLinker.cpp66 bool Linker::link(Module& pModule, IRBuilder& pBuilder) { in link() argument
67 if (!normalize(pModule, pBuilder)) in link()
77 bool Linker::normalize(Module& pModule, IRBuilder& pBuilder) { in normalize() argument
80 m_pIRBuilder = &pBuilder; in normalize()
85 if (!m_pObjLinker->initialize(pModule, pBuilder)) in normalize()

123