glibc: Add 2.40

https://sourceware.org/pipermail/libc-announce/2024/000042.html

Add the new version drop the patch that was applied upstream.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2024-07-24 08:58:54 +12:00
parent d7fff42893
commit 6a03d91b8c
3 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,73 @@
From 532fad624fcf09744fc79f301f4f1e50e26f3859 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Sat, 13 Feb 2021 17:08:21 +0300
Subject: [PATCH] Add ARC700 support
glibc does not officially support ARC700 so this adds the missing
pieces. I looked at uClibc-ng and a patch by Synopsis for glibc.
[Alexey] Taken from https://github.com/openwrt/openwrt/commit/33646a51abcf15ff5c5363848287e1ed778b7467
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
---
sysdeps/arc/atomic-machine.h | 4 ++++
sysdeps/unix/sysv/linux/arc/syscall.S | 5 +++++
sysdeps/unix/sysv/linux/arc/sysdep.h | 8 ++++++++
3 files changed, 17 insertions(+)
--- a/sysdeps/arc/atomic-machine.h
+++ b/sysdeps/arc/atomic-machine.h
@@ -52,6 +52,10 @@
__atomic_val_bysize (__arch_compare_and_exchange_val, int, \
mem, new, old, __ATOMIC_ACQUIRE)
+#ifdef __ARC700__
+#define atomic_full_barrier() ({ asm volatile ("sync":::"memory"); })
+#else
#define atomic_full_barrier() ({ asm volatile ("dmb 3":::"memory"); })
+#endif
#endif /* _ARC_BITS_ATOMIC_H */
--- a/sysdeps/unix/sysv/linux/arc/syscall.S
+++ b/sysdeps/unix/sysv/linux/arc/syscall.S
@@ -24,8 +24,13 @@
mov_s r1, r2
mov_s r2, r3
mov_s r3, r4
+#ifdef __ARC700__
+ mov r4, r5
+ mov r5, r6
+#else
mov_s r4, r5
mov_s r5, r6
+#endif
ARC_TRAP_INSN
brhi r0, -4096, L (call_syscall_err)
--- a/sysdeps/unix/sysv/linux/arc/sysdep.h
+++ b/sysdeps/unix/sysv/linux/arc/sysdep.h
@@ -130,7 +130,11 @@
mov r8, __NR_##syscall_name ASM_LINE_SEP \
ARC_TRAP_INSN ASM_LINE_SEP
+# ifdef __ARC700__
+# define ARC_TRAP_INSN trap0
+# else
# define ARC_TRAP_INSN trap_s 0
+# endif
#else /* !__ASSEMBLER__ */
@@ -139,7 +143,11 @@
hidden_proto (__syscall_error)
# endif
+# ifdef __ARC700__
+# define ARC_TRAP_INSN "trap0 \n\t"
+# else
# define ARC_TRAP_INSN "trap_s 0 \n\t"
+#endif
# define HAVE_CLONE3_WRAPPER 1

12
packages/glibc/2.40/chksum vendored Normal file
View File

@ -0,0 +1,12 @@
md5 glibc-2.40.tar.xz b390feef233022114950317f10c4fa97
sha1 glibc-2.40.tar.xz 123a611ac9e65504d88671b9671413475d377647
sha256 glibc-2.40.tar.xz 19a890175e9263d748f627993de6f4b1af9cd21e03f080e4bfb3a1fac10205a2
sha512 glibc-2.40.tar.xz 33caf91dbfddde6480b7cdf7a68b36aff8c522bfee56160af26af297f1b768668edb08bc4e1a7ff61c64721e3c1d49c347a5dd01c5edd3b914ee6479c8b27885
md5 glibc-2.40.tar.bz2 1497c095878280da7c596494c441ea1d
sha1 glibc-2.40.tar.bz2 831f7c06fd85ae8a0aa54bd6a8f8bb8519cf0046
sha256 glibc-2.40.tar.bz2 9b368ce57f3e0aff7a4bfecfc237879bfc698f7a58f73dc6676a20b6d3b4e76d
sha512 glibc-2.40.tar.bz2 46bbc70b01da4c467244ab3de99785ac2646dc75a4e8407e78b3cb2d6f37c22131a6bf91b5192290ec781f779384d197e5c64f75a46848a951ef6a4f7bb8df64
md5 glibc-2.40.tar.gz a7c59bb17b4cf9c077608f97e5df25dc
sha1 glibc-2.40.tar.gz e99207f768cadf88ef5894ef734d7c8ea89cfe21
sha256 glibc-2.40.tar.gz 2abc038f5022949cb67e996c3cae0e7764f99b009f0b9b7fd954dfc6577b599e
sha512 glibc-2.40.tar.gz 55cc305b4caa0821f95a74b23b495926e60b51bc335c9212623514b49a48cb8f175e7308f3b3b337cb1b27a742d9143db1eac5261cf163103b0004b2bc90e364

0
packages/glibc/2.40/version.desc vendored Normal file
View File