svn commit: r249239 - head/sys/kern

Mikolaj Golub trociny at FreeBSD.org
Sun Apr 7 17:42:28 UTC 2013


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. */


More information about the svn-src-all mailing list