From 9aba8b66a24c62000a31ff0f4d3b0faf39d9674c Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Thu, 2 Jan 2025 19:12:09 +0800 Subject: [PATCH] LoongArch: Force SHMLBA the same as kernel --- ...Arch-Force-SHMLBA-the-same-as-kernel.patch | 43 +++++++++++++++++++ glibc.spec | 6 ++- 2 files changed, 48 insertions(+), 1 deletion(-) 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 a3b674c..015bda4 100644 --- a/glibc.spec +++ b/glibc.spec @@ -67,7 +67,7 @@ ############################################################################## Name: glibc Version: 2.38 -Release: 47 +Release: 48 Summary: The GNU libc libraries License: %{all_license} URL: http://www.gnu.org/software/glibc/ @@ -250,6 +250,7 @@ Patch160: backport-elf-Introduce-_dl_relocate_object_no_relro.patch Patch161: backport-elf-Switch-to-main-malloc-after-final-ld.so-self-rel.patch Patch162: nptl-initialize-rseq-area-prior-to-registration.patch Patch163: nptl-initialize-cpu_id_start-prior-to-rseq-registrat.patch +Patch164: LoongArch-Force-SHMLBA-the-same-as-kernel.patch #openEuler patch list Patch9000: turn-default-value-of-x86_rep_stosb_threshold_form_2K_to_1M.patch @@ -1440,6 +1441,9 @@ fi %endif %changelog +* Thu Jan 02 2025 Peng Fan - 2.38-48 +- LoongArch: Force SHMLBA the same as kernel + * Tue Dec 10 2024 taoyuxiang - 2.38-47 - Change Inner-Net to Inner-Net-2.0 -- Gitee