Lines Matching refs:nhdr

329 	Elf32_Nhdr *nhdr;	/* note header */  in read_elf32()  local
348 nhdr = NULL; in read_elf32()
401 phdr->p_filesz, (void *)nhdr); in read_elf32()
403 nhdr = (Elf32_Nhdr *)note_buf; in read_elf32()
404 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz) in read_elf32()
408 nhdr->n_namesz, nhdr->n_descsz, nhdr->n_type); in read_elf32()
417 namep = (caddr_t)(nhdr + 1); in read_elf32()
419 if (nhdr->n_namesz == strlen(ELF_NOTE_SOLARIS) + 1 && in read_elf32()
421 nhdr->n_type == ELF_NOTE_PAGESIZE_HINT) { in read_elf32()
422 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf32()
428 offset += sizeof (Elf32_Nhdr) + roundup(nhdr->n_namesz, in read_elf32()
429 4) + roundup(nhdr->n_descsz, 4); in read_elf32()
431 nhdr = (Elf32_Nhdr *)((char *)note_buf + offset); in read_elf32()
435 nhdr = NULL; in read_elf32()
707 if (nhdr != NULL) in read_elf32()
708 kmem_free(nhdr, phdr->p_filesz); in read_elf32()
728 Elf64_Nhdr *nhdr; /* note header */ in read_elf64() local
747 nhdr = NULL; in read_elf64()
802 (u_longlong_t)phdr->p_filesz, (void *)nhdr); in read_elf64()
804 nhdr = (Elf64_Nhdr *)note_buf; in read_elf64()
805 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz) in read_elf64()
809 nhdr->n_namesz, nhdr->n_descsz, nhdr->n_type); in read_elf64()
818 namep = (caddr_t)(nhdr + 1); in read_elf64()
820 if (nhdr->n_namesz == strlen(ELF_NOTE_SOLARIS) + 1 && in read_elf64()
822 nhdr->n_type == ELF_NOTE_PAGESIZE_HINT) { in read_elf64()
823 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf64()
829 offset += sizeof (Elf64_Nhdr) + roundup(nhdr->n_namesz, in read_elf64()
830 4) + roundup(nhdr->n_descsz, 4); in read_elf64()
832 nhdr = (Elf64_Nhdr *)((char *)note_buf + offset); in read_elf64()
836 nhdr = NULL; in read_elf64()
1088 if (nhdr != NULL) in read_elf64()
1089 kmem_free(nhdr, phdr->p_filesz); in read_elf64()