Lines Matching refs:text_len
71 unsigned long text_len; /* Length of text segment */ member
308 unsigned long text_len; in calc_reloc() local
346 text_len = p->lib_list[id].text_len; in calc_reloc()
348 if (!flat_reloc_valid(r, start_brk - start_data + text_len)) { in calc_reloc()
350 r, start_brk-start_data+text_len, text_len); in calc_reloc()
354 if (r < text_len) /* In text segment */ in calc_reloc()
357 addr = r - text_len + start_data; in calc_reloc()
416 u32 text_len, data_len, bss_len, stack_len, full_data, flags; in load_flat_file() local
429 text_len = ntohl(hdr->data_start); in load_flat_file()
477 if ((text_len | data_len | bss_len | stack_len | full_data) >> 28) { in load_flat_file()
540 textpos = vm_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC, in load_flat_file()
561 vm_munmap(textpos, text_len); in load_flat_file()
585 vm_munmap(textpos, text_len); in load_flat_file()
591 (datapos + (ntohl(hdr->reloc_start) - text_len)); in load_flat_file()
596 len = text_len + data_len + extra + MAX_SHARED_LIBS * sizeof(u32); in load_flat_file()
616 (datapos + (ntohl(hdr->reloc_start) - text_len)); in load_flat_file()
627 (text_len + full_data in load_flat_file()
637 long unz_text_len = text_len - sizeof(struct flat_hdr); in load_flat_file()
655 result = read_code(bprm->file, textpos, 0, text_len); in load_flat_file()
658 result = decompress_exec(bprm, text_len, (char *) datapos, in load_flat_file()
665 result = decompress_exec(bprm, text_len, in load_flat_file()
678 result = read_code(bprm->file, textpos, 0, text_len); in load_flat_file()
687 vm_munmap(textpos, text_len + data_len + extra + in load_flat_file()
694 end_code = textpos + text_len; in load_flat_file()
695 text_len -= sizeof(struct flat_hdr); /* the real code len */ in load_flat_file()
730 libinfo->lib_list[id].text_len = text_len; in load_flat_file()