Skip to content

Commit d4db3fa

Browse files
committed
Update to musl 1.1.23.
See the WHATSNEW file for details; among other things, this contains new math library implementation for log/exp/pow.
1 parent 8df0d4c commit d4db3fa

254 files changed

Lines changed: 4921 additions & 2174 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

expected/wasm32-wasi/defined-symbols.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ __env_rm_add
4141
__env_rm_add
4242
__env_rm_add
4343
__environ
44+
__exp2f_data
45+
__exp_data
4446
__expo2
4547
__expo2f
4648
__fbufsize
@@ -134,6 +136,20 @@ __lgammal_r
134136
__libc
135137
__loc_is_allocated
136138
__localtime_r
139+
__log2_data
140+
__log2f_data
141+
__log_data
142+
__logf_data
143+
__math_divzero
144+
__math_divzerof
145+
__math_invalid
146+
__math_invalidf
147+
__math_oflow
148+
__math_oflowf
149+
__math_uflow
150+
__math_uflowf
151+
__math_xflow
152+
__math_xflowf
137153
__memrchr
138154
__mo_lookup
139155
__month_to_secs
@@ -152,6 +168,8 @@ __pio2_lo
152168
__pleval
153169
__polevll
154170
__posix_getopt
171+
__pow_log_data
172+
__powf_log2_data
155173
__prepare_for_exit
156174
__progname
157175
__progname_full

expected/wasm32-wasi/predefined-macros.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@
615615
#define INADDRSZ NS_INADDRSZ
616616
#define INADDR_ALLHOSTS_GROUP ((in_addr_t) 0xe0000001)
617617
#define INADDR_ALLRTRS_GROUP ((in_addr_t) 0xe0000002)
618+
#define INADDR_ALLSNOOPERS_GROUP ((in_addr_t) 0xe000006a)
618619
#define INADDR_ANY ((in_addr_t) 0x00000000)
619620
#define INADDR_BROADCAST ((in_addr_t) 0xffffffff)
620621
#define INADDR_LOOPBACK ((in_addr_t) 0x7f000001)
@@ -861,6 +862,7 @@
861862
#define IPV6_RECVRTHDR 56
862863
#define IPV6_RECVTCLASS 66
863864
#define IPV6_ROUTER_ALERT 22
865+
#define IPV6_ROUTER_ALERT_ISOLATE 30
864866
#define IPV6_RTHDR 57
865867
#define IPV6_RTHDRDSTOPTS 55
866868
#define IPV6_RTHDR_LOOSE 0

libc-top-half/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Code in the musl directory is based on musl revision
2-
e97681d6f2c44bf5fa9ecdd30607cb63c780062e, which is v1.1.22, from
2+
b07d45eb01e900f0176894fdedab62285f5cb8be, which is v1.1.23, from
33
git://git.musl-libc.org/musl.
44

55
Whole files which are unused are omitted. Changes to upstream code are wrapped

libc-top-half/musl/COPYRIGHT

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
musl as a whole is licensed under the following standard MIT license:
22

33
----------------------------------------------------------------------
4-
Copyright © 2005-2014 Rich Felker, et al.
4+
Copyright © 2005-2019 Rich Felker, et al.
55

66
Permission is hereby granted, free of charge, to any person obtaining
77
a copy of this software and associated documentation files (the
@@ -27,11 +27,15 @@ Authors/contributors include:
2727

2828
A. Wilcox
2929
Alex Dowad
30+
Alex Suykov
3031
Alexander Monakov
32+
Andre McCurdy
3133
Andrew Kelley
3234
Anthony G. Basile
35+
Aric Belsito
3336
Arvid Picciani
3437
Bartosz Brachaczek
38+
Benjamin Peterson
3539
Bobby Bingham
3640
Boris Brezillon
3741
Brent Cook
@@ -40,11 +44,14 @@ Clément Vasseur
4044
Daniel Micay
4145
Daniel Sabogal
4246
Daurnimator
47+
David Carlier
4348
David Edelsohn
4449
Denys Vlasenko
4550
Dmitry Ivanov
4651
Dmitry V. Levin
52+
Drew DeVault
4753
Emil Renner Berthing
54+
Fangrui Song
4855
Felix Fietkau
4956
Felix Janda
5057
Gianluca Anzolin
@@ -61,35 +68,43 @@ John Spencer
6168
Josiah Worcester
6269
Julien Ramseier
6370
Justin Cormack
71+
Kaarle Ritvanen
6472
Khem Raj
6573
Kylie McClain
6674
Leah Neukirchen
6775
Luca Barbato
6876
Luka Perkov
6977
M Farkas-Dyck (Strake)
7078
Mahesh Bodapati
79+
Markus Wichmann
7180
Masanori Ogino
81+
Michael Clark
7282
Michael Forney
7383
Mikhail Kremnyov
7484
Natanael Copa
7585
Nicholas J. Kain
7686
orc
7787
Pascal Cuoq
88+
Patrick Oppenlander
7889
Petr Hosek
7990
Petr Skocik
8091
Pierre Carrier
8192
Reini Urban
8293
Rich Felker
8394
Richard Pennington
95+
Ryan Fairfax
8496
Samuel Holland
97+
Segev Finer
8598
Shiz
8699
sin
87100
Solar Designer
88101
Stefan Kristiansson
102+
Stefan O'Rear
89103
Szabolcs Nagy
90104
Timo Teräs
91105
Trutz Behn
92106
Valentin Ochs
107+
Will Dietz
93108
William Haddon
94109
William Pitcock
95110

libc-top-half/musl/INSTALL

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ and ABI combinations:
6363
is required
6464

6565
* MIPS64
66-
* ABI is n64 (LP64)
66+
* ABI is n64 (LP64) or n32 (ILP32)
6767
* Big-endian default; little-endian variants also supported
6868
* Default ABI variant uses FPU registers; alternate soft-float ABI
6969
that does not use FPU registers or instructions is available
@@ -96,6 +96,11 @@ and ABI combinations:
9696

9797
* OpenRISC 1000 (or1k)
9898

99+
* RISC-V 64
100+
* Little endian
101+
* Hard, soft, and hard-single/soft-double floating point ABIs
102+
* Standard ELF; no shared-text NOMMU support
103+
99104

100105

101106
Build and Installation Procedure

libc-top-half/musl/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.22
1+
1.1.23

libc-top-half/musl/WHATSNEW

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,3 +2077,41 @@ bugs fixed:
20772077

20782078
arch-specfic bugs fixed:
20792079
- s390x had wrong values for POSIX_FADV_DONTNEED/_NOREUSE
2080+
2081+
2082+
2083+
1.1.23 release notes
2084+
2085+
new features:
2086+
- riscv64 port
2087+
- configure now allows customizing AR and RANLIB vars
2088+
- header-level support for new linux features in 5.1
2089+
2090+
major internal changes:
2091+
- removed extern __syscall; syscall header code is now fully self-contained
2092+
2093+
performance:
2094+
- new math library implementation for log/exp/pow
2095+
- aarch64 dynamic tlsdesc function is streamlined
2096+
2097+
compatibility & conformance:
2098+
- O_TTY_INIT is now defined
2099+
- sys/types.h no longer pollutes namespace with sys/sysmacros.h in any profile
2100+
- powerpc asm is now compatible with clang internal assembler
2101+
2102+
changes for new POSIX interpretations:
2103+
- fgetwc now sets stream error indicator on encoding errors
2104+
- fmemopen no longer rejects 0 size
2105+
2106+
bugs fixed:
2107+
- static TLS for shared libraries was allocated wrong on "Variant I" archs
2108+
- crash in dladdr reading through uninitialized pointer on non-match
2109+
- sigaltstack wrongly errored out on invalid ss_size when doing SS_DISABLE
2110+
- getdents function misbehaved with buffer length larger than INT_MAX
2111+
- set*id could deadlock after fork from multithreaded process
2112+
2113+
arch-specfic bugs fixed:
2114+
- s390x SO_PEERSEC definition was wrong
2115+
- passing of 64-bit syscall arguments was broken on microblaze
2116+
- posix_fadvise was broken on mips due to missing 7-arg syscall support
2117+
- vrregset_t layout and member naming was wrong on powerpc64

libc-top-half/musl/arch/aarch64/bits/syscall.h.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,8 @@
277277
#define __NR_io_pgetevents 292
278278
#define __NR_rseq 293
279279
#define __NR_kexec_file_load 294
280+
#define __NR_pidfd_send_signal 424
281+
#define __NR_io_uring_setup 425
282+
#define __NR_io_uring_enter 426
283+
#define __NR_io_uring_register 427
280284

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#define fp_barrierf fp_barrierf
2+
static inline float fp_barrierf(float x)
3+
{
4+
__asm__ __volatile__ ("" : "+w"(x));
5+
return x;
6+
}
7+
8+
#define fp_barrier fp_barrier
9+
static inline double fp_barrier(double x)
10+
{
11+
__asm__ __volatile__ ("" : "+w"(x));
12+
return x;
13+
}
14+
15+
#define fp_force_evalf fp_force_evalf
16+
static inline void fp_force_evalf(float x)
17+
{
18+
__asm__ __volatile__ ("" : "+w"(x));
19+
}
20+
21+
#define fp_force_eval fp_force_eval
22+
static inline void fp_force_eval(double x)
23+
{
24+
__asm__ __volatile__ ("" : "+w"(x));
25+
}

libc-top-half/musl/arch/arm/atomic_arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static inline void a_crash()
8383
: : : "memory");
8484
}
8585

86-
#if __ARM_ARCH >= 5
86+
#if __ARM_ARCH >= 5 && (!__thumb__ || __thumb2__)
8787

8888
#define a_clz_32 a_clz_32
8989
static inline int a_clz_32(uint32_t x)

0 commit comments

Comments
 (0)