Lines Matching defs:elf
85 * at 8-byte. More recently, an elf section type has appeared that has
90 * 1) If a new elf section that ld(1) accesses in memory appears
204 recover_padding(Elf *elf, ARFILE *file)
213 if (gelf_getclass(elf) == ELFCLASSNONE)
226 if (elf_getshdrnum(elf, &shnum) == -1)
229 extent = gelf_getehdr(elf, &ehdr)
251 scn = elf_nextscn(elf, scn);
313 Elf *elf;
322 if ((elf = elf_begin(fd, ELF_C_READ, arf)) == 0)
325 if ((mem_header = elf_getarhdr(elf)) == NULL) {
327 arnam, EC_XWORD(elf_getbase(elf)), elf_errmsg(-1));
333 (void) elf_next(elf);
334 (void) elf_end(elf);
384 if ((file->ar_contents = elf_rawfile(elf, &ptr))
392 file->ar_elf = elf;
395 recover_padding(elf, file);
397 (void) elf_next(elf);
477 Elf *elf;
491 * I can use the saved elf descriptor.
493 elf = fptr->ar_elf;
536 if ((elf = elf_begin(newfd,
546 if (elf_kind(elf) == ELF_K_AR) {
551 (void) elf_end(elf);
558 if (gelf_getehdr(elf, &ehdr) != 0) {
560 if ((class = gelf_getclass(elf)) == ELFCLASS64) {
565 if (elf_getshdrstrndx(elf, &shstrndx) == -1) {
581 (void) elf_end(elf);
585 scn = elf_getscn(elf, shstrndx);
601 (void) elf_end(elf);
622 (void) elf_end(elf);
638 (void) elf_end(elf);
645 while ((scn = elf_nextscn(elf, scn)) != 0) {
665 (void) elf_end(elf);
670 if (search_sym_tab(arname, fptr, elf,
685 (void) elf_end(elf);
1418 search_sym_tab(const char *arname, ARFILE *fptr, Elf *elf, Elf_Scn *scn,
1434 str_scn = elf_getscn(elf, shdr.sh_link); /* index for string table */