Lines Matching refs:ar_hdr
679 struct ar_hdr hdrm; in read_long_names()
680 struct ar_hdr *hdr; in read_long_names()
689 || elf->maximum_size - offset < sizeof (struct ar_hdr)) in read_long_names()
693 hdr = (struct ar_hdr *) (elf->map_address + offset); in read_long_names()
711 offset += sizeof (struct ar_hdr) + ((len + 1) & ~1l); in read_long_names()
724 if (len > elf->maximum_size - offset - sizeof (struct ar_hdr)) in read_long_names()
729 + sizeof (struct ar_hdr), in read_long_names()
736 + sizeof (struct ar_hdr)) in read_long_names()
782 struct ar_hdr *ar_hdr; in __libelf_next_arhdr_wrlock() local
791 - elf->state.ar.offset) < sizeof (struct ar_hdr))) in __libelf_next_arhdr_wrlock()
797 ar_hdr = (struct ar_hdr *) (elf->map_address + elf->state.ar.offset); in __libelf_next_arhdr_wrlock()
801 ar_hdr = &elf->state.ar.ar_hdr; in __libelf_next_arhdr_wrlock()
803 if (unlikely (pread_retry (elf->fildes, ar_hdr, sizeof (struct ar_hdr), in __libelf_next_arhdr_wrlock()
805 != sizeof (struct ar_hdr))) in __libelf_next_arhdr_wrlock()
814 if (unlikely (memcmp (ar_hdr->ar_fmag, ARFMAG, 2) != 0)) in __libelf_next_arhdr_wrlock()
822 *((char *) mempcpy (elf->state.ar.raw_name, ar_hdr->ar_name, 16)) = '\0'; in __libelf_next_arhdr_wrlock()
828 if (ar_hdr->ar_name[0] == '/') in __libelf_next_arhdr_wrlock()
830 if (ar_hdr->ar_name[1] == ' ' in __libelf_next_arhdr_wrlock()
831 && memcmp (ar_hdr->ar_name, "/ ", 16) == 0) in __libelf_next_arhdr_wrlock()
834 else if (ar_hdr->ar_name[1] == 'S' in __libelf_next_arhdr_wrlock()
835 && memcmp (ar_hdr->ar_name, "/SYM64/ ", 16) == 0) in __libelf_next_arhdr_wrlock()
838 else if (ar_hdr->ar_name[1] == '/' in __libelf_next_arhdr_wrlock()
839 && memcmp (ar_hdr->ar_name, "// ", 16) == 0) in __libelf_next_arhdr_wrlock()
842 else if (likely (isdigit (ar_hdr->ar_name[1]))) in __libelf_next_arhdr_wrlock()
857 offset = atol (ar_hdr->ar_name + 1); in __libelf_next_arhdr_wrlock()
878 endp = (char *) memccpy (elf->state.ar.ar_name, ar_hdr->ar_name, in __libelf_next_arhdr_wrlock()
895 if (unlikely (ar_hdr->ar_size[0] == ' ')) in __libelf_next_arhdr_wrlock()
914 char buf[sizeof (ar_hdr->FIELD) + 1]; \ in __libelf_next_arhdr_wrlock()
915 const char *string = ar_hdr->FIELD; \ in __libelf_next_arhdr_wrlock()
916 if (ar_hdr->FIELD[sizeof (ar_hdr->FIELD) - 1] != ' ') \ in __libelf_next_arhdr_wrlock()
918 *((char *) mempcpy (buf, ar_hdr->FIELD, sizeof (ar_hdr->FIELD))) \ in __libelf_next_arhdr_wrlock()
944 - elf->state.ar.offset - sizeof (struct ar_hdr)); in __libelf_next_arhdr_wrlock()
1003 result = read_file (fildes, ref->state.ar.offset + sizeof (struct ar_hdr), in dup_elf()