]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r249238, r249239:
authortrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 21 Apr 2013 17:14:50 +0000 (17:14 +0000)
committertrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 21 Apr 2013 17:14:50 +0000 (17:14 +0000)
commit3b394cbb8107f244b5d640298d66ce3e7b79fbb8
treeac85b65d9c9a5bf1fa0b708b162c97dcbeb72b33
parentb0b76bec423b1bd53eae8f41a09df1688652f46b
MFC r249238, r249239:

r249238:

Use 4-byte padding for core dump notes on both 32 and 64bit archs.

Although native word padding (i.e. 8-byte on 64bit arch) looks to be
in agreement with standards, other parts of our code and other OSes
use 4-byte alignment.

This is not expected to change alignment for currently generated core
dump notes, as the notes look to consist of structures with sizes
multiple of 8 on 64-bit archs. But there are plans to add additional
notes, where 4-byte vs 8-byte alignment makes difference.

Discussed with: kib
Reviewed by: kib

r249239:

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

Reviewed by: kib

git-svn-id: svn://svn.freebsd.org/base/stable/9@249734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/imgact_elf.c