aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches/500-0003-cut-down-size-of-some-libc-struct-members.patch
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2020-05-23 21:17:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2020-05-26 23:45:17 +0200
commitafea16b8f752b3ccd3f66f9ac3890586d44cde69 (patch)
tree1c617ec727b39cb89b0c0e7b3d3c9aa18adde0dc /toolchain/musl/patches/500-0003-cut-down-size-of-some-libc-struct-members.patch
parent10c211031ccd4703230493025a5a3b9d6fcad2f2 (diff)
downloadupstream-afea16b8f752b3ccd3f66f9ac3890586d44cde69.tar.gz
upstream-afea16b8f752b3ccd3f66f9ac3890586d44cde69.tar.bz2
upstream-afea16b8f752b3ccd3f66f9ac3890586d44cde69.zip
musl: restore lock skipping for mostly-singlethreaded programs, and related patches
The remainder of the patch series proposed by upstream [2] for the locking synchronization issue [1]. [1] https://www.openwall.com/lists/musl/2020/05/22/3 [2] https://www.openwall.com/lists/musl/2020/05/22/10 Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'toolchain/musl/patches/500-0003-cut-down-size-of-some-libc-struct-members.patch')
-rw-r--r--toolchain/musl/patches/500-0003-cut-down-size-of-some-libc-struct-members.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/toolchain/musl/patches/500-0003-cut-down-size-of-some-libc-struct-members.patch b/toolchain/musl/patches/500-0003-cut-down-size-of-some-libc-struct-members.patch
new file mode 100644
index 0000000000..6650434397
--- /dev/null
+++ b/toolchain/musl/patches/500-0003-cut-down-size-of-some-libc-struct-members.patch
@@ -0,0 +1,25 @@
+From f12888e9eb9eed60cc266b899dcafecb4752964a Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Fri, 22 May 2020 17:25:38 -0400
+Subject: [PATCH 3/4] cut down size of some libc struct members
+
+these are all flags that can be single-byte values.
+---
+ src/internal/libc.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- a/src/internal/libc.h
++++ b/src/internal/libc.h
+@@ -18,9 +18,9 @@ struct tls_module {
+ };
+
+ struct __libc {
+- int can_do_threads;
+- int threaded;
+- int secure;
++ char can_do_threads;
++ char threaded;
++ char secure;
+ int threads_minus_1;
+ size_t *auxv;
+ struct tls_module *tls_head;