Home | History | Annotate | Download | only in bfd

Lines Matching refs:hdr

1241       struct xcoff_ar_hdr hdr;
1254 if (bfd_bread (&hdr, (bfd_size_type) SIZEOF_AR_HDR, abfd)
1259 namlen = strtol (hdr.namlen, (char **) NULL, 10);
1264 sz = strtol (hdr.size, (char **) NULL, 10);
1296 struct xcoff_ar_hdr_big hdr;
1309 if (bfd_bread (&hdr, (bfd_size_type) SIZEOF_AR_HDR_BIG, abfd)
1314 namlen = strtol (hdr.namlen, (char **) NULL, 10);
1322 sz = strtol (hdr.size, (char **) NULL, 10);
1413 struct xcoff_ar_file_hdr hdr;
1416 memcpy (hdr.magic, magic, SXCOFFARMAG);
1420 if (bfd_bread (&hdr.memoff, amt, abfd) != amt)
1427 bfd_ardata (abfd)->first_file_filepos = strtol (hdr.firstmemoff,
1435 memcpy (bfd_ardata (abfd)->tdata, &hdr, SIZEOF_AR_FILE_HDR);
1440 struct xcoff_ar_file_hdr_big hdr;
1443 memcpy (hdr.magic, magic, SXCOFFARMAG);
1447 if (bfd_bread (&hdr.memoff, amt, abfd) != amt)
1454 bfd_ardata (abfd)->first_file_filepos = bfd_scan_vma (hdr.firstmemoff,
1463 memcpy (bfd_ardata (abfd)->tdata, &hdr, SIZEOF_AR_FILE_HDR_BIG);
1493 struct xcoff_ar_hdr hdr;
1496 if (bfd_bread (&hdr, (bfd_size_type) SIZEOF_AR_HDR, abfd)
1503 namlen = strtol (hdr.namlen, (char **) NULL, 10);
1511 memcpy (hdrp, &hdr, SIZEOF_AR_HDR);
1520 ret->parsed_size = strtol (hdr.size, (char **) NULL, 10);
1525 struct xcoff_ar_hdr_big hdr;
1528 if (bfd_bread (&hdr, (bfd_size_type) SIZEOF_AR_HDR_BIG, abfd)
1535 namlen = strtol (hdr.namlen, (char **) NULL, 10);
1543 memcpy (hdrp, &hdr, SIZEOF_AR_HDR_BIG);
1555 ret->parsed_size = strtol (hdr.size, (char **) NULL, 10);
1684 struct xcoff_ar_hdr hdr;
1689 memset (&hdr, 0, sizeof hdr);
1690 sprintf (hdr.size, "%ld", (long) (4 + orl_count * 4 + stridx));
1691 sprintf (hdr.nextoff, "%d", 0);
1692 memcpy (hdr.prevoff, xcoff_ardata (abfd)->memoff, XCOFFARMAG_ELEMENT_SIZE);
1693 sprintf (hdr.date, "%d", 0);
1694 sprintf (hdr.uid, "%d", 0);
1695 sprintf (hdr.gid, "%d", 0);
1696 sprintf (hdr.mode, "%d", 0);
1697 sprintf (hdr.namlen, "%d", 0);
1700 for (p = (char *) &hdr; p < (char *) &hdr + SIZEOF_AR_HDR; p++)
1704 if (bfd_bwrite (&hdr, (bfd_size_type) SIZEOF_AR_HDR, abfd)
1895 struct xcoff_ar_hdr_big *hdr;
1910 hdr = (struct xcoff_ar_hdr_big *) symbol_table;
1912 PRINT20 (hdr->size, 8 + 8 * sym_32 + str_32 + (str_32 & 1));
1915 PRINT20 (hdr->nextoff, nextoff + symbol_table_size);
1917 PRINT20 (hdr->nextoff, 0);
1919 PRINT20 (hdr->prevoff, prevoff);
1920 PRINT12 (hdr->date, 0);
1921 PRINT12 (hdr->uid, 0);
1922 PRINT12 (hdr->gid, 0);
1923 PRINT12 (hdr->mode, 0);
1924 PRINT4 (hdr->namlen, 0) ;
1980 struct xcoff_ar_hdr_big *hdr;
1995 hdr = (struct xcoff_ar_hdr_big *) symbol_table;
1997 PRINT20 (hdr->size, 8 + 8 * sym_64 + str_64 + (str_64 & 1));
1998 PRINT20 (hdr->nextoff, 0);
1999 PRINT20 (hdr->prevoff, prevoff);
2000 PRINT12 (hdr->date, 0);
2001 PRINT12 (hdr->uid, 0);
2002 PRINT12 (hdr->gid, 0);
2003 PRINT12 (hdr->mode, 0);
2004 PRINT4 (hdr->namlen, 0);
2291 struct xcoff_ar_hdr_big *hdr;
2442 hdr = (struct xcoff_ar_hdr_big *) member_table;
2444 PRINT20 (hdr->size, (XCOFFARMAGBIG_ELEMENT_SIZE
2448 PRINT20 (hdr->nextoff, nextoff + member_table_size);
2450 PRINT20 (hdr->nextoff, 0);
2451 PRINT20 (hdr->prevoff, prevoff);
2452 PRINT12 (hdr->date, 0);
2453 PRINT12 (hdr->uid, 0);
2454 PRINT12 (hdr->gid, 0);
2455 PRINT12 (hdr->mode, 0);
2456 PRINT4 (hdr->namlen, 0);