Lines Matching refs:nhdr
312 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs);
314 if (nhdr->n_type == 3 && nhdr->n_namesz == sizeof("GNU") &&
315 !strcmp((char *)(nhdr + 1), "GNU") && nhdr->n_descsz > 0 &&
316 nhdr->n_descsz <= BPF_BUILD_ID_SIZE) {
318 ALIGN(sizeof("GNU"), 4) + sizeof(Elf32_Nhdr), nhdr->n_descsz);
319 memset(build_id + nhdr->n_descsz, 0, BPF_BUILD_ID_SIZE - nhdr->n_descsz);
320 return (int) nhdr->n_descsz;
324 ALIGN(nhdr->n_namesz, 4) + ALIGN(nhdr->n_descsz, 4);