Lines Matching refs:input

148   Module::input_iterator input, inEnd = m_pModule->input_end();
149 for (input = m_pModule->input_begin(); input != inEnd; ++input) {
151 if (isGroup(input)) {
153 input, inEnd, m_pBuilder->getInputBuilder(), m_Config);
159 if ((*input)->type() == Input::Script ||
160 (*input)->type() == Input::Archive ||
161 (*input)->type() == Input::External)
164 if (Input::Object == (*input)->type()) {
165 m_pModule->getObjectList().push_back(*input);
169 if (Input::DynObj == (*input)->type()) {
170 m_pModule->getLibraryList().push_back(*input);
175 // read input as a binary file
176 if (getBinaryReader()->isMyFormat(**input, doContinue)) {
177 (*input)->setType(Input::Object);
178 getBinaryReader()->readBinary(**input);
179 m_pModule->getObjectList().push_back(*input);
181 getObjectReader()->isMyFormat(**input, doContinue)) {
183 (*input)->setType(Input::Object);
184 getObjectReader()->readHeader(**input);
185 getObjectReader()->readSections(**input);
186 getObjectReader()->readSymbols(**input);
187 m_pModule->getObjectList().push_back(*input);
189 getDynObjReader()->isMyFormat(**input, doContinue)) {
191 (*input)->setType(Input::DynObj);
192 getDynObjReader()->readHeader(**input);
193 getDynObjReader()->readSymbols(**input);
194 m_pModule->getLibraryList().push_back(*input);
196 getArchiveReader()->isMyFormat(**input, doContinue)) {
198 (*input)->setType(Input::Archive);
199 if (m_Config.options().isInExcludeLIBS(**input)) {
200 (*input)->setNoExport();
202 Archive archive(**input, m_pBuilder->getInputBuilder());
205 m_pModule->getInputTree().merge<InputTree::Inclusive>(input,
209 getScriptReader()->isMyFormat(**input, doContinue)) {
210 // try to parse input as a linker script
212 ScriptFile::LDScript, **input, m_pBuilder->getInputBuilder());
214 (*input)->setType(Input::Script);
218 input, script.inputs());
224 << (*input)->path() << m_Config.targets().triple().str();
230 // check we have input and output files
289 mcld::InputTree::bfs_iterator input,
291 for (input = m_pModule->getInputTree().bfs_begin(); input != inEnd; ++input) {
292 if ((*input)->type() == Input::Object && (*input)->hasMemArea()) {
293 if (!getObjectReader()->readRelocations(**input))
306 // Set up input/output from ldscript requirement if any
319 // force input alignment from ldscript if any
328 } // for each input section description
423 } // for each input section description
452 // symbol table. Since these symbols has fragRef to input fragments, which
453 // will refer to input LDSection and has bad result when emitting their
497 /// @return if there are some input symbols with the same name to the
511 /// @return if there are some input symbols with the same name to the
583 Module::obj_iterator input, inEnd = m_pModule->obj_end();
584 for (input = m_pModule->obj_begin(); input != inEnd; ++input) {
585 m_LDBackend.getRelocator()->initializeScan(**input);
586 LDContext::sect_iterator rs, rsEnd = (*input)->context()->relocSectEnd();
587 for (rs = (*input)->context()->relocSectBegin(); rs != rsEnd; ++rs) {
591 // 2. it has no reloc data. (All symbols in the input relocs are in the
599 // bypass the reloc if the symbol is in the discarded input section
609 *relocation, *m_pBuilder, *m_pModule, **rs, **input);
616 m_LDBackend.getRelocator()->finalizeScan(**input);
787 Module::obj_iterator input, inEnd = m_pModule->obj_end();
788 for (input = m_pModule->obj_begin(); input != inEnd; ++input) {
789 m_LDBackend.getRelocator()->initializeApply(**input);
790 LDContext::sect_iterator rs, rsEnd = (*input)->context()->relocSectEnd();
791 for (rs = (*input)->context()->relocSectBegin(); rs != rsEnd; ++rs) {
795 // 2. it has no reloc data. (All symbols in the input relocs are in the
803 // bypass the reloc if the symbol is in the discarded input section
826 m_LDBackend.getRelocator()->finalizeApply(**input);
872 Module::obj_iterator input, inEnd = m_pModule->obj_end();
873 for (input = m_pModule->obj_begin(); input != inEnd; ++input) {
874 LDContext::sect_iterator rs, rsEnd = (*input)->context()->relocSectEnd();
875 for (rs = (*input)->context()->relocSectBegin(); rs != rsEnd; ++rs) {
879 // 2. it has no reloc data. (All symbols in the input relocs are in the
887 // bypass the reloc if the symbol is in the discarded input section