Lines Matching refs:text_len
84 unsigned long text_len; /* Length of text segment */ member
307 unsigned long text_len; in calc_reloc() local
313 text_len = p->lib_list[0].text_len; in calc_reloc()
315 if (r > start_brk - start_data + text_len) { in calc_reloc()
317 r, start_brk-start_data+text_len, text_len); in calc_reloc()
321 if (r < text_len) /* In text segment */ in calc_reloc()
324 addr = r - text_len + start_data; in calc_reloc()
409 u32 text_len, data_len, bss_len, stack_len, full_data, flags; in load_flat_file() local
421 text_len = ntohl(hdr->data_start); in load_flat_file()
479 if ((text_len | data_len | bss_len | stack_len | full_data) >> 28) { in load_flat_file()
533 textpos = vm_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC, in load_flat_file()
555 vm_munmap(textpos, text_len); in load_flat_file()
579 vm_munmap(textpos, text_len); in load_flat_file()
585 (datapos + (ntohl(hdr->reloc_start) - text_len)); in load_flat_file()
590 len = text_len + data_len + extra + in load_flat_file()
611 (datapos + (ntohl(hdr->reloc_start) - text_len)); in load_flat_file()
622 (text_len + full_data in load_flat_file()
632 long unz_text_len = text_len - sizeof(struct flat_hdr); in load_flat_file()
650 result = read_code(bprm->file, textpos, 0, text_len); in load_flat_file()
653 result = decompress_exec(bprm, text_len, (char *) datapos, in load_flat_file()
660 result = decompress_exec(bprm, text_len, in load_flat_file()
673 result = read_code(bprm->file, textpos, 0, text_len); in load_flat_file()
682 vm_munmap(textpos, text_len + data_len + extra + in load_flat_file()
689 end_code = textpos + text_len; in load_flat_file()
690 text_len -= sizeof(struct flat_hdr); /* the real code len */ in load_flat_file()
723 libinfo->lib_list[0].text_len = text_len; in load_flat_file()