mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 10:46:26 +00:00
glibc: Add glibc 2.36
https://sourceware.org/pipermail/libc-announce/2022/000034.html Add the new version. Regenerate the patches and remove the one that had been applied upstream. Add a milestone for 2.36 as this version introduces support for the loongarch CPU architecture. Fixes #1795 Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
parent
cc58f592ae
commit
562434f12e
17
packages/glibc/2.36/0000-typedef-caddr.patch
vendored
Normal file
17
packages/glibc/2.36/0000-typedef-caddr.patch
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
posix/sys/types.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
--- a/posix/sys/types.h
|
||||
+++ b/posix/sys/types.h
|
||||
@@ -112,7 +112,10 @@
|
||||
#ifdef __USE_MISC
|
||||
# ifndef __daddr_t_defined
|
||||
typedef __daddr_t daddr_t;
|
||||
+# if ! defined(caddr_t) && ! defined(__caddr_t_defined)
|
||||
typedef __caddr_t caddr_t;
|
||||
+# define __caddr_t_defined
|
||||
+# endif
|
||||
# define __daddr_t_defined
|
||||
# endif
|
||||
#endif
|
73
packages/glibc/2.36/0001-Add-ARC700-support.patch
vendored
Normal file
73
packages/glibc/2.36/0001-Add-ARC700-support.patch
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
From 6349ae7c3d96c8d00179e290d1ccf8a2d8438cc8 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
|
||||
@@ -128,7 +128,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__ */
|
||||
|
||||
@@ -137,7 +141,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
|
||||
|
||||
# undef INTERNAL_SYSCALL_NCS
|
||||
# define INTERNAL_SYSCALL_NCS(number, nr_args, args...) \
|
12
packages/glibc/2.36/chksum
vendored
Normal file
12
packages/glibc/2.36/chksum
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
md5 glibc-2.36.tar.xz 00e9b89e043340f688bc93ec03239b57
|
||||
sha1 glibc-2.36.tar.xz 1477f605f419c439c03ef90e7851c0856ea679ea
|
||||
sha256 glibc-2.36.tar.xz 1c959fea240906226062cb4b1e7ebce71a9f0e3c0836c09e7e3423d434fcfe75
|
||||
sha512 glibc-2.36.tar.xz 9ea0bbda32f83a85b7da0c34f169607fb8a102f0a11a914e6bf531be47d1bef4f5307128286cffa1e2dc5879f0e6ccaef527dd353486883fa332a0b44bde8b3e
|
||||
md5 glibc-2.36.tar.bz2 fa3409fd10d880163231d7a5b060255c
|
||||
sha1 glibc-2.36.tar.bz2 f87cf260ed9340f402245dd68867133c1d4b3bfe
|
||||
sha256 glibc-2.36.tar.bz2 f78672ec277cc6e5cf2bdd6edec50c5c7b385763a37f03bd7277a907cf7fc862
|
||||
sha512 glibc-2.36.tar.bz2 d9a8d8066b7d1593ba9d4c0da17213aac57707d9bd816ba93fdc1cd408efed6d8e18c65f5ba03e82c92f5bd2469164d6c5601847ad979e08a438d55296358848
|
||||
md5 glibc-2.36.tar.gz 5467e3d8d526fc02b8e6b5bac2216513
|
||||
sha1 glibc-2.36.tar.gz c4ebbcc39d88e0ebfd319710b424eef302b95945
|
||||
sha256 glibc-2.36.tar.gz 02efa6ffbbaf3e10e88f16818a862608d04b0ef838c66f6025ae120530792c9c
|
||||
sha512 glibc-2.36.tar.gz a898d76fb88a68cda122aba26794d91d1088afbc90aaf93505afbf8b607403e8e92f2dd1acface417b9289cb18056579f49176dd88c88e2815b2552bb355f63e
|
1
packages/glibc/2.36/version.desc
vendored
Normal file
1
packages/glibc/2.36/version.desc
vendored
Normal file
@ -0,0 +1 @@
|
||||
# Released 1 Aug 2022
|
@ -3,6 +3,6 @@ repository='git git://sourceware.org/git/glibc.git'
|
||||
mirrors='$(CT_Mirrors GNU glibc)'
|
||||
# Cannot use MAJOR.MINOR as the relevant part because of 2.12: 2.12.2 was the most recent
|
||||
# bugfix release, but it didn't have glibc-ports released alongside it.
|
||||
milestones='2.14 2.17 2.20 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.34'
|
||||
milestones='2.14 2.17 2.20 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.34 2.36'
|
||||
archive_formats='.tar.xz .tar.bz2 .tar.gz'
|
||||
signature_format='packed/.sig'
|
||||
|
Loading…
Reference in New Issue
Block a user