Lines Matching refs:p

61   struct set_info *p;  in ldctor_add_set_entry()  local
65 for (p = sets; p != NULL; p = p->next) in ldctor_add_set_entry()
66 if (p->h == h) in ldctor_add_set_entry()
69 if (p == NULL) in ldctor_add_set_entry()
71 p = (struct set_info *) xmalloc (sizeof (struct set_info)); in ldctor_add_set_entry()
72 p->next = sets; in ldctor_add_set_entry()
73 sets = p; in ldctor_add_set_entry()
74 p->h = h; in ldctor_add_set_entry()
75 p->reloc = reloc; in ldctor_add_set_entry()
76 p->count = 0; in ldctor_add_set_entry()
77 p->elements = NULL; in ldctor_add_set_entry()
81 if (p->reloc != reloc) in ldctor_add_set_entry()
95 if (p->elements != NULL in ldctor_add_set_entry()
97 && p->elements->section->owner != NULL in ldctor_add_set_entry()
99 bfd_get_target (p->elements->section->owner)) != 0) in ldctor_add_set_entry()
113 for (epp = &p->elements; *epp != NULL; epp = &(*epp)->next) in ldctor_add_set_entry()
117 ++p->count; in ldctor_add_set_entry()
203 struct set_info *p; in ldctor_build_sets() local
213 for (p = sets; p != NULL; p = p->next) in ldctor_build_sets()
219 if (p->elements == NULL) in ldctor_build_sets()
223 for (e = p->elements; e != NULL; e = e->next) in ldctor_build_sets()
229 for (e = p->elements; e != NULL; e = e->next) in ldctor_build_sets()
238 p->elements = e; in ldctor_build_sets()
251 for (p = sets; p != NULL; p = p->next) in ldctor_build_sets()
260 if (p->h->type == bfd_link_hash_defined in ldctor_build_sets()
261 || p->h->type == bfd_link_hash_defweak) in ldctor_build_sets()
274 howto = bfd_reloc_type_lookup (link_info.output_bfd, p->reloc); in ldctor_build_sets()
281 bfd_get_reloc_code_name (p->reloc), in ldctor_build_sets()
282 p->h->root.string); in ldctor_build_sets()
288 if (p->elements->section->owner != NULL) in ldctor_build_sets()
289 howto = bfd_reloc_type_lookup (p->elements->section->owner, in ldctor_build_sets()
290 p->reloc); in ldctor_build_sets()
294 bfd_get_target (p->elements->section->owner), in ldctor_build_sets()
295 bfd_get_reloc_code_name (p->reloc), in ldctor_build_sets()
296 p->h->root.string); in ldctor_build_sets()
315 bfd_get_reloc_size (howto), p->h->root.string); in ldctor_build_sets()
324 lang_add_assignment (exp_assign (p->h->root.string, in ldctor_build_sets()
327 lang_add_data (size, exp_intop (p->count)); in ldctor_build_sets()
329 for (e = p->elements; e != NULL; e = e->next) in ldctor_build_sets()
341 minfo ("%s", p->h->root.string); in ldctor_build_sets()
342 len = strlen (p->h->root.string); in ldctor_build_sets()
366 lang_add_reloc (p->reloc, howto, e->section, e->name, in ldctor_build_sets()