Lines Matching refs:p

128 write_uleb128 (bfd_byte *p, unsigned int val)  in write_uleb128()  argument
137 *(p++) = c; in write_uleb128()
140 return p; in write_uleb128()
146 write_obj_attribute (bfd_byte *p, int tag, obj_attribute *attr) in write_obj_attribute() argument
150 return p; in write_obj_attribute()
152 p = write_uleb128 (p, tag); in write_obj_attribute()
154 p = write_uleb128 (p, attr->i); in write_obj_attribute()
160 memcpy (p, attr->s, len); in write_obj_attribute()
161 p += len; in write_obj_attribute()
164 return p; in write_obj_attribute()
173 bfd_byte *p; in vendor_set_obj_attr_contents() local
180 p = contents; in vendor_set_obj_attr_contents()
181 bfd_put_32 (abfd, size, p); in vendor_set_obj_attr_contents()
182 p += 4; in vendor_set_obj_attr_contents()
183 memcpy (p, vendor_name, vendor_length); in vendor_set_obj_attr_contents()
184 p += vendor_length; in vendor_set_obj_attr_contents()
185 *(p++) = Tag_File; in vendor_set_obj_attr_contents()
186 bfd_put_32 (abfd, size - 4 - vendor_length, p); in vendor_set_obj_attr_contents()
187 p += 4; in vendor_set_obj_attr_contents()
195 p = write_obj_attribute (p, tag, &attr[tag]); in vendor_set_obj_attr_contents()
201 p = write_obj_attribute (p, list->tag, &list->attr); in vendor_set_obj_attr_contents()
208 bfd_byte *p; in bfd_elf_set_obj_attr_contents() local
212 p = contents; in bfd_elf_set_obj_attr_contents()
213 *(p++) = 'A'; in bfd_elf_set_obj_attr_contents()
219 vendor_set_obj_attr_contents (abfd, p, vendor_size, vendor); in bfd_elf_set_obj_attr_contents()
220 p += vendor_size; in bfd_elf_set_obj_attr_contents()
234 obj_attribute_list *p; in elf_new_obj_attr() local
252 for (p = *lastp; p; p = p->next) in elf_new_obj_attr()
254 if (tag < p->tag) in elf_new_obj_attr()
256 lastp = &p->next; in elf_new_obj_attr()
270 obj_attribute_list *p; in bfd_elf_get_obj_attr_int() local
279 for (p = elf_other_obj_attributes (abfd)[vendor]; in bfd_elf_get_obj_attr_int()
280 p; in bfd_elf_get_obj_attr_int()
281 p = p->next) in bfd_elf_get_obj_attr_int()
283 if (tag == p->tag) in bfd_elf_get_obj_attr_int()
284 return p->attr.i; in bfd_elf_get_obj_attr_int()
285 if (tag < p->tag) in bfd_elf_get_obj_attr_int()
307 char * p; in _bfd_elf_attr_strdup() local
311 p = (char *) bfd_alloc (abfd, len); in _bfd_elf_attr_strdup()
312 return (char *) memcpy (p, s, len); in _bfd_elf_attr_strdup()
432 bfd_byte *p; in _bfd_elf_parse_attributes() local
445 p = contents; in _bfd_elf_parse_attributes()
447 if (*(p++) == 'A') in _bfd_elf_parse_attributes()
456 section_len = bfd_get_32 (abfd, p); in _bfd_elf_parse_attributes()
457 p += 4; in _bfd_elf_parse_attributes()
464 namelen = strnlen ((char *) p, section_len) + 1; in _bfd_elf_parse_attributes()
468 if (std_sec && strcmp ((char *) p, std_sec) == 0) in _bfd_elf_parse_attributes()
470 else if (strcmp ((char *) p, "gnu") == 0) in _bfd_elf_parse_attributes()
475 p += namelen + section_len; in _bfd_elf_parse_attributes()
479 p += namelen; in _bfd_elf_parse_attributes()
488 tag = read_unsigned_leb128 (abfd, p, &n); in _bfd_elf_parse_attributes()
489 p += n; in _bfd_elf_parse_attributes()
490 subsection_len = bfd_get_32 (abfd, p); in _bfd_elf_parse_attributes()
491 p += 4; in _bfd_elf_parse_attributes()
498 end = p + subsection_len; in _bfd_elf_parse_attributes()
502 while (p < end) in _bfd_elf_parse_attributes()
506 tag = read_unsigned_leb128 (abfd, p, &n); in _bfd_elf_parse_attributes()
507 p += n; in _bfd_elf_parse_attributes()
512 val = read_unsigned_leb128 (abfd, p, &n); in _bfd_elf_parse_attributes()
513 p += n; in _bfd_elf_parse_attributes()
515 val, (char *)p); in _bfd_elf_parse_attributes()
516 p += strlen ((char *)p) + 1; in _bfd_elf_parse_attributes()
520 (char *)p); in _bfd_elf_parse_attributes()
521 p += strlen ((char *)p) + 1; in _bfd_elf_parse_attributes()
524 val = read_unsigned_leb128 (abfd, p, &n); in _bfd_elf_parse_attributes()
525 p += n; in _bfd_elf_parse_attributes()
539 p += subsection_len; in _bfd_elf_parse_attributes()