Lines Matching refs:seg

1915     for (ELFSegmentFactory::iterator seg = elfSegmentTable().begin(),  in createProgramHdrs()  local
1916 segEnd = elfSegmentTable().end(); seg != segEnd; ++seg) { in createProgramHdrs()
1917 if (llvm::ELF::PT_LOAD != (*seg)->type()) in createProgramHdrs()
1920 for (ELFSegment::iterator sect = (*seg)->begin(), in createProgramHdrs()
1921 sectEnd = (*seg)->end(); sect != sectEnd; ++sect) { in createProgramHdrs()
1985 for (ELFSegmentFactory::iterator seg = elfSegmentTable().begin(), in setupProgramHdrs() local
1986 segEnd = elfSegmentTable().end(); seg != segEnd; ++seg) { in setupProgramHdrs()
1989 if ((*seg)->size() == 0) in setupProgramHdrs()
1993 if ((*seg)->type() == llvm::ELF::PT_LOAD && in setupProgramHdrs()
1994 (*seg)->front()->kind() == LDFileFormat::Null && in setupProgramHdrs()
1995 (*seg)->size() == 1) in setupProgramHdrs()
1998 (*seg)->setOffset((*seg)->front()->offset()); in setupProgramHdrs()
1999 if ((*seg)->type() == llvm::ELF::PT_LOAD && in setupProgramHdrs()
2000 (*seg)->front()->kind() == LDFileFormat::Null) { in setupProgramHdrs()
2001 const LDSection* second = *((*seg)->begin() + 1); in setupProgramHdrs()
2003 (*seg)->setVaddr(second->addr() - second->offset()); in setupProgramHdrs()
2005 (*seg)->setVaddr((*seg)->front()->addr()); in setupProgramHdrs()
2007 (*seg)->setPaddr((*seg)->vaddr()); in setupProgramHdrs()
2009 ELFSegment::reverse_iterator sect, sectREnd = (*seg)->rend(); in setupProgramHdrs()
2010 for (sect = (*seg)->rbegin(); sect != sectREnd; ++sect) { in setupProgramHdrs()
2015 (*seg)->setFilesz((*sect)->offset() + in setupProgramHdrs()
2017 (*seg)->offset()); in setupProgramHdrs()
2019 (*seg)->setFilesz(0x0); in setupProgramHdrs()
2022 (*seg)->setMemsz((*seg)->back()->addr() + in setupProgramHdrs()
2023 (*seg)->back()->size() - in setupProgramHdrs()
2024 (*seg)->vaddr()); in setupProgramHdrs()
2034 ELFSegmentFactory::iterator seg, segEnd = elfSegmentTable().end(); in setupProgramHdrs() local
2035 for (seg = null_seg + 1; seg != segEnd; ++seg) { in setupProgramHdrs()
2036 if ((*seg)->type() == llvm::ELF::PT_LOAD) in setupProgramHdrs()
2039 if (seg != segEnd) { in setupProgramHdrs()
2040 uint64_t addr = (*seg)->front()->addr() - (*seg)->front()->offset(); in setupProgramHdrs()
2042 if (addr + size == (*seg)->front()->addr()) { in setupProgramHdrs()
2044 (*seg)->setOffset(0x0); in setupProgramHdrs()
2045 (*seg)->setVaddr(addr); in setupProgramHdrs()
2046 (*seg)->setPaddr(addr); in setupProgramHdrs()
2048 ELFSegment::iterator sect, sectEnd = (*seg)->end(); in setupProgramHdrs()
2049 for (sect = (*seg)->begin(); sect != sectEnd; ++sect) { in setupProgramHdrs()
2056 (*seg)->setFilesz((*seg)->back()->offset() + in setupProgramHdrs()
2057 (*seg)->back()->size() - in setupProgramHdrs()
2058 (*seg)->offset()); in setupProgramHdrs()
2059 } else if (*sect != (*seg)->front()) { in setupProgramHdrs()
2061 (*seg)->setFilesz((*sect)->offset() + in setupProgramHdrs()
2063 (*seg)->offset()); in setupProgramHdrs()
2065 (*seg)->setFilesz(0x0); in setupProgramHdrs()
2068 (*seg)->setMemsz((*seg)->back()->addr() + in setupProgramHdrs()
2069 (*seg)->back()->size() - in setupProgramHdrs()
2070 (*seg)->vaddr()); in setupProgramHdrs()
2072 (*seg)->insert((*seg)->begin(), null_sect); in setupProgramHdrs()
2075 } else if (addr + size < (*seg)->vaddr()) { in setupProgramHdrs()
2218 ELFSegmentFactory::iterator seg, segEnd = elfSegmentTable().end(); in setOutputSectionAddress() local
2237 seg = elfSegmentTable().find(llvm::ELF::PT_LOAD, cur); in setOutputSectionAddress()
2238 if (seg != segEnd && cur == (*seg)->front()) { in setOutputSectionAddress()
2239 if ((*seg)->isBssSegment()) in setOutputSectionAddress()
2241 else if ((*seg)->isDataSegment()) in setOutputSectionAddress()
2277 if (seg != segEnd && cur == (*seg)->front()) { in setOutputSectionAddress()
2281 alignAddress(vma, (*seg)->align()); in setOutputSectionAddress()