Lines Matching refs:text_len
65 unsigned long text_len; /* Length of text segment */ member
306 unsigned long text_len; in calc_reloc() local
345 text_len = p->lib_list[id].text_len; in calc_reloc()
347 if (!flat_reloc_valid(r, start_brk - start_data + text_len)) { in calc_reloc()
349 (int) r,(int)(start_brk-start_code),(int)text_len); in calc_reloc()
353 if (r < text_len) /* In text segment */ in calc_reloc()
356 addr = r - text_len + start_data; in calc_reloc()
419 unsigned long text_len, data_len, bss_len, stack_len, flags; in load_flat_file() local
432 text_len = ntohl(hdr->data_start); in load_flat_file()
534 textpos = do_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC, in load_flat_file()
557 do_munmap(current->mm, textpos, text_len); in load_flat_file()
579 do_munmap(current->mm, textpos, text_len); in load_flat_file()
585 reloc = (unsigned long *) (datapos+(ntohl(hdr->reloc_start)-text_len)); in load_flat_file()
590 len = text_len + data_len + extra + MAX_SHARED_LIBS * sizeof(unsigned long); in load_flat_file()
619 (text_len + data_len + (relocs * sizeof(unsigned long)) in load_flat_file()
627 (char *) textpos, text_len, &fpos); in load_flat_file()
629 result = decompress_exec(bprm, text_len, (char *) datapos, in load_flat_file()
637 (char *) textpos, text_len, &fpos); in load_flat_file()
646 do_munmap(current->mm, textpos, text_len + data_len + extra + in load_flat_file()
659 end_code = textpos + text_len; in load_flat_file()
686 text_len -= sizeof(struct flat_hdr); /* the real code len */ in load_flat_file()
692 libinfo->lib_list[id].text_len = text_len; in load_flat_file()