/frameworks/compile/mclinker/lib/LD/ |
D | ELFFileFormat.cpp | 69 void ELFFileFormat::initObjectFormat(MCLinker& pLinker) in initObjectFormat() argument 71 f_pTextSection = &pLinker.getOrCreateOutputSectHdr(".text", in initObjectFormat() 76 f_pNULLSection = &pLinker.getOrCreateOutputSectHdr("", in initObjectFormat() 80 f_pReadOnlySection = &pLinker.getOrCreateOutputSectHdr(".rodata", in initObjectFormat() 86 f_pBSSSection = &pLinker.getOrCreateOutputSectHdr(".bss", in initObjectFormat() 91 f_pComment = &pLinker.getOrCreateOutputSectHdr(".comment", in initObjectFormat() 96 f_pDataSection = &pLinker.getOrCreateOutputSectHdr(".data", in initObjectFormat() 101 f_pData1 = &pLinker.getOrCreateOutputSectHdr(".data1", in initObjectFormat() 106 f_pDebug = &pLinker.getOrCreateOutputSectHdr(".debug", in initObjectFormat() 111 f_pInit = &pLinker.getOrCreateOutputSectHdr(".init", in initObjectFormat() [all …]
|
D | ELFDynObjFileFormat.cpp | 18 void ELFDynObjFileFormat::initObjectType(MCLinker& pLinker) in initObjectType() argument 20 f_pDynSymTab = &pLinker.getOrCreateOutputSectHdr(".dynsym", in initObjectType() 25 f_pDynStrTab = &pLinker.getOrCreateOutputSectHdr(".dynstr", in initObjectType() 30 f_pInterp = &pLinker.getOrCreateOutputSectHdr(".interp", in initObjectType() 35 f_pHashTab = &pLinker.getOrCreateOutputSectHdr(".hash", in initObjectType() 40 f_pDynamic = &pLinker.getOrCreateOutputSectHdr(".dynamic", in initObjectType() 45 f_pRelaDyn = &pLinker.getOrCreateOutputSectHdr(".rela.dyn", in initObjectType() 50 f_pRelaPlt = &pLinker.getOrCreateOutputSectHdr(".rela.plt", in initObjectType() 55 f_pRelDyn = &pLinker.getOrCreateOutputSectHdr(".rel.dyn", in initObjectType() 60 f_pRelPlt = &pLinker.getOrCreateOutputSectHdr(".rel.plt", in initObjectType() [all …]
|
D | ELFExecFileFormat.cpp | 18 void ELFExecFileFormat::initObjectType(MCLinker& pLinker) in initObjectType() argument 21 f_pDynSymTab = &pLinker.getOrCreateOutputSectHdr(".dynsym", in initObjectType() 26 f_pDynStrTab = &pLinker.getOrCreateOutputSectHdr(".dynstr", in initObjectType() 31 f_pInterp = &pLinker.getOrCreateOutputSectHdr(".interp", in initObjectType() 36 f_pHashTab = &pLinker.getOrCreateOutputSectHdr(".hash", in initObjectType() 41 f_pDynamic = &pLinker.getOrCreateOutputSectHdr(".dynamic", in initObjectType() 46 f_pRelaDyn = &pLinker.getOrCreateOutputSectHdr(".rela.dyn", in initObjectType() 51 f_pRelaPlt = &pLinker.getOrCreateOutputSectHdr(".rela.plt", in initObjectType() 56 f_pRelDyn = &pLinker.getOrCreateOutputSectHdr(".rel.dyn", in initObjectType() 61 f_pRelPlt = &pLinker.getOrCreateOutputSectHdr(".rel.plt", in initObjectType() [all …]
|
D | LDFileFormat.cpp | 27 void LDFileFormat::initStdSections(MCLinker& pLinker) in initStdSections() argument 29 initObjectFormat(pLinker); in initStdSections() 30 initObjectType(pLinker); in initStdSections()
|
D | ELFObjectWriter.cpp | 15 ELFObjectWriter::ELFObjectWriter(GNULDBackend& pBackend, MCLinker& pLinker) in ELFObjectWriter() argument 16 : ObjectWriter(pBackend), ELFWriter(pBackend), m_Linker(pLinker) { in ELFObjectWriter()
|
D | ELFReader.cpp | 156 MCLinker& pLinker, in getSymFragmentRef() argument 170 FragmentRef* result = pLinker.getLayout().getFragmentRef(*sect_hdr, pOffset); in getSymFragmentRef() 208 MCLinker& pLinker, in readEhFrame() argument 211 LDSection& out_sect = pLinker.getOrCreateOutputSectHdr(pInputSectHdr.name(), in readEhFrame() 216 size_t size = pLinker.addEhFrame(pInput, pInputSectHdr, *pInput.memArea()); in readEhFrame()
|
D | ELFDynObjReader.cpp | 26 ELFDynObjReader::ELFDynObjReader(GNULDBackend& pBackend, MCLinker& pLinker) in ELFDynObjReader() argument 29 m_Linker(pLinker) { in ELFDynObjReader()
|
D | ELFDynObjWriter.cpp | 25 ELFDynObjWriter::ELFDynObjWriter(GNULDBackend& pBackend, MCLinker& pLinker) in ELFDynObjWriter() argument 29 m_Linker(pLinker) { in ELFDynObjWriter()
|
D | ELFExecWriter.cpp | 25 ELFExecWriter::ELFExecWriter(GNULDBackend& pBackend, MCLinker& pLinker) in ELFExecWriter() argument 29 m_Linker(pLinker) { in ELFExecWriter()
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86LDBackend.cpp | 67 bool X86GNULDBackend::initRelocFactory(const MCLinker& pLinker) in initRelocFactory() argument 71 m_pRelocFactory->setLayout(pLinker.getLayout()); in initRelocFactory() 78 MCLinker& pLinker) in doPreLayout() argument 82 createX86GOTPLT(pLinker, pOutput); in doPreLayout() 88 MCLinker& pLinker) in doPostLayout() argument 110 void X86GNULDBackend::createX86GOT(MCLinker& pLinker, const Output& pOutput) in createX86GOT() argument 116 m_pGOT = new X86GOT(got, pLinker.getOrCreateSectData(got)); in createX86GOT() 119 void X86GNULDBackend::createX86GOTPLT(MCLinker& pLinker, const Output& pOutput) in createX86GOTPLT() argument 125 m_pGOTPLT = new X86GOTPLT(gotplt, pLinker.getOrCreateSectData(gotplt)); in createX86GOTPLT() 129 pLinker.defineSymbol<MCLinker::Force, MCLinker::Unresolve>( in createX86GOTPLT() [all …]
|
D | X86LDBackend.h | 99 MCLinker& pLinker); 104 MCLinker& pLinker); 159 bool initRelocFactory(const MCLinker& pLinker); 161 void initTargetSections(MCLinker& pLinker); 163 void initTargetSymbols(MCLinker& pLinker, const Output& pOutput); 173 MCLinker& pLinker, 192 bool finalizeTargetSymbols(MCLinker& pLinker, const Output& pOutput); 197 MCLinker& pLinker, 203 MCLinker& pLinker, 214 LDSymbol& defineSymbolforCopyReloc(MCLinker& pLinker, [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMLDBackend.cpp | 66 bool ARMGNULDBackend::initRelocFactory(const MCLinker& pLinker) in initRelocFactory() argument 70 m_pRelocFactory->setLayout(pLinker.getLayout()); in initRelocFactory() 90 void ARMGNULDBackend::initTargetSections(MCLinker& pLinker) in initTargetSections() argument 94 m_pEXIDX = &pLinker.getOrCreateOutputSectHdr(".ARM.exidx", in initTargetSections() 99 m_pEXTAB = &pLinker.getOrCreateOutputSectHdr(".ARM.extab", in initTargetSections() 104 m_pAttributes = &pLinker.getOrCreateOutputSectHdr(".ARM.attributes", in initTargetSections() 111 void ARMGNULDBackend::initTargetSymbols(MCLinker& pLinker, const Output& pOutput) in initTargetSymbols() argument 115 m_pGOTSymbol = pLinker.defineSymbol<MCLinker::AsRefered, MCLinker::Resolve>( in initTargetSymbols() 129 MCLinker& pLinker) in doPreLayout() argument 133 createARMGOT(pLinker, pOutput); in doPreLayout() [all …]
|
D | ARMLDBackend.h | 86 void initTargetSections(MCLinker& pLinker); 89 void initTargetSymbols(MCLinker& pLinker, const Output& pOutput); 92 bool initRelocFactory(const MCLinker& pLinker); 105 MCLinker& pLinker, 137 MCLinker& pLinker); 142 MCLinker& pLinker); 198 bool finalizeTargetSymbols(MCLinker& pLinker, const Output& pOutput); 202 MCLinker& pLinker, 208 MCLinker& pLinker, 214 MCLinker& pLinker, [all …]
|
/frameworks/compile/mclinker/include/mcld/Target/ |
D | TargetLDBackend.h | 54 virtual void initTargetSegments(MCLinker& pLinker) { } in initTargetSegments() argument 55 virtual void initTargetSections(MCLinker& pLinker) { } in initTargetSections() argument 56 virtual void initTargetSymbols(MCLinker& pLinker, const Output& pOutput) { } in initTargetSymbols() argument 57 virtual void initTargetRelocation(MCLinker& pLinker) { } in initTargetRelocation() argument 58 virtual bool initStandardSymbols(MCLinker& pLinker, const Output& pOutput) = 0; 59 virtual bool initRelocFactory(const MCLinker& pLinker) = 0; 72 MCLinker& pLinker, 103 MCLinker& pLinker) = 0; 108 MCLinker& pLinker) = 0; 113 MCLinker& pLinker) = 0; [all …]
|
D | GNULDBackend.h | 68 bool initArchiveReader(MCLinker& pLinker, 71 bool initObjectReader(MCLinker& pLinker); 72 bool initDynObjReader(MCLinker& pLinker); 73 bool initObjectWriter(MCLinker& pLinker); 74 bool initDynObjWriter(MCLinker& pLinker); 75 bool initExecWriter(MCLinker& pLinker); 120 bool initStandardSymbols(MCLinker& pLinker, const Output& pOutput); 126 bool finalizeSymbols(MCLinker& pLinker, const Output& pOutput) { in finalizeSymbols() argument 127 return (finalizeStandardSymbols(pLinker, pOutput) && in finalizeSymbols() 128 finalizeTargetSymbols(pLinker, pOutput)); in finalizeSymbols() [all …]
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsLDBackend.h | 43 void initTargetSections(MCLinker& pLinker); 46 void initTargetSymbols(MCLinker& pLinker, const Output& pOutput); 49 bool initRelocFactory(const MCLinker& pLinker); 59 MCLinker& pLinker, 87 MCLinker& pLinker); 92 MCLinker& pLinker); 143 bool finalizeTargetSymbols(MCLinker& pLinker, const Output& pOutput); 147 bool allocateCommonSymbols(const MCLDInfo& pLDInfo, MCLinker& pLinker) const; 152 MCLinker& pLinker, 158 MCLinker& pLinker, [all …]
|
D | MipsLDBackend.cpp | 69 void MipsGNULDBackend::initTargetSections(MCLinker& pLinker) in initTargetSections() argument 73 void MipsGNULDBackend::initTargetSymbols(MCLinker& pLinker, const Output& pOutput) in initTargetSymbols() argument 77 m_pGOTSymbol = pLinker.defineSymbol<MCLinker::AsRefered, MCLinker::Resolve>( in initTargetSymbols() 88 m_pGpDispSymbol = pLinker.defineSymbol<MCLinker::AsRefered, MCLinker::Resolve>( in initTargetSymbols() 104 bool MipsGNULDBackend::initRelocFactory(const MCLinker& pLinker) in initRelocFactory() argument 108 m_pRelocFactory->setLayout(pLinker.getLayout()); in initRelocFactory() 121 MCLinker& pLinker, in scanRelocation() argument 133 updateAddend(pReloc, pInputSym, pLinker.getLayout()); in scanRelocation() 142 createGOT(pLinker, pOutput); in scanRelocation() 155 scanLocalReloc(pReloc, pInputSym, pLinker, pLDInfo, pOutput); in scanRelocation() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFReader.h | 72 MCLinker& pLinker, 77 MCLinker& pLinker, 82 MCLinker& pLinker, 87 MCLinker& pLinker, 100 MCLinker& pLinker, 106 MCLinker& pLinker, 111 MCLinker& pLinker, 143 MCLinker& pLinker, 196 MCLinker& pLinker, 201 MCLinker& pLinker, [all …]
|
D | ELFReader.tcc | 87 MCLinker& pLinker, in readSectionHeaders() argument 173 LDSection& section = pLinker.createSectHdr(sect_name+sh_name, in readSectionHeaders() 215 MCLinker& pLinker, in readRegularSection() argument 218 LDSection& out_sect = pLinker.getOrCreateOutputSectHdr(pInputSectHdr.name(), in readRegularSection() 226 SectionData& sect_data = pLinker.getOrCreateSectData(pInputSectHdr); in readRegularSection() 237 uint64_t size = pLinker.getLayout().appendFragment(*frag, in readRegularSection() 247 MCLinker& pLinker, in readTargetSection() argument 250 return target().readSection(pInput, pLinker, pInputSectHdr); in readTargetSection() 255 MCLinker& pLinker, in readSymbols() argument 313 pLinker, in readSymbols() [all …]
|
D | ELFWriter.h | 67 void emitELF32SectionHeader(Output& pOutput, MCLinker& pLinker) const; 69 void emitELF64SectionHeader(Output& pOutput, MCLinker& pLinker) const; 78 void emitELF32ShStrTab(Output& pOutput, MCLinker& pLinker) const; 80 void emitELF64ShStrTab(Output& pOutput, MCLinker& pLinker) const;
|
D | LDFileFormat.h | 54 void initStdSections(MCLinker& pLinker); 58 virtual void initObjectFormat(MCLinker& pLinker) = 0; 62 virtual void initObjectType(MCLinker& pLinker) = 0;
|
D | ELFExecFileFormat.h | 31 void initObjectType(MCLinker& pLinker);
|
/frameworks/compile/mclinker/lib/Target/ |
D | GNULDBackend.cpp | 107 bool GNULDBackend::initArchiveReader(MCLinker& pLinker, in initArchiveReader() argument 120 bool GNULDBackend::initObjectReader(MCLinker& pLinker) in initObjectReader() argument 123 m_pObjectReader = new ELFObjectReader(*this, pLinker); in initObjectReader() 127 bool GNULDBackend::initDynObjReader(MCLinker& pLinker) in initDynObjReader() argument 130 m_pDynObjReader = new ELFDynObjReader(*this, pLinker); in initDynObjReader() 140 bool GNULDBackend::initDynObjWriter(MCLinker& pLinker) in initDynObjWriter() argument 143 m_pDynObjWriter = new ELFDynObjWriter(*this, pLinker); in initDynObjWriter() 147 bool GNULDBackend::initExecWriter(MCLinker& pLinker) in initExecWriter() argument 150 m_pExecWriter = new ELFExecWriter(*this, pLinker); in initExecWriter() 174 bool GNULDBackend::initStandardSymbols(MCLinker& pLinker, const Output& pOutput) in initStandardSymbols() argument [all …]
|
/frameworks/compile/libbcc/tools/mcld/ |
D | Main.cpp | 186 bool ConfigLinker(Linker &pLinker, const std::string &pOutputFilename) { in ConfigLinker() argument 246 Linker::ErrorCode result = pLinker.config(*config); in ConfigLinker() 257 bool PrepareInputOutput(Linker &pLinker, const std::string &pOutputPath) { in PrepareInputOutput() argument 262 Linker::ErrorCode result = pLinker.setOutput(pOutputPath); in PrepareInputOutput() 295 result = pLinker.addObject(*file_it); in PrepareInputOutput() 303 result = pLinker.addNameSpec(*lib_it); in PrepareInputOutput() 318 static inline bool LinkFiles(Linker &pLinker) { in LinkFiles() argument 319 Linker::ErrorCode result = pLinker.link(); in LinkFiles()
|
/frameworks/compile/mclinker/tools/mcld/ |
D | main.cpp | 179 bool ConfigLinker(Linker &pLinker, const std::string &pOutputFilename) { in ConfigLinker() argument 239 Linker::ErrorCode result = pLinker.config(*config); in ConfigLinker() 250 bool PrepareInputOutput(Linker &pLinker, const std::string &pOutputPath) { in PrepareInputOutput() argument 255 Linker::ErrorCode result = pLinker.setOutput(pOutputPath); in PrepareInputOutput() 288 result = pLinker.addObject(*file_it); in PrepareInputOutput() 296 result = pLinker.addNameSpec(*lib_it); in PrepareInputOutput() 311 static inline bool LinkFiles(Linker &pLinker) { in LinkFiles() argument 312 Linker::ErrorCode result = pLinker.link(); in LinkFiles()
|