Fill p_flags and p_align fields of the core dump note segement.

Reviewed by:	kib
MFC after:	2 weeks
This commit is contained in:
Mikolaj Golub 2013-04-07 17:42:27 +00:00
parent 27b056480e
commit fb5ea9d1c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249239

View File

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