Home
last modified time | relevance | path

Searched refs:ar_hdr (Results 1 – 12 of 12) sorted by relevance

/external/elfutils/src/
Darlib.c52 struct ar_hdr ar_hdr; in arlib_init() local
53 memcpy (ar_hdr.ar_name, "/ ", sizeof (ar_hdr.ar_name)); in arlib_init()
61 char tmpbuf[sizeof (ar_hdr.ar_date) + 1]; in arlib_init()
63 (int) sizeof (ar_hdr.ar_date), in arlib_init()
66 memcpy (ar_hdr.ar_date, tmpbuf, s); in arlib_init()
67 assert ((sizeof (struct ar_hdr) % sizeof (uint32_t)) == 0); in arlib_init()
73 memcpy (ar_hdr.ar_uid, "0 ", sizeof (ar_hdr.ar_uid)); in arlib_init()
74 memcpy (ar_hdr.ar_gid, "0 ", sizeof (ar_hdr.ar_gid)); in arlib_init()
75 memcpy (ar_hdr.ar_mode, "0 ", sizeof (ar_hdr.ar_mode)); in arlib_init()
76 memcpy (ar_hdr.ar_fmag, ARFMAG, sizeof (ar_hdr.ar_fmag)); in arlib_init()
[all …]
Darlib.h42 #define MAX_AR_NAME_LEN (sizeof (((struct ar_hdr *) NULL)->ar_name) - 1)
46 #define AR_HDR_WORDS (sizeof (struct ar_hdr) / sizeof (uint32_t))
Dar.c528 + sizeof (struct ar_hdr)); in do_oper_extract()
794 rest_off = (index_off + sizeof (struct ar_hdr) in do_oper_extract()
855 struct ar_hdr arhdr; in write_member()
895 *startp += sizeof (struct ar_hdr); in write_member()
896 assert ((size_t) *lenp >= sizeof (struct ar_hdr)); in write_member()
897 *lenp -= sizeof (struct ar_hdr); in write_member()
976 + sizeof (struct ar_hdr)); in do_oper_delete()
1037 if (symtab.longnameslen > sizeof (struct ar_hdr) in do_oper_delete()
1384 + sizeof (struct ar_hdr)); in do_oper_insert()
1436 if (symtab.longnameslen > sizeof (struct ar_hdr) in do_oper_insert()
[all …]
Darlib2.c42 return size - sizeof (struct ar_hdr); in arlib_add_long_name()
Dranlib.c211 + sizeof (struct ar_hdr)); in handle_file()
259 rest_off = (index_off + sizeof (struct ar_hdr) in handle_file()
/external/elfutils/libelf/
Delf_begin.c679 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()
[all …]
Delf_getarsym.c110 struct ar_hdr *index_hdr; in elf_getarsym()
115 if (pread_retry (elf->fildes, &elf->state.ar.ar_hdr, in elf_getarsym()
116 sizeof (struct ar_hdr), elf->start_offset + SARMAG) in elf_getarsym()
117 != sizeof (struct ar_hdr)) in elf_getarsym()
125 index_hdr = &elf->state.ar.ar_hdr; in elf_getarsym()
129 if (SARMAG + sizeof (struct ar_hdr) > elf->maximum_size) in elf_getarsym()
136 index_hdr = (struct ar_hdr *) (elf->map_address in elf_getarsym()
171 size_t off = elf->start_offset + SARMAG + sizeof (struct ar_hdr); in elf_getarsym()
187 || elf->maximum_size - index_size < SARMAG + sizeof (struct ar_hdr) in elf_getarsym()
Delf_getaroff.c52 return elf->start_offset - sizeof (struct ar_hdr) - parent->start_offset; in elf_getaroff()
Delf_next.c58 parent->state.ar.offset += (sizeof (struct ar_hdr) in elf_next()
DlibelfP.h396 struct ar_hdr ar_hdr; /* Header read from file. */ member
/external/elfutils/libdwfl/
Dopen.c140 elf->state.ar.offset = offset - sizeof (struct ar_hdr); in __libdw_open_file()
Dcore-file.c78 struct ar_hdr h = { .ar_size = "" }; in elf_begin_rand()
89 + offsetof (struct ar_hdr, ar_size)) in elf_begin_rand()