Add LoongArch support
This commit is contained in:
parent
04546a31a3
commit
a734449011
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
|
@ -1045,6 +1045,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
|
Patch2004: glibc-Support-target-specific-ALIGN-for-variable-alignment-4.patch
|
||||||
Patch2005: glibc-elf-Fix-tst-align3.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:
|
# Continued list of core "glibc" package information:
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -1724,6 +1727,11 @@ build()
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
--disable-multi-arch \
|
--disable-multi-arch \
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch loongarch64
|
||||||
|
--enable-stackguard-randomization \
|
||||||
|
--with-selinux \
|
||||||
|
--enable-shared \
|
||||||
|
%endif
|
||||||
%if %{without werror}
|
%if %{without werror}
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
%endif
|
%endif
|
||||||
|
@ -2876,6 +2884,7 @@ fi
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Oct 08 2023 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-225.0.4.6
|
* Sun Oct 08 2023 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-225.0.4.6
|
||||||
- elf: Properly align PT_LOAD segments
|
- elf: Properly align PT_LOAD segments
|
||||||
|
- Sync loongarch64 code to lnd.35. (lixing@loongson.cn)
|
||||||
|
|
||||||
* Wed Sep 20 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.28-236.6
|
* Wed Sep 20 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.28-236.6
|
||||||
- CVE-2023-4911 glibc: buffer overflow in ld.so leading to privilege escalation (RHEL-3035)
|
- CVE-2023-4911 glibc: buffer overflow in ld.so leading to privilege escalation (RHEL-3035)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue