From fb5ea9d1c86691f817457673cd27920e300c5eec Mon Sep 17 00:00:00 2001 From: Mikolaj Golub Date: Sun, 7 Apr 2013 17:42:27 +0000 Subject: [PATCH] Fill p_flags and p_align fields of the core dump note segement. Reviewed by: kib MFC after: 2 weeks --- sys/kern/imgact_elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 27ec7e90013..28ff189c255 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -1513,8 +1513,8 @@ __elfN(puthdr)(struct thread *td, void *dst, size_t *off, int numsegs) phdr->p_paddr = 0; phdr->p_filesz = notesz; phdr->p_memsz = 0; - phdr->p_flags = 0; - phdr->p_align = 0; + phdr->p_flags = PF_R; + phdr->p_align = sizeof(Elf32_Size); phdr++; /* All the writable segments from the program. */