Home | History | Annotate | Download | only in src

Lines Matching refs:elf

390 open_archive (const char *arfname, int flags, int mode, Elf **elf,
403 if (elf != NULL)
407 *elf = elf_begin (fd, cmd, NULL);
408 if (*elf == NULL)
412 if (flags == O_RDONLY && elf_kind (*elf) != ELF_K_AR)
434 copy_content (Elf *elf, int newfd, off_t off, size_t n)
437 char *rawfile = elf_rawfile (elf, &len);
465 Elf *elf;
466 int fd = open_archive (arfname, O_RDONLY, 0, &elf, NULL, false);
492 Elf *subelf;
493 while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
508 arlib_add_symbols (elf, arfname, arhdr->ar_name, cur_off);
793 && copy_content (elf, newfd, SARMAG, index_off - SARMAG))
794 || copy_content (elf, newfd, rest_off, st.st_size - rest_off)
808 elf_end (elf);
831 Elf *elf;
836 write_member (struct armem *memb, off_t *startp, off_t *lenp, Elf *elf,
847 memcpy (&arhdr, elf_rawfile (elf, NULL) + *startp, sizeof (arhdr));
865 if (*startp != -1 && copy_content (elf, newfd, *startp, *lenp))
908 Elf *elf;
910 int fd = open_archive (arfname, O_RDONLY, 0, &elf, &st, false);
927 Elf *subelf;
928 while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
1035 if (write_member (to_copy, &start, &len, elf, cur_off, newfd) != 0)
1040 if (copy_content (elf, newfd, start, len))
1055 elf_end (elf);
1082 Elf *elf;
1084 int fd = open_archive (arfname, O_RDONLY, 0, &elf, &st, oper != oper_move);
1129 Elf *subelf;
1130 while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
1238 Elf *newelf;
1266 gettext ("cannot get ELF descriptor for %s: %s\n"),
1276 found[cnt]->elf = newelf;
1300 elf_end (elf);
1351 if (elf_rand (elf, memp->old_off) == 0
1352 || (subelf = elf_begin (fd, ELF_C_READ_MMAP, elf)) == NULL
1363 arlib_add_symbols (memp->elf, arfname, memp->name, cur_off);
1432 if (start != -1 && copy_content (elf, newfd, start, len))
1482 if (write_member (all, &start, &len, elf, cur_off, newfd)
1491 if (start != -1 && copy_content (elf, newfd, start, len))
1507 elf_end (elf);