Add LoongArch support
This commit is contained in:
parent
45c64e1e3a
commit
63e8adc8b4
3 changed files with 26547 additions and 0 deletions
34
Fix-tst-cancel21.c-to-suit-kernel-struct-sigcontext-.patch
Normal file
34
Fix-tst-cancel21.c-to-suit-kernel-struct-sigcontext-.patch
Normal file
|
@ -0,0 +1,34 @@
|
|||
From c5de7c407853b807e8d0c764e6325bb1311f39cd Mon Sep 17 00:00:00 2001
|
||||
From: Xing Li <lixing@loongson.cn>
|
||||
Date: Tue, 4 Jul 2023 15:10:03 +0800
|
||||
Subject: [PATCH 2/2] Fix tst-cancel21.c to suit kernel struct sigcontext
|
||||
change. * nptl/tst-cancel21.c
|
||||
|
||||
---
|
||||
nptl/tst-cancel21.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/nptl/tst-cancel21.c b/nptl/tst-cancel21.c
|
||||
index b10fdbc1..a3653f21 100644
|
||||
--- a/nptl/tst-cancel21.c
|
||||
+++ b/nptl/tst-cancel21.c
|
||||
@@ -217,14 +217,14 @@ static int
|
||||
do_test (void)
|
||||
{
|
||||
stack_t ss;
|
||||
- ss.ss_sp = malloc (2 * SIGSTKSZ);
|
||||
+ ss.ss_sp = malloc (4 * SIGSTKSZ);
|
||||
if (ss.ss_sp == NULL)
|
||||
{
|
||||
puts ("failed to allocate alternate stack");
|
||||
return 1;
|
||||
}
|
||||
ss.ss_flags = 0;
|
||||
- ss.ss_size = 2 * SIGSTKSZ;
|
||||
+ ss.ss_size = 4 * SIGSTKSZ;
|
||||
if (sigaltstack (&ss, NULL) < 0)
|
||||
{
|
||||
printf ("sigaltstack failed %m\n");
|
||||
--
|
||||
2.27.0
|
||||
|
26504
glibc-Sync-to-lnd-35-for-LoongArch.patch
Normal file
26504
glibc-Sync-to-lnd-35-for-LoongArch.patch
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1070,6 +1070,9 @@ Patch2003: glibc-elf-Align-argument-of-__munmap-to-page-size-BZ-28676-3.patch
|
|||
Patch2004: glibc-Support-target-specific-ALIGN-for-variable-alignment-4.patch
|
||||
Patch2005: glibc-elf-Fix-tst-align3.patch
|
||||
|
||||
Patch2006: glibc-Sync-to-lnd-35-for-LoongArch.patch
|
||||
Patch2007: Fix-tst-cancel21.c-to-suit-kernel-struct-sigcontext-.patch
|
||||
|
||||
##############################################################################
|
||||
# Continued list of core "glibc" package information:
|
||||
##############################################################################
|
||||
|
@ -1749,6 +1752,11 @@ build()
|
|||
%ifarch %{ix86}
|
||||
--disable-multi-arch \
|
||||
%endif
|
||||
%ifarch loongarch64
|
||||
--enable-stackguard-randomization \
|
||||
--with-selinux \
|
||||
--enable-shared \
|
||||
%endif
|
||||
%if %{without werror}
|
||||
--disable-werror \
|
||||
%endif
|
||||
|
@ -2901,6 +2909,7 @@ fi
|
|||
%changelog
|
||||
* Mon May 06 2024 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-236.0.1.12
|
||||
- elf: Properly align PT_LOAD segments
|
||||
- Sync loongarch64 code to lnd.35. (lixing@loongson.cn)
|
||||
|
||||
* Mon Jan 29 2024 Florian Weimer <fweimer@redhat.com> - 2.28-236.12
|
||||
- Re-enable output buffering for wide stdio streams (RHEL-22847)
|
||||
|
|
Loading…
Add table
Reference in a new issue