summaryrefslogtreecommitdiffstats
path: root/contrib/libcxxrt/libelftc_dem_gnu3.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-07-25 14:16:28 +0000
committeremaste <emaste@FreeBSD.org>2016-07-25 14:16:28 +0000
commiteafa662f76d570477b7d79bbb4280c64591774dd (patch)
tree48ebc23778a9b5f7147abf31b89cfae986741029 /contrib/libcxxrt/libelftc_dem_gnu3.c
parent545d990a81b5df5354712165e83217404a6eb3c2 (diff)
downloadFreeBSD-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 'contrib/libcxxrt/libelftc_dem_gnu3.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud