Lines Matching refs:sect
702 Module::const_iterator sect, sectEnd = pModule.end(); in sizeShstrtab() local
703 for (sect = pModule.begin(); sect != sectEnd; ++sect) { in sizeShstrtab()
704 shstrtab += (*sect)->name().size() + 1; in sizeShstrtab()
1760 LDSection* sect = (*out)->getSection(); in createProgramHdrs() local
1762 if (0 == (sect->flag() & llvm::ELF::SHF_ALLOC) && in createProgramHdrs()
1763 LDFileFormat::Null != sect->kind()) in createProgramHdrs()
1771 cur_flag = getSegmentFlag(sect->flag()); in createProgramHdrs()
1773 if (LDFileFormat::Null == sect->kind()) { in createProgramHdrs()
1780 } else if (sect->kind() == LDFileFormat::BSS && load_seg->isDataSegment() && in createProgramHdrs()
1784 } else if ((sect != &(file_format->getText())) && in createProgramHdrs()
1785 (sect != &(file_format->getData())) && in createProgramHdrs()
1786 (sect != &(file_format->getBSS())) && in createProgramHdrs()
1787 (addrEnd != ldscript.addressMap().find(sect->name()))) { in createProgramHdrs()
1805 load_seg->append(sect); in createProgramHdrs()
1829 for (ELFSegment::iterator sect = (*seg)->begin(), sectEnd = (*seg)->end(); in createProgramHdrs() local
1830 sect != sectEnd; in createProgramHdrs()
1831 ++sect) { in createProgramHdrs()
1832 unsigned int order = getSectionOrder(**sect); in createProgramHdrs()
1835 relro_seg->append(*sect); in createProgramHdrs()
1866 Module::iterator sect, sectBegin, sectEnd; in createProgramHdrs() local
1869 for (sect = sectBegin; sect != sectEnd; ++sect) { in createProgramHdrs()
1870 if ((*sect)->type() != llvm::ELF::SHT_NOTE || in createProgramHdrs()
1871 ((*sect)->flag() & llvm::ELF::SHF_ALLOC) == 0) in createProgramHdrs()
1874 cur_flag = getSegmentFlag((*sect)->flag()); in createProgramHdrs()
1881 note_seg->append(*sect); in createProgramHdrs()
1916 ELFSegment::reverse_iterator sect, sectREnd = (*seg)->rend(); in setupProgramHdrs() local
1917 for (sect = (*seg)->rbegin(); sect != sectREnd; ++sect) { in setupProgramHdrs()
1918 if ((*sect)->kind() != LDFileFormat::BSS) in setupProgramHdrs()
1921 if (sect != sectREnd) { in setupProgramHdrs()
1922 (*seg)->setFilesz((*sect)->offset() + (*sect)->size() - (*seg)->offset()); in setupProgramHdrs()
1952 ELFSegment::iterator sect, sectEnd = (*seg)->end(); in setupProgramHdrs() local
1953 for (sect = (*seg)->begin(); sect != sectEnd; ++sect) { in setupProgramHdrs()
1954 if ((*sect)->kind() == LDFileFormat::BSS) { in setupProgramHdrs()
1955 --sect; in setupProgramHdrs()
1959 if (sect == sectEnd) { in setupProgramHdrs()
1962 } else if (*sect != (*seg)->front()) { in setupProgramHdrs()
1963 --sect; in setupProgramHdrs()
1964 (*seg)->setFilesz((*sect)->offset() + (*sect)->size() - in setupProgramHdrs()
2046 const LDSection* sect = (*obj)->context()->getSection(".note.GNU-stack"); in setupGNUStackInfo() local
2047 if (sect != NULL) { in setupGNUStackInfo()
2050 if (0 != (llvm::ELF::SHF_EXECINSTR & sect->flag())) { in setupGNUStackInfo()