From 59fe463cbe84ae6acdde93b2dbf4127cbe8b06d4 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Thu, 2 Jan 2025 19:06:50 +0800 Subject: [PATCH] LoongArch: Force SHMLBA the same as kernel --- ...Arch-Force-SHMLBA-the-same-as-kernel.patch | 43 +++++++++++++++++++ glibc.spec | 8 +++- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 LoongArch-Force-SHMLBA-the-same-as-kernel.patch diff --git a/LoongArch-Force-SHMLBA-the-same-as-kernel.patch b/LoongArch-Force-SHMLBA-the-same-as-kernel.patch new file mode 100644 index 0000000..b01a5d2 --- /dev/null +++ b/LoongArch-Force-SHMLBA-the-same-as-kernel.patch @@ -0,0 +1,43 @@ +From 24be95c79df4a535d352ae8f62716921e379e0b0 Mon Sep 17 00:00:00 2001 +From: Xing Li +Date: Thu, 2 Jan 2025 04:01:21 +0000 +Subject: [PATCH] LoongArch: Force SHMLBA the same as kernel + +--- + .../unix/sysv/linux/loongarch/bits/shmlba.h | 24 ------------------- + 1 file changed, 24 deletions(-) + delete mode 100644 sysdeps/unix/sysv/linux/loongarch/bits/shmlba.h + +diff --git a/sysdeps/unix/sysv/linux/loongarch/bits/shmlba.h b/sysdeps/unix/sysv/linux/loongarch/bits/shmlba.h +deleted file mode 100644 +index 3c171ef7..00000000 +--- a/sysdeps/unix/sysv/linux/loongarch/bits/shmlba.h ++++ /dev/null +@@ -1,24 +0,0 @@ +-/* Define SHMLBA. LoongArch version. +- Copyright (C) 2023 Free Software Foundation, Inc. +- This file is part of the GNU C Library. +- +- The GNU C Library is free software; you can redistribute it and/or +- modify it under the terms of the GNU Lesser General Public +- License as published by the Free Software Foundation; either +- version 2.1 of the License, or (at your option) any later version. +- +- The GNU C Library is distributed in the hope that it will be useful, +- but WITHOUT ANY WARRANTY; without even the implied warranty of +- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +- Lesser General Public License for more details. +- +- You should have received a copy of the GNU Lesser General Public +- License along with the GNU C Library; if not, see +- . */ +- +-#ifndef _SYS_SHM_H +-# error "Never use directly; include instead." +-#endif +- +-/* Segment low boundary address multiple. */ +-#define SHMLBA 0x10000 +-- +2.41.0 + diff --git a/glibc.spec b/glibc.spec index 44d966d..5435211 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,4 +1,4 @@ -%define anolis_release 7 +%define anolis_release 8 %bcond_without testsuite %bcond_without benchtests @@ -155,11 +155,12 @@ Patch3043: 0015-LoongArch-Change-tunable-for-2.38.patch Patch3044: 0016-LoongArch-Simplify-the-autoconf-check-for-static-PIE.patch Patch3045: 0017-nptl-Add-thread_pointer.h-for-LoongArch.patch Patch3046: 0018-nptl-fix-__builtin_thread_pointer-detection-on-Loong.patch - Patch3047: 0001-x86-Set-preferred-CPU-features-on-the-KH-40000-and-K.patch Patch3048: 0002-x86_64-Optimize-large-size-copy-in-memmove-ssse3.patch Patch3049: 0003-x86-Set-default-non_temporal_threshold-for-Zhaoxin-p.patch +Patch3050: LoongArch-Force-SHMLBA-the-same-as-kernel.patch + BuildRequires: audit-libs-devel >= 1.1.3 libcap-devel systemtap-sdt-devel BuildRequires: procps-ng util-linux gawk sed >= 3.95 gettext BuildRequires: python3 python3-devel @@ -1122,6 +1123,9 @@ update_gconv_modules_cache () %{_libdir}/libpthread_nonshared.a %changelog +* Thu Jan 02 2025 Peng Fan - 2.38-8 +- LoongArch: Force SHMLBA the same as kernel + * Sat Apr 26 2025 Yihao Yan - 2.38-7 - Add support for riscv64 - Add lp64d into glibc -- Gitee