Lines Matching refs:id
90 static int load_flat_shared_library(int id, struct lib_info *p);
322 int id; in calc_reloc() local
330 id = curid; /* Relocs of 0 are always self referring */ in calc_reloc()
332 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc()
335 if (id >= MAX_SHARED_LIBS) { in calc_reloc()
336 pr_err("reference 0x%lx to shared library %d", r, id); in calc_reloc()
339 if (curid != id) { in calc_reloc()
342 "(%d != %d)", r, curid, id); in calc_reloc()
344 } else if (!p->lib_list[id].loaded && in calc_reloc()
345 load_flat_shared_library(id, p) < 0) { in calc_reloc()
346 pr_err("failed to load library %d", id); in calc_reloc()
350 if (p->lib_list[id].build_date && p->lib_list[curid].build_date && in calc_reloc()
351 p->lib_list[curid].build_date < p->lib_list[id].build_date) { in calc_reloc()
352 pr_err("library %d is younger than %d", id, curid); in calc_reloc()
357 id = 0; in calc_reloc()
360 start_brk = p->lib_list[id].start_brk; in calc_reloc()
361 start_data = p->lib_list[id].start_data; in calc_reloc()
362 start_code = p->lib_list[id].start_code; in calc_reloc()
363 text_len = p->lib_list[id].text_len; in calc_reloc()
455 struct lib_info *libinfo, int id, unsigned long *extra_stack) in load_flat_file() argument
508 if (rev == OLD_FLAT_VERSION && id != 0) { in load_flat_file()
565 if (id == 0) { in load_flat_file()
751 if (id == 0) { in load_flat_file()
774 id ? "Lib" : "Load", bprm->filename, in load_flat_file()
780 libinfo->lib_list[id].start_code = start_code; in load_flat_file()
781 libinfo->lib_list[id].start_data = datapos; in load_flat_file()
782 libinfo->lib_list[id].start_brk = datapos + data_len + bss_len; in load_flat_file()
783 libinfo->lib_list[id].text_len = text_len; in load_flat_file()
784 libinfo->lib_list[id].loaded = 1; in load_flat_file()
785 libinfo->lib_list[id].entry = (0x00ffffff & ntohl(hdr->entry)) + textpos; in load_flat_file()
786 libinfo->lib_list[id].build_date = ntohl(hdr->build_date); in load_flat_file()
809 addr = calc_reloc(rp_val, libinfo, id, 0); in load_flat_file()
845 rp = (u32 __user *)calc_reloc(addr, libinfo, id, 1); in load_flat_file()
868 addr = calc_reloc(addr, libinfo, id, 0); in load_flat_file()
896 libinfo->lib_list[id].start_brk) + /* start brk */ in load_flat_file()
914 static int load_flat_shared_library(int id, struct lib_info *libs) in load_flat_shared_library() argument
928 sprintf(buf, "/lib/lib%d.so", id); in load_flat_shared_library()
940 res = load_flat_file(&bprm, libs, id, NULL); in load_flat_shared_library()