Lines Matching refs:id
88 static int load_flat_shared_library(int id, struct lib_info *p);
316 int id; in calc_reloc() local
324 id = curid; /* Relocs of 0 are always self referring */ in calc_reloc()
326 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc()
329 if (id >= MAX_SHARED_LIBS) { in calc_reloc()
331 (unsigned) r, id); in calc_reloc()
334 if (curid != id) { in calc_reloc()
337 "(%d != %d)", (unsigned) r, curid, id); in calc_reloc()
339 } else if ( ! p->lib_list[id].loaded && in calc_reloc()
340 IS_ERR_VALUE(load_flat_shared_library(id, p))) { in calc_reloc()
341 printk("BINFMT_FLAT: failed to load library %d", id); in calc_reloc()
345 if (p->lib_list[id].build_date && p->lib_list[curid].build_date && in calc_reloc()
346 p->lib_list[curid].build_date < p->lib_list[id].build_date) { in calc_reloc()
347 printk("BINFMT_FLAT: library %d is younger than %d", id, curid); in calc_reloc()
352 id = 0; in calc_reloc()
355 start_brk = p->lib_list[id].start_brk; in calc_reloc()
356 start_data = p->lib_list[id].start_data; in calc_reloc()
357 start_code = p->lib_list[id].start_code; in calc_reloc()
358 text_len = p->lib_list[id].text_len; in calc_reloc()
427 struct lib_info *libinfo, int id, unsigned long *extra_stack) in load_flat_file() argument
483 if (rev == OLD_FLAT_VERSION && id != 0) { in load_flat_file()
519 if (id == 0) { in load_flat_file()
670 if (id == 0) { in load_flat_file()
689 id ? "Lib" : "Load", bprm->filename, in load_flat_file()
699 libinfo->lib_list[id].start_code = start_code; in load_flat_file()
700 libinfo->lib_list[id].start_data = datapos; in load_flat_file()
701 libinfo->lib_list[id].start_brk = datapos + data_len + bss_len; in load_flat_file()
702 libinfo->lib_list[id].text_len = text_len; in load_flat_file()
703 libinfo->lib_list[id].loaded = 1; in load_flat_file()
704 libinfo->lib_list[id].entry = (0x00ffffff & ntohl(hdr->entry)) + textpos; in load_flat_file()
705 libinfo->lib_list[id].build_date = ntohl(hdr->build_date); in load_flat_file()
723 addr = calc_reloc(*rp, libinfo, id, 0); in load_flat_file()
756 rp = (unsigned long *) calc_reloc(addr, libinfo, id, 1); in load_flat_file()
772 addr = calc_reloc(addr, libinfo, id, 0); in load_flat_file()
792 libinfo->lib_list[id].start_brk) + /* start brk */ in load_flat_file()
809 static int load_flat_shared_library(int id, struct lib_info *libs) in load_flat_shared_library() argument
823 sprintf(buf, "/lib/lib%d.so", id); in load_flat_shared_library()
834 res = load_flat_file(&bprm, libs, id, NULL); in load_flat_shared_library()