• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/

Lines Matching refs:id

71 static int load_flat_shared_library(int id, struct lib_info *p);
302 int id;
310 id = curid; /* Relocs of 0 are always self referring */
312 id = (r >> 24) & 0xff; /* Find ID for this reloc */
315 if (id >= MAX_SHARED_LIBS) {
317 (unsigned) r, id);
320 if (curid != id) {
323 "(%d != %d)", (unsigned) r, curid, id);
325 } else if ( ! p->lib_list[id].loaded &&
326 load_flat_shared_library(id, p) > (unsigned long) -4096) {
327 printk("BINFMT_FLAT: failed to load library %d", id);
331 if (p->lib_list[id].build_date && p->lib_list[curid].build_date &&
332 p->lib_list[curid].build_date < p->lib_list[id].build_date) {
333 printk("BINFMT_FLAT: library %d is younger than %d", id, curid);
338 id = 0;
341 start_brk = p->lib_list[id].start_brk;
342 start_data = p->lib_list[id].start_data;
343 start_code = p->lib_list[id].start_code;
344 text_len = p->lib_list[id].text_len;
413 struct lib_info *libinfo, int id, unsigned long *extra_stack)
465 if (rev == OLD_FLAT_VERSION && id != 0) {
501 if (id == 0) {
669 if (id == 0) {
686 id ? "Lib" : "Load", bprm->filename,
696 libinfo->lib_list[id].start_code = start_code;
697 libinfo->lib_list[id].start_data = datapos;
698 libinfo->lib_list[id].start_brk = datapos + data_len + bss_len;
699 libinfo->lib_list[id].text_len = text_len;
700 libinfo->lib_list[id].loaded = 1;
701 libinfo->lib_list[id].entry = (0x00ffffff & ntohl(hdr->entry)) + textpos;
702 libinfo->lib_list[id].build_date = ntohl(hdr->build_date);
720 addr = calc_reloc(*rp, libinfo, id, 0);
750 rp = (unsigned long *) calc_reloc(addr, libinfo, id, 1);
765 addr = calc_reloc(addr, libinfo, id, 0);
785 libinfo->lib_list[id].start_brk) + /* start brk */
802 static int load_flat_shared_library(int id, struct lib_info *libs)
809 sprintf(buf, "/lib/lib%d.so", id);
821 res = load_flat_file(&bprm, libs, id, NULL);
891 * lib 1 first, then 2, ... and finally the main program (id 0).