Lines Matching refs:nhdr

257 	Elf32_Nhdr *nhdr;	/* note header */  in read_elf32()  local
276 nhdr = NULL; in read_elf32()
329 phdr->p_filesz, (void *)nhdr); in read_elf32()
331 nhdr = (Elf32_Nhdr *)note_buf; in read_elf32()
332 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz) in read_elf32()
336 nhdr->n_namesz, nhdr->n_descsz, nhdr->n_type); in read_elf32()
345 namep = (caddr_t)(nhdr + 1); in read_elf32()
347 if (nhdr->n_namesz == strlen(ELF_NOTE_SOLARIS) + 1 && in read_elf32()
349 nhdr->n_type == ELF_NOTE_PAGESIZE_HINT) { in read_elf32()
350 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf32()
356 offset += sizeof (Elf32_Nhdr) + roundup(nhdr->n_namesz, in read_elf32()
357 4) + roundup(nhdr->n_descsz, 4); in read_elf32()
359 nhdr = (Elf32_Nhdr *)((char *)note_buf + offset); in read_elf32()
363 nhdr = NULL; in read_elf32()
609 if (nhdr != NULL) in read_elf32()
610 kmem_free(nhdr, phdr->p_filesz); in read_elf32()
630 Elf64_Nhdr *nhdr; /* note header */ in read_elf64() local
649 nhdr = NULL; in read_elf64()
704 (u_longlong_t)phdr->p_filesz, (void *)nhdr); in read_elf64()
706 nhdr = (Elf64_Nhdr *)note_buf; in read_elf64()
707 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz) in read_elf64()
711 nhdr->n_namesz, nhdr->n_descsz, nhdr->n_type); in read_elf64()
720 namep = (caddr_t)(nhdr + 1); in read_elf64()
722 if (nhdr->n_namesz == strlen(ELF_NOTE_SOLARIS) + 1 && in read_elf64()
724 nhdr->n_type == ELF_NOTE_PAGESIZE_HINT) { in read_elf64()
725 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf64()
731 offset += sizeof (Elf64_Nhdr) + roundup(nhdr->n_namesz, in read_elf64()
732 4) + roundup(nhdr->n_descsz, 4); in read_elf64()
734 nhdr = (Elf64_Nhdr *)((char *)note_buf + offset); in read_elf64()
738 nhdr = NULL; in read_elf64()
964 if (nhdr != NULL) in read_elf64()
965 kmem_free(nhdr, phdr->p_filesz); in read_elf64()