diff -urN compiler-rt15.orig/glibc-2.42.patch compiler-rt15.new/glibc-2.42.patch
--- compiler-rt15.orig/glibc-2.42.patch	1970-01-01 01:00:00.000000000 +0100
+++ compiler-rt15.new/glibc-2.42.patch	2025-09-22 22:28:11.362541579 +0200
@@ -0,0 +1,62 @@
+From 5fd87afe5a879a087388b38e311f69df040e9470 Mon Sep 17 00:00:00 2001
+From: Charles Leclerc <charles@la-mouette.net>
+Date: Mon, 22 Sep 2025 22:28:01 +0200
+Subject: [PATCH] glibc patch
+
+---
+ .../sanitizer_common_interceptors_ioctl.inc               | 8 --------
+ lib/sanitizer_common/sanitizer_platform_limits_posix.cpp  | 3 ---
+ lib/sanitizer_common/sanitizer_platform_limits_posix.h    | 1 -
+ 3 files changed, 12 deletions(-)
+
+diff --git a/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc b/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
+index 49ec409..dda11da 100644
+--- a/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
++++ b/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
+@@ -338,17 +338,9 @@ static void ioctl_table_fill() {
+   _(SOUND_PCM_WRITE_CHANNELS, WRITE, sizeof(int));
+   _(SOUND_PCM_WRITE_FILTER, WRITE, sizeof(int));
+   _(TCFLSH, NONE, 0);
+-#if SANITIZER_GLIBC
+-  _(TCGETA, WRITE, struct_termio_sz);
+-#endif
+   _(TCGETS, WRITE, struct_termios_sz);
+   _(TCSBRK, NONE, 0);
+   _(TCSBRKP, NONE, 0);
+-#if SANITIZER_GLIBC
+-  _(TCSETA, READ, struct_termio_sz);
+-  _(TCSETAF, READ, struct_termio_sz);
+-  _(TCSETAW, READ, struct_termio_sz);
+-#endif
+   _(TCSETS, READ, struct_termios_sz);
+   _(TCSETSF, READ, struct_termios_sz);
+   _(TCSETSW, READ, struct_termios_sz);
+diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index c85cf16..c13811e 100644
+--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -467,9 +467,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
+   unsigned struct_input_id_sz = sizeof(struct input_id);
+   unsigned struct_mtpos_sz = sizeof(struct mtpos);
+   unsigned struct_rtentry_sz = sizeof(struct rtentry);
+-#if SANITIZER_GLIBC || SANITIZER_ANDROID
+-  unsigned struct_termio_sz = sizeof(struct termio);
+-#endif
+   unsigned struct_vt_consize_sz = sizeof(struct vt_consize);
+   unsigned struct_vt_sizes_sz = sizeof(struct vt_sizes);
+   unsigned struct_vt_stat_sz = sizeof(struct vt_stat);
+diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+index bd5692e..d3c63c7 100644
+--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h
++++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+@@ -998,7 +998,6 @@ extern unsigned struct_hd_geometry_sz;
+ extern unsigned struct_input_absinfo_sz;
+ extern unsigned struct_input_id_sz;
+ extern unsigned struct_mtpos_sz;
+-extern unsigned struct_termio_sz;
+ extern unsigned struct_vt_consize_sz;
+ extern unsigned struct_vt_sizes_sz;
+ extern unsigned struct_vt_stat_sz;
+-- 
+2.51.0
+
diff -urN compiler-rt15.orig/PKGBUILD compiler-rt15.new/PKGBUILD
--- compiler-rt15.orig/PKGBUILD	2025-05-06 18:18:31.000000000 +0200
+++ compiler-rt15.new/PKGBUILD	2025-09-22 22:36:26.002705571 +0200
@@ -12,11 +12,13 @@
 options=('staticlibs')
 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
 source=($_source_base/compiler-rt-$pkgver.src.tar.xz{,.sig}
-        $_source_base/cmake-$pkgver.src.tar.xz{,.sig})
+        $_source_base/cmake-$pkgver.src.tar.xz{,.sig}
+        'glibc-2.42.patch')
 sha256sums=('353832c66cce60931ea0413b3c071faad59eefa70d02c97daa8978b15e4b25b7'
             'SKIP'
             '8986f29b634fdaa9862eedda78513969fe9788301c9f2d938f4c10a3e7a3e7ea'
-            'SKIP')
+            'SKIP'
+            '66796a3b247120ee8030733b3dce4653de261d84a87a8c4d66f32ba0e0d0114a')
 validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
 
 prepare() {
@@ -26,6 +28,7 @@
 
   mv cmake{-$pkgver.src,}
   cd compiler-rt-$pkgver.src
+  patch -Np1 -i ../../glibc-2.42.patch
   mkdir build
 }
 
