Increase alignment to size of pointer if the alignment is too small.
authordavidxu <davidxu@FreeBSD.org>
Sat, 22 Feb 2014 11:06:48 +0000 (11:06 +0000)
committerdavidxu <davidxu@FreeBSD.org>
Sat, 22 Feb 2014 11:06:48 +0000 (11:06 +0000)
commitd5fd940f42f4f9136e5b800ec08ecc05046b9012
tree9bbedd1964210e924e99cec1459d950065df8dff
parentc917c5fba9d9696174f2d0bb435634cd8f040a3c
Increase alignment to size of pointer if the alignment is too small.
Some modules do not align data at least to size of pointer, they uses a
smaller alignment, but our pointer should be aligned to its native
boundary, otherwise on some platforms, hardware alignment checking
will cause bus error.
libexec/rtld-elf/xmalloc.c