Home | History | Annotate | Download | only in nonsfi

Lines Matching defs:phdrs

118 // Returns the load size for the given phdrs, or 0 on error.
119 ElfW(Addr) GetLoadSize(const ElfW(Phdr)* phdrs, int phnum) {
124 const ElfW(Phdr)& phdr = phdrs[i];
142 // Reserves the memory for the given phdrs, and stores the memory bias to the
144 NaClErrorCode ReserveMemory(const ElfW(Phdr)* phdrs,
147 ElfW(Addr) size = GetLoadSize(phdrs, phnum);
155 if (phdrs[i].p_type == PT_LOAD) {
156 // Here, phdrs[i] is the first loadable segment.
157 if (phdrs[i].p_vaddr != 0) {
179 const ElfW(Phdr)* phdrs, int phnum, ElfW(Addr) load_bias,
182 const ElfW(Phdr)& phdr = phdrs[i];
249 ElfW(Phdr) phdrs[MAX_PROGRAM_HEADERS];
291 if (data->ehdr.e_phentsize != sizeof(data->phdrs[0])) {
294 << " sizeof phdrs[0] = " << sizeof(data->phdrs[0]);
300 descriptor, data->phdrs, read_size, data->ehdr.e_phoff);
319 ReserveMemory(data_->phdrs, data_->ehdr.e_phnum, &data_->load_bias);
326 data_->phdrs, data_->ehdr.e_phnum, data_->load_bias, descriptor);