Date: Sun, 7 Apr 2013 17:42:27 +0000 (UTC) From: Mikolaj Golub <trociny@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249239 - head/sys/kern Message-ID: <201304071742.r37HgRK5034010@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trociny Date: Sun Apr 7 17:42:27 2013 New Revision: 249239 URL: http://svnweb.freebsd.org/changeset/base/249239 Log: Fill p_flags and p_align fields of the core dump note segement. Reviewed by: kib MFC after: 2 weeks Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgact_elf.c ============================================================================== --- head/sys/kern/imgact_elf.c Sun Apr 7 17:40:49 2013 (r249238) +++ head/sys/kern/imgact_elf.c Sun Apr 7 17:42:27 2013 (r249239) @@ -1513,8 +1513,8 @@ __elfN(puthdr)(struct thread *td, void * 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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304071742.r37HgRK5034010>