Lines Matching refs:header
36 bfd_size_type amt = sizeof (record->header);
41 amt = record->header.length - sizeof (record->header);
44 if (bfd_bread ((void *) ((char *) record + sizeof (record->header)), amt, abfd)
53 return record->header.length
106 switch (record.header.type)
113 int flag = record.header.type == (int) oasys_record_is_local_enum ?
130 if (record.header.type == (int) oasys_record_is_local_enum)
217 oasys_archive_header_type header;
232 header.version = H_GET_32 (abfd, header_ext.version);
233 header.mod_count = H_GET_32 (abfd, header_ext.mod_count);
234 header.mod_tbl_offset = H_GET_32 (abfd, header_ext.mod_tbl_offset);
235 header.sym_tbl_size = H_GET_32 (abfd, header_ext.sym_tbl_size);
236 header.sym_count = H_GET_32 (abfd, header_ext.sym_count);
237 header.sym_tbl_offset = H_GET_32 (abfd, header_ext.sym_tbl_offset);
238 header.xref_count = H_GET_32 (abfd, header_ext.xref_count);
239 header.xref_lst_offset = H_GET_32 (abfd, header_ext.xref_lst_offset);
243 the header are too weird. */
245 if (header.version > 10000
246 || header.mod_count > 10000
247 || header.sym_count > 100000
248 || header.xref_count > 100000)
251 /* That all worked, let's buy the space for the header and read in
261 amt = header.mod_count;
270 ar->module_count = header.mod_count;
272 filepos = header.mod_tbl_offset;
273 for (i = 0; i < header.mod_count; i++)
278 /* There are two ways of specifying the archive header. */
368 switch (record.header.type)
375 bfd_byte *end_src = ((bfd_byte *) & record) + record.header.length;
568 if ((size_t) record.header.length < (size_t) sizeof (record.header))
571 switch ((oasys_record_enum_type) (record.header.type))
589 if (record.section.header.length != sizeof (record.section))
616 oasys->first_data_record = bfd_tell (abfd) - record.header.length;
767 record->header.length = size;
768 record->header.type = (int) type;
769 record->header.check_sum = 0;
770 record->header.fill = 0;
775 record->header.check_sum = 0xff & (-checksum);
868 /* Write a section header for each section. */
902 /* Create and write the header. */