Lines Matching refs:nhdr
260 #define NOTE_OFFSET_32(nhdr, namesz, offset) \ argument
261 ((char *)nhdr + sizeof(Elf32_Nhdr) + \
264 #define NOTE_OFFSET_64(nhdr, namesz, offset) \ argument
265 ((char *)nhdr + sizeof(Elf32_Nhdr) + \
268 #define PID32(nhdr, namesz, offset) \ argument
269 (pid_t)*((int *)((uintptr_t)NOTE_OFFSET_32(nhdr, \
272 #define PID64(nhdr, namesz, offset) \ argument
273 (pid_t)*((int *)((uintptr_t)NOTE_OFFSET_64(nhdr, \
300 Elf32_Nhdr *nhdr, nhdr_l; in handle_core_note() local
316 nhdr = (Elf32_Nhdr *)(uintptr_t)((char*)data + offset); in handle_core_note()
318 if (xlatetom(elf, elfhdr, &nhdr->n_type, &nhdr_l.n_type, in handle_core_note()
320 xlatetom(elf, elfhdr, &nhdr->n_descsz, &nhdr_l.n_descsz, in handle_core_note()
322 xlatetom(elf, elfhdr, &nhdr->n_namesz, &nhdr_l.n_namesz, in handle_core_note()
333 name = (char *)((char *)nhdr + sizeof(Elf32_Nhdr)); in handle_core_note()
345 ver = (uintptr_t)NOTE_OFFSET_32(nhdr, in handle_core_note()
348 pid = PID32(nhdr, in handle_core_note()
354 ver = (uintptr_t)NOTE_OFFSET_64(nhdr, in handle_core_note()
357 pid = PID64(nhdr, in handle_core_note()
441 *cmd_line = strdup(NOTE_OFFSET_64(nhdr, in handle_core_note()
446 *cmd_line = strdup(NOTE_OFFSET_32(nhdr, in handle_core_note()