Lines Matching defs:elf

32  * Dump an elf file.
508 getphdr(Word phnum, Word *type_arr, Word type_cnt, const char *file, Elf *elf)
513 if ((phdr = elf_getphdr(elf)) == NULL) {
866 const char *file, Elf *elf, uint_t flags)
899 sizeof (phdr_types) / sizeof (*phdr_types), file, elf);
1696 uchar_t osabi, Elf *elf, uint_t flags)
1710 if ((phdr = elf_getphdr(elf)) == NULL) {
1778 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf)
1796 sizeof (phdr_types) / sizeof (*phdr_types), file, elf);
4500 checksum(Elf *elf)
4503 dbg_print(0, MSG_INTL(MSG_STR_CHECKSUM), elf_checksum(elf));
4544 shdr_cache(const char *file, Elf *elf, Ehdr *ehdr, size_t shstrndx,
4567 } else if ((scn = elf_getscn(elf, shstrndx)) == NULL) {
4639 for (ndx = 1, scn = NULL; scn = elf_nextscn(elf, scn);
4860 create_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache,
4875 if (fake_shdr_cache(file, fd, elf, ehdr, cache, shnum) == 0)
4878 if (shdr_cache(file, elf, ehdr, shstrndx, *shnum,
4887 regular(const char *file, int fd, Elf *elf, uint_t flags,
4900 if ((ehdr = elf_getehdr(elf)) == NULL) {
4905 if (elf_getshdrnum(elf, &shnum) == -1) {
4910 if (elf_getshdrstrndx(elf, &shstrndx) == -1) {
4915 if (elf_getphdrnum(elf, &phnum) == -1) {
4930 if ((scn = elf_getscn(elf, 0)) != NULL) {
4940 * Print the elf header.
5007 if (create_cache(file, fd, elf, ehdr, &cache,
5038 if ((phdr = elf_getphdr(elf)) == NULL) {
5072 if (create_cache(file, fd, elf, ehdr, &cache, shstrndx,
5231 interp(file, cache, shnum, phnum, elf);
5285 (fake_shdr_cache(file, fd, elf, ehdr,
5296 checksum(elf);
5299 cap(file, cache, shnum, phnum, ehdr, osabi, elf, flags);
5303 unwind(cache, shnum, phnum, ehdr, osabi, file, elf, flags);