| 22f9e5c0 | 08-Jun-2025 |
Tijl Coosemans <tijl@FreeBSD.org> |
Make robust against __cxa_exception ABI changes
Patch OpenOffice to replace __cxa_get_globals()->caughtExceptions, which is a pointer to the start of a struct __cxa_exception, with __cxa_current_pri
Make robust against __cxa_exception ABI changes
Patch OpenOffice to replace __cxa_get_globals()->caughtExceptions, which is a pointer to the start of a struct __cxa_exception, with __cxa_current_primary_exception(), which is a pointer to the end. This allows struct __cxa_exception to be extended at the start as was recently done in FreeBSD main and stable/13 on 64-bit architectures.
Recently on FreeBSD main and stable/13 __attribute__((__aligned__)) was added to struct _Unwind_Exception which changes its size on 32-bit architectures, and that of __cxa_exception as well. Patch openoffice to detect this so packages built on 13.0 still work on 13.1.
(cherry picked from commit d10e4cc263102d760b56217974702c98f89327b0) (cherry picked from commit 3bfdfb5f4474009ab79d4e0a47aa68a4a684cbd6)
show more ...
|