From 43a039c3be367ab03bf45a341dc5d248c04c38da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Fri, 6 Nov 2020 11:35:39 -0300 Subject: [PATCH] musl: add patch for aarch64 fregs and vregs. Necessary for building elfutils for aarch64 without patches. --- srcpkgs/musl/patches/aarch64-fregs.patch | 37 ++++++++++++++++++++++++ srcpkgs/musl/template | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/musl/patches/aarch64-fregs.patch diff --git a/srcpkgs/musl/patches/aarch64-fregs.patch b/srcpkgs/musl/patches/aarch64-fregs.patch new file mode 100644 index 0000000000..9c89de4473 --- /dev/null +++ b/srcpkgs/musl/patches/aarch64-fregs.patch @@ -0,0 +1,37 @@ +Use types compatible with glibc/kernel headers. + +diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h +index b71261f5..5098c734 100644 +--- arch/aarch64/bits/signal.h ++++ arch/aarch64/bits/signal.h +@@ -11,7 +11,7 @@ typedef unsigned long greg_t; + typedef unsigned long gregset_t[34]; + + typedef struct { +- long double vregs[32]; ++ __uint128_t vregs[32]; + unsigned int fpsr; + unsigned int fpcr; + } fpregset_t; +@@ -34,7 +34,7 @@ struct fpsimd_context { + struct _aarch64_ctx head; + unsigned int fpsr; + unsigned int fpcr; +- long double vregs[32]; ++ __uint128_t vregs[32]; + }; + struct esr_context { + struct _aarch64_ctx head; +diff --git a/arch/aarch64/bits/user.h b/arch/aarch64/bits/user.h +index d12cdf7f..8a1002aa 100644 +--- arch/aarch64/bits/user.h ++++ arch/aarch64/bits/user.h +@@ -6,7 +6,7 @@ struct user_regs_struct { + }; + + struct user_fpsimd_struct { +- long double vregs[32]; ++ __uint128_t vregs[32]; + unsigned int fpsr; + unsigned int fpcr; + }; diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template index 22e79588ac..6a0ac60b03 100644 --- a/srcpkgs/musl/template +++ b/srcpkgs/musl/template @@ -2,7 +2,7 @@ pkgname=musl reverts="1.2.0_1" version=1.1.24 -revision=3 +revision=4 archs="*-musl" bootstrap=yes build_style=gnu-configure