Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to musl 1.2.5. #557

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
legacy/getpagesize.c \
thread/thrd_sleep.c \
) \
$(filter-out %/procfdname.c %/syscall.c %/syscall_ret.c %/vdso.c %/version.c, \
$(filter-out %/procfdname.c %/syscall.c %/syscall_ret.c %/vdso.c %/version.c %/emulate_wait4.c, \
$(wildcard $(LIBC_TOP_HALF_MUSL_SRC_DIR)/internal/*.c)) \
$(filter-out %/flockfile.c %/funlockfile.c %/__lockfile.c %/ftrylockfile.c \
%/rename.c \
Expand Down
40 changes: 40 additions & 0 deletions expected/wasm32-wasip1-threads/predefined-macros.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1950,18 +1950,35 @@
#define T_AFSDB ns_t_afsdb
#define T_ANY ns_t_any
#define T_ATMA ns_t_atma
#define T_AVC ns_t_avc
#define T_AXFR ns_t_axfr
#define T_CAA ns_t_caa
#define T_CDNSKEY ns_t_cdnskey
#define T_CDS ns_t_cds
#define T_CNAME ns_t_cname
#define T_CSYNC ns_t_csync
#define T_DHCID ns_t_dhcid
#define T_DLV ns_t_dlv
#define T_DNAME ns_t_dname
#define T_DNSKEY ns_t_dnskey
#define T_DS ns_t_ds
#define T_EID ns_t_eid
#define T_EUI48 ns_t_eui48
#define T_EUI64 ns_t_eui64
#define T_FMT 0x2002A
#define T_FMT_AMPM 0x2002B
#define T_GID ns_t_gid
#define T_GPOS ns_t_gpos
#define T_HINFO ns_t_hinfo
#define T_HIP ns_t_hip
#define T_IPSECKEY ns_t_ipseckey
#define T_ISDN ns_t_isdn
#define T_IXFR ns_t_ixfr
#define T_KEY ns_t_key
#define T_L32 ns_t_l32
#define T_L64 ns_t_l64
#define T_LOC ns_t_loc
#define T_LP ns_t_lp
#define T_MAILA ns_t_maila
#define T_MAILB ns_t_mailb
#define T_MB ns_t_mb
Expand All @@ -1972,21 +1989,40 @@
#define T_MR ns_t_mr
#define T_MX ns_t_mx
#define T_NAPTR ns_t_naptr
#define T_NID ns_t_nid
#define T_NIMLOC ns_t_nimloc
#define T_NINFO ns_t_ninfo
#define T_NS ns_t_ns
#define T_NSAP ns_t_nsap
#define T_NSAP_PTR ns_t_nsap_ptr
#define T_NSEC ns_t_nsec
#define T_NSEC3 ns_t_nsec3
#define T_NSEC3PARAM ns_t_nsec3param
#define T_NULL ns_t_null
#define T_NXT ns_t_nxt
#define T_OPENPGPKEY ns_t_openpgpkey
#define T_PTR ns_t_ptr
#define T_PX ns_t_px
#define T_RKEY ns_t_rkey
#define T_RP ns_t_rp
#define T_RRSIG ns_t_rrsig
#define T_RT ns_t_rt
#define T_SIG ns_t_sig
#define T_SMIMEA ns_t_smimea
#define T_SOA ns_t_soa
#define T_SPF ns_t_spf
#define T_SRV ns_t_srv
#define T_SSHFP ns_t_sshfp
#define T_TA ns_t_ta
#define T_TALINK ns_t_talink
#define T_TKEY ns_t_tkey
#define T_TLSA ns_t_tlsa
#define T_TSIG ns_t_tsig
#define T_TXT ns_t_txt
#define T_UID ns_t_uid
#define T_UINFO ns_t_uinfo
#define T_UNSPEC ns_t_unspec
#define T_URI ns_t_uri
#define T_WKS ns_t_wks
#define T_X25 ns_t_x25
#define UCHAR_MAX 255
Expand Down Expand Up @@ -2092,6 +2128,8 @@
#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 1145
#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS 1146
#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147
#define _CS_POSIX_V7_THREADS_CFLAGS 1150
#define _CS_POSIX_V7_THREADS_LDFLAGS 1151
#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS 5
#define _CS_V6_ENV 1148
#define _CS_V7_ENV 1149
Expand Down Expand Up @@ -2290,6 +2328,7 @@
#define _SC_MEMLOCK_RANGE 18
#define _SC_MEMORY_PROTECTION 19
#define _SC_MESSAGE_PASSING 20
#define _SC_MINSIGSTKSZ 249
#define _SC_MONOTONIC_CLOCK 149
#define _SC_MQ_OPEN_MAX 27
#define _SC_MQ_PRIO_MAX 28
Expand Down Expand Up @@ -2317,6 +2356,7 @@
#define _SC_SHARED_MEMORY_OBJECTS 22
#define _SC_SHELL 157
#define _SC_SIGQUEUE_MAX 34
#define _SC_SIGSTKSZ 250
#define _SC_SPAWN 159
#define _SC_SPIN_LOCKS 154
#define _SC_SPORADIC_SERVER 160
Expand Down
40 changes: 40 additions & 0 deletions expected/wasm32-wasip1/predefined-macros.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1948,18 +1948,35 @@
#define T_AFSDB ns_t_afsdb
#define T_ANY ns_t_any
#define T_ATMA ns_t_atma
#define T_AVC ns_t_avc
#define T_AXFR ns_t_axfr
#define T_CAA ns_t_caa
#define T_CDNSKEY ns_t_cdnskey
#define T_CDS ns_t_cds
#define T_CNAME ns_t_cname
#define T_CSYNC ns_t_csync
#define T_DHCID ns_t_dhcid
#define T_DLV ns_t_dlv
#define T_DNAME ns_t_dname
#define T_DNSKEY ns_t_dnskey
#define T_DS ns_t_ds
#define T_EID ns_t_eid
#define T_EUI48 ns_t_eui48
#define T_EUI64 ns_t_eui64
#define T_FMT 0x2002A
#define T_FMT_AMPM 0x2002B
#define T_GID ns_t_gid
#define T_GPOS ns_t_gpos
#define T_HINFO ns_t_hinfo
#define T_HIP ns_t_hip
#define T_IPSECKEY ns_t_ipseckey
#define T_ISDN ns_t_isdn
#define T_IXFR ns_t_ixfr
#define T_KEY ns_t_key
#define T_L32 ns_t_l32
#define T_L64 ns_t_l64
#define T_LOC ns_t_loc
#define T_LP ns_t_lp
#define T_MAILA ns_t_maila
#define T_MAILB ns_t_mailb
#define T_MB ns_t_mb
Expand All @@ -1970,21 +1987,40 @@
#define T_MR ns_t_mr
#define T_MX ns_t_mx
#define T_NAPTR ns_t_naptr
#define T_NID ns_t_nid
#define T_NIMLOC ns_t_nimloc
#define T_NINFO ns_t_ninfo
#define T_NS ns_t_ns
#define T_NSAP ns_t_nsap
#define T_NSAP_PTR ns_t_nsap_ptr
#define T_NSEC ns_t_nsec
#define T_NSEC3 ns_t_nsec3
#define T_NSEC3PARAM ns_t_nsec3param
#define T_NULL ns_t_null
#define T_NXT ns_t_nxt
#define T_OPENPGPKEY ns_t_openpgpkey
#define T_PTR ns_t_ptr
#define T_PX ns_t_px
#define T_RKEY ns_t_rkey
#define T_RP ns_t_rp
#define T_RRSIG ns_t_rrsig
#define T_RT ns_t_rt
#define T_SIG ns_t_sig
#define T_SMIMEA ns_t_smimea
#define T_SOA ns_t_soa
#define T_SPF ns_t_spf
#define T_SRV ns_t_srv
#define T_SSHFP ns_t_sshfp
#define T_TA ns_t_ta
#define T_TALINK ns_t_talink
#define T_TKEY ns_t_tkey
#define T_TLSA ns_t_tlsa
#define T_TSIG ns_t_tsig
#define T_TXT ns_t_txt
#define T_UID ns_t_uid
#define T_UINFO ns_t_uinfo
#define T_UNSPEC ns_t_unspec
#define T_URI ns_t_uri
#define T_WKS ns_t_wks
#define T_X25 ns_t_x25
#define UCHAR_MAX 255
Expand Down Expand Up @@ -2090,6 +2126,8 @@
#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 1145
#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS 1146
#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147
#define _CS_POSIX_V7_THREADS_CFLAGS 1150
#define _CS_POSIX_V7_THREADS_LDFLAGS 1151
#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS 5
#define _CS_V6_ENV 1148
#define _CS_V7_ENV 1149
Expand Down Expand Up @@ -2283,6 +2321,7 @@
#define _SC_MEMLOCK_RANGE 18
#define _SC_MEMORY_PROTECTION 19
#define _SC_MESSAGE_PASSING 20
#define _SC_MINSIGSTKSZ 249
#define _SC_MONOTONIC_CLOCK 149
#define _SC_MQ_OPEN_MAX 27
#define _SC_MQ_PRIO_MAX 28
Expand Down Expand Up @@ -2310,6 +2349,7 @@
#define _SC_SHARED_MEMORY_OBJECTS 22
#define _SC_SHELL 157
#define _SC_SIGQUEUE_MAX 34
#define _SC_SIGSTKSZ 250
#define _SC_SPAWN 159
#define _SC_SPIN_LOCKS 154
#define _SC_SPORADIC_SERVER 160
Expand Down
40 changes: 40 additions & 0 deletions expected/wasm32-wasip2/predefined-macros.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2098,18 +2098,35 @@
#define T_AFSDB ns_t_afsdb
#define T_ANY ns_t_any
#define T_ATMA ns_t_atma
#define T_AVC ns_t_avc
#define T_AXFR ns_t_axfr
#define T_CAA ns_t_caa
#define T_CDNSKEY ns_t_cdnskey
#define T_CDS ns_t_cds
#define T_CNAME ns_t_cname
#define T_CSYNC ns_t_csync
#define T_DHCID ns_t_dhcid
#define T_DLV ns_t_dlv
#define T_DNAME ns_t_dname
#define T_DNSKEY ns_t_dnskey
#define T_DS ns_t_ds
#define T_EID ns_t_eid
#define T_EUI48 ns_t_eui48
#define T_EUI64 ns_t_eui64
#define T_FMT 0x2002A
#define T_FMT_AMPM 0x2002B
#define T_GID ns_t_gid
#define T_GPOS ns_t_gpos
#define T_HINFO ns_t_hinfo
#define T_HIP ns_t_hip
#define T_IPSECKEY ns_t_ipseckey
#define T_ISDN ns_t_isdn
#define T_IXFR ns_t_ixfr
#define T_KEY ns_t_key
#define T_L32 ns_t_l32
#define T_L64 ns_t_l64
#define T_LOC ns_t_loc
#define T_LP ns_t_lp
#define T_MAILA ns_t_maila
#define T_MAILB ns_t_mailb
#define T_MB ns_t_mb
Expand All @@ -2120,21 +2137,40 @@
#define T_MR ns_t_mr
#define T_MX ns_t_mx
#define T_NAPTR ns_t_naptr
#define T_NID ns_t_nid
#define T_NIMLOC ns_t_nimloc
#define T_NINFO ns_t_ninfo
#define T_NS ns_t_ns
#define T_NSAP ns_t_nsap
#define T_NSAP_PTR ns_t_nsap_ptr
#define T_NSEC ns_t_nsec
#define T_NSEC3 ns_t_nsec3
#define T_NSEC3PARAM ns_t_nsec3param
#define T_NULL ns_t_null
#define T_NXT ns_t_nxt
#define T_OPENPGPKEY ns_t_openpgpkey
#define T_PTR ns_t_ptr
#define T_PX ns_t_px
#define T_RKEY ns_t_rkey
#define T_RP ns_t_rp
#define T_RRSIG ns_t_rrsig
#define T_RT ns_t_rt
#define T_SIG ns_t_sig
#define T_SMIMEA ns_t_smimea
#define T_SOA ns_t_soa
#define T_SPF ns_t_spf
#define T_SRV ns_t_srv
#define T_SSHFP ns_t_sshfp
#define T_TA ns_t_ta
#define T_TALINK ns_t_talink
#define T_TKEY ns_t_tkey
#define T_TLSA ns_t_tlsa
#define T_TSIG ns_t_tsig
#define T_TXT ns_t_txt
#define T_UID ns_t_uid
#define T_UINFO ns_t_uinfo
#define T_UNSPEC ns_t_unspec
#define T_URI ns_t_uri
#define T_WKS ns_t_wks
#define T_X25 ns_t_x25
#define UCHAR_MAX 255
Expand Down Expand Up @@ -2240,6 +2276,8 @@
#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 1145
#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS 1146
#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147
#define _CS_POSIX_V7_THREADS_CFLAGS 1150
#define _CS_POSIX_V7_THREADS_LDFLAGS 1151
#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS 5
#define _CS_V6_ENV 1148
#define _CS_V7_ENV 1149
Expand Down Expand Up @@ -2434,6 +2472,7 @@
#define _SC_MEMLOCK_RANGE 18
#define _SC_MEMORY_PROTECTION 19
#define _SC_MESSAGE_PASSING 20
#define _SC_MINSIGSTKSZ 249
#define _SC_MONOTONIC_CLOCK 149
#define _SC_MQ_OPEN_MAX 27
#define _SC_MQ_PRIO_MAX 28
Expand Down Expand Up @@ -2461,6 +2500,7 @@
#define _SC_SHARED_MEMORY_OBJECTS 22
#define _SC_SHELL 157
#define _SC_SIGQUEUE_MAX 34
#define _SC_SIGSTKSZ 250
#define _SC_SPAWN 159
#define _SC_SPIN_LOCKS 154
#define _SC_SPORADIC_SERVER 160
Expand Down
7 changes: 6 additions & 1 deletion libc-top-half/musl/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,16 @@ and ABI combinations:

* OpenRISC 1000 (or1k)

* RISC-V 64
* RISC-V
* 32-bit and 64-bit
* Little endian
* Hard, soft, and hard-single/soft-double floating point ABIs
* Standard ELF; no shared-text NOMMU support

* LoongArch
* 64-bit ISA
* Hard, soft, and hard-single/soft-double floating point ABIs



Build and Installation Procedure
Expand Down
2 changes: 1 addition & 1 deletion libc-top-half/musl/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.3
1.2.5
Loading
Loading