From eb1f9cced9e878362aeac18e120895995f759ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 15 Dec 2024 11:57:51 +0100 Subject: [PATCH] [libunwind] Fix compilation for the x32 ABI. (#116608) This would previously fail the static assertions in `UnwindCursor.hpp` due to `UnwindCursor`'s size not matching `unw_cursor_t`'s size. As is done for MIPS N32, this just declares the appropriate size in `__libunwind_config.h`. --- libunwind/include/__libunwind_config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libunwind/include/__libunwind_config.h b/libunwind/include/__libunwind_config.h index 028b9e3baa80..bb7fe4c83a3c 100644 --- a/libunwind/include/__libunwind_config.h +++ b/libunwind/include/__libunwind_config.h @@ -53,6 +53,9 @@ # else # define _LIBUNWIND_CURSOR_SIZE 66 # endif +# elif defined(__ILP32__) +# define _LIBUNWIND_CONTEXT_SIZE 21 +# define _LIBUNWIND_CURSOR_SIZE 28 # else # define _LIBUNWIND_CONTEXT_SIZE 21 # define _LIBUNWIND_CURSOR_SIZE 33