diff options
author | emaste <emaste@FreeBSD.org> | 2016-07-25 14:16:28 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-07-25 14:16:28 +0000 |
commit | eafa662f76d570477b7d79bbb4280c64591774dd (patch) | |
tree | 48ebc23778a9b5f7147abf31b89cfae986741029 /lib/libc/stdlib/strfmon.c | |
parent | 545d990a81b5df5354712165e83217404a6eb3c2 (diff) | |
download | FreeBSD-src-eafa662f76d570477b7d79bbb4280c64591774dd.zip FreeBSD-src-eafa662f76d570477b7d79bbb4280c64591774dd.tar.gz |
MFC r303157: libcxxrt: add padding in __cxa_allocate_* to fix alignment
The addition of the referenceCount to __cxa_allocate_exception put the
unwindHeader at offset 0x58 in __cxa_exception, but it requires 16-byte
alignment. In order to avoid changing the current __cxa_exception ABI
(and thus breaking its consumers), add explicit padding in the
allocation routines (and account for it when freeing).
This is intended as a lower-risk change for FreeBSD 11. A "more correct"
fix should be prepared for upstream and -CURRENT.
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libc/stdlib/strfmon.c')
0 files changed, 0 insertions, 0 deletions