Lines Matching refs:hdrbuf
301 unsigned char hdrbuf[sizeof (struct external_filehdr)]; in simple_object_xcoff_match() local
318 if (!simple_object_internal_read (descriptor, offset, hdrbuf, sizeof hdrbuf, in simple_object_xcoff_match()
326 ocr->nscns = fetch_16 (hdrbuf + offsetof (struct external_filehdr, f_nscns)); in simple_object_xcoff_match()
329 ocr->symptr = fetch_64 (hdrbuf in simple_object_xcoff_match()
332 ocr->nsyms = fetch_32 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
335 + fetch_16 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
341 ocr->symptr = fetch_32 (hdrbuf in simple_object_xcoff_match()
344 ocr->nsyms = fetch_32 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
347 + fetch_16 (hdrbuf + offsetof (struct external_filehdr, in simple_object_xcoff_match()
579 unsigned char hdrbuf[sizeof (struct external_filehdr)]; in simple_object_xcoff_write_filehdr() local
585 hdr = &hdrbuf[0]; in simple_object_xcoff_write_filehdr()
617 return simple_object_internal_write (descriptor, 0, hdrbuf, in simple_object_xcoff_write_filehdr()
637 unsigned char hdrbuf[sizeof (struct external_scnhdr)]; in simple_object_xcoff_write_scnhdr() local
645 memset (hdrbuf, 0, sizeof hdrbuf); in simple_object_xcoff_write_scnhdr()
646 hdr = &hdrbuf[0]; in simple_object_xcoff_write_scnhdr()
687 return simple_object_internal_write (descriptor, scnhdr_offset, hdrbuf, in simple_object_xcoff_write_scnhdr()