summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl/musl_git.bb
Commit message (Collapse)AuthorAgeFilesLines
* musl: add typedefs for Elf64_Relr and Elf32_RelrZang Ruochen2023-12-131-0/+1
| | | | | | | | | | | | | The absence of this typedef causes elfutils to report the following error: /usr/include/gelf.h:86:9: error: unknown type name 'Elf64_Relr' https://git.musl-libc.org/cgit/musl/commit/?id=6be76895f6863100a311d474a42abdbb6466189d (From OE-Core rev: 161bb7923bed67c91f45e8383b5a487b6107e431) Signed-off-by: Zang Ruochen <zangruochen@loongson.cn> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latestKhem Raj2023-09-261-6/+2
| | | | | | | | | | | | | | | | | Brings following bug fixes * 79bdacff glob: fix wrong return code when aborting before any matches * 7291c6c6 statvfs: allocate spare for f_type * 39e43f08 math: fix ld80 powl(x,huge) and powl(LDBL_MAX,small) * 6d101027 math: fix ld80 acoshl(x) for x < 0 Drop MIRRORS and switch to etalabs.net for git fetch URI original repo is not working correcting with git Fetcher (From OE-Core rev: bb14f1dee4547726ab66e20d535d58563029d67f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes/classes/scripts: Drop SRCPV usage in OE-CoreRichard Purdie2023-08-241-1/+1
| | | | | | | | Now that SRCPV isn't needed we can simplify things in a few places... (From OE-Core rev: 843f82a246a535c353e08072f252d1dc78217872) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to tip of trunkKhem Raj2023-08-041-2/+4
| | | | | | | | | | | | | | | | | | | Brings following changes * 83b858f8 fix rejection of dns responses with pointers past 512 byte offset * a4ecaf89 dns stub resolver: increase buffer size to handle chained CNAMEs * 40834f6c printf core: fix gratuitous integer formatting buffer size * 3a23cd06 all printf variants: fix argument type handling for %c and %lc * fa4a8abd fix public clone function to be safe and usable by applications * 0c277ff1 fix broken thread list unlocking after fork * 4653b987 mbrtowc: Fix wrong return value when n > UINT_MAX * b90841e2 configure: replace -Os with equivalent based on -O2 (From OE-Core rev: b6abcd4f01aec24393bce68a9806d94702c0d387) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Guard fallocate64 with _LARGEFILE64_SOURCEKhem Raj2023-07-101-1/+1
| | | | | | | | | | | Gets this fix * 718f363b move fallocate64 declaration under _LARGEFILE64_SOURCE feature test (From OE-Core rev: 5ebc2f8e4f21f5af67fb1d2d61f6c5d75f2c44e2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Correct SRC_URIPeter Kjellerstedt2023-05-251-1/+1
| | | | | | | | | | | | When the protocol used to fetch the Git repository was changed from "git" to "https" in commit 139102a73d (recipes: Default to https git protocol where possible), the URI was not updated to match. (From OE-Core rev: 0434a5ae168f737741e66a7fe1e30a8703b8ce16) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to 1.2.4 releaseKhem Raj2023-05-091-2/+2
| | | | | | | | | | | | | | Brings the following changes * f5f55d65 release 1.2.4 (From OE-Core rev: 9f2fe39d92816343347bd08f55cd4aca98e8a209) (From OE-Core rev: a3de74f00812fa342d4dc69a857994fa10728635) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Default to https git protocol where possibleRichard Purdie2023-05-051-1/+1
| | | | | | | | | | The recommendation from server maintainers is that the https protocol is both faster and more reliable than the dedicated git protocol at this point. Switch to it where possible. (From OE-Core rev: 139102a73d4151f4748b4a861bd4ab28dda7dab7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2023-05-031-1/+1
| | | | | | | | | | | | | | | | | | Brings the following changes * b928c723 fix return value of wmemcmp for extreme wchar_t values * 4724793f fix wide printf numbered argument buffer overflow * c1b42c4a wait4: fix missing rusage on x32 due to wrong success condition * 9b12982d semtimedop: fix timespec kernel ABI mismatch for 32-bit timeouts on x32 * 6d322159 getopt: fix null pointer arithmetic ub * 35e98311 nftw: fix use of uninitialized struct stat * 7c410472 fix inadvertently static local var in dynlink get_lfs64 * 77327ed0 dns: check length field in tcp response message (From OE-Core rev: 07ed616f776dd09cdadd323dfc8572491bab5aa3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest trunkKhem Raj2023-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings these changes * 1d5750b9 fix swprintf handling of nul character in output * 0e523480 in printf, use ferror macro rather than directly inspecting flags bit * 868c9643 remove wide printf dependency on ugly hack in vfprintf * 3a051769 fix (normal, narrow) printf erroneously processing %n after output errors * 0440ed69 fix wide printf continuation after output or encoding errors * d055e6a4 fix wide printf forms ignoring width for %lc format specifier * b6811019 poll: fix misuse of timespec type on 32-bit archs without poll syscall * 8949da7a select: fix 64-bit timeout truncation on pre-time64 kernels * 3281047c dup3: don't set FD_CLOEXEC on failure on kernels without dup3 syscall * c99b7daa fix dup3 ignoring all flags but O_CLOEXEC on archs with SYS_dup2 syscall * fb7fb5e4 fix pipe2 silently ignoring unknown flags on old kernels * b1dfb734 getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW * 595416b1 getservbyport_r: fix out-of-bounds buffer read * 1a708ece getifaddrs: fix UB via taking address of null pointer union dereference * c499c108 accept4: don't fall back to accept if we got unknown flags * 523d9b96 fix potential read past end of buffer in getnameinfo host name lookup * d0b7f976 dns: fix workaround for systems defaulting to ipv6-only sockets * bec42ef3 dns: handle early eof in tcp fallback * 9b132e55 prevent CNAME/PTR parsing from reading data past the response end * 12590c8b fix out-of-bounds reads in __dns_parse * bc695a5a fix incorrect unit for CPU_SETSIZE macro (From OE-Core rev: bb591e83e3d203d60d59a36f1ff0b2ce437dc7a2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tip of trunkKhem Raj2023-02-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings in following changes * 7d756e1c (upstream/master, origin/master) dns: prefer monotonic clock for timeouts * 07616721 fix return value of wcs{,n}cmp for extreme wchar_t values * 35fdfe62 math: fix undefined shift in logf * 7e13e5ae inet_pton: fix uninitialized memory use for IPv4-mapped IPv6 addresses * 7e6da7ac hsearch: fix null pointer arithmetic UB * f79b973d increase sendmsg internal buffer to support SCM_MAX_FD * 0ab97350 mq_notify: block all (application) signals in the worker thread * 711673ee mq_notify: join worker thread before returning in error path * 8c0c9c69 mq_notify: rework to fix use-after-close/double-close bugs * fde6891e mq_notify: use semaphore instead of barrier to sync args consumption * c3cd04fa fix pthread_detach inadvertently acting as cancellation point in race case * 115149c0 powerpc-sf longjmp clobbering of val argument * 5763f003 riscv64: add vfork * 269d1938 fix wrong sigaction syscall ABI on mips*, or1k, microblaze, riscv64 * ea3b40a3 fix integer overflow in WIFSTOPPED macro * f897461d fix debugger tracking of shared libraries on mips with PIE main program * a4b0a665 expose memmem under baseline POSIX feature profile * 9532ae13 use libc-internal malloc for pthread_atfork * 7d358599 prevent invalid reads of nl_arg in printf_core * c5f4b2df elf.h: add ELFCOMPRESS_ZSTD * 159d1f6c semaphores: fix missed wakes from ABA bug in waiter count logic (From OE-Core rev: 7379412a2ce7fe24943c858755f058dc2a15a081) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest on tip of trunkKhem Raj2023-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings following changes * f47a8cdd ldso: fix invalid early references to extern-linkage libc.page_size * 377218cb pthread_atfork: fix return value on malloc failure * 29e43191 fix double-processing of DT_RELR relocations in ldso relocating itself * b50eb8c3 fix strverscmp comparison of digit sequence with non-digits * ad5dcd39 fix async thread cancellation stack alignment * 8f925945 fix return value of gethostby{name[2],addr} with no result but no error * 63402be2 clean up dns_parse_callback * 0a7b4323 dns response handling: don't treat too many addresses as an error * 41603c77 dns response handling: ignore presence of wrong-type RRs * cf76df0e fix missing synchronization of pthread TSD keys with MT-fork * 5ff3eea9 fgets: avoid arithmetic overflow when n==INT_MIN is passed * d8f35e29 fix AS-safety of close when aio is in use and fd map is expanded * 26c76a90 fix use of uninitialized dummy_fut in aio_suspend * aebd6a36 fix potential deadlock between multithreaded fork and aio * d64148a8 fix potential unsynchronized access to killlock state at thread exit * 36b72cd6 fix potential deadlock in dlerror buffer handling at thread exit * 833a4691 configure: disable TBAA optimization because most compilers are buggy * e6e82132 disable MADV_FREE usage in mallocng * 25e6fee2 remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE * 246f1c81 remove LFS64 symbol aliases; replace with dynamic linker remapping * dec8f0a4 dns query core: detect udp truncation at recv time * 8c408937 getaddrinfo dns lookup: use larger answer buffer to handle long CNAMEs * 759bf785 arpa/nameser.h: update RR types list * 51d4669f dns: implement tcp fallback in __res_msend query core * e2e95176 res_send: use a temp buffer if caller's buffer is under 512 bytes * c87d75f2 adapt res_msend DNS query core for working with multiple sockets * 85050ac5 getaddrinfo: add EAI_NODATA error code to distinguish NODATA vs NxDomain (From OE-Core rev: 3b27f6356a3bf0138da0c3dcd87aa8e4a93ae56b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest masterKhem Raj2022-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Following changes are part of this SRCREV uprev * dc9285ad fix error cases in gethostbyaddr_r * f9827fc7 remove impossible error case from gethostbyname2_r * f081d533 fix return value of gethostnbyname[2]_r on result not found * 1e7fb12f dns: treat names rejected by res_mkquery as nonexistent rather than error * 001c1afb res_mkquery: error out on consecutive final dots in name * 3ad3fa96 fix thread leak on timer_create(SIGEV_THREAD) failure * bf14ef19 re-enable vdso clock_gettime on arm (32-bit) with workaround * 6f3ead0a process DT_RELR relocations in ldso-startup/static-pie * 25085c85 fix fwprintf missing output to open_wmemstream FILEs * a636fd63 dns: fail if ipv6 is disabled and resolv.conf has only v6 nameserves * 996b6154 use kernel-provided AT_MINSIGSTKSZ for sysconf(_SC_[MIN]SIGSTKSZ) * 25340a93 add sysconf keys/values for signal stack size * d8fddb96 fix fallback when ipv6 is disabled but resolv.conf has v6 nameserves * d4f987e4 epoll_create: fail with EINVAL if size is non-positive * 2e5fff43 use alt signal stack when present for implementation-internal signals * 379b1821 ldso: make exit condition clearer in fixup_rpath (From OE-Core rev: 7a62aad4c32e227a8f5a2365dfb6217efb1f5b70) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tipKhem Raj2022-08-211-1/+1
| | | | | | | | | | | | | | | brings in these fixes * 37e18b7b freopen: reset stream orientation (byte/wide) and encoding rule * bf992585 ldso: process RELR only for non-FDPIC archs * d32dadd6 ldso: support DT_RELR relative relocation format * 2404d9d6 use syscall_arg_t and __scc macro for arguments to __alt_socketcall (From OE-Core rev: 68a6ad83cde6024fd5bff5adb55c11f8c771edbf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest tip of trunkKhem Raj2022-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Rebase existing patches Brings in following changes * 46d1c780 fix strings.h feature test macro usage due to missing features.h * baaf257f fix ESRCH error handling for clock_getcpuclockid * 4f48da00 aarch64: add vfork * 7d568410 fix mishandling of errno in getaddrinfo AI_ADDRCONFIG logic * d16d7b10 early stage ldso: remove symbolic references via error handling function * 63c67053 in early stage ldso before __dls2b, call mprotect with __syscall * a23a3da2 avoid limited space of random temp file names if clock resolution is low * 41002798 remove random filename obfuscation that leaks ASLR information * 6c858d6f ensure distinct query id for parallel A and AAAA queries in resolver * 8974ef21 mntent: fix potential mishandling of extremely long lines * 751bee0e mntent: fix parsing lines with optional fields * dcb31f6b fix constraint violation in qsort wrapper around qsort_r (From OE-Core rev: e76b76f371d3158b70ae9d3a44b6d2ab6ba8db34) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to tip of trunkKhem Raj2022-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | brings in pre-work for submitting rv32 port * 6e9d2370 use __fstat instead of __fstatat with AT_EMPTY_PATH in __map_file * 05a55868 provide an internal namespace-safe __fstat * fb10dc28 only use fstatat and others legacy stat syscalls if they exist * 2b754a54 drop direct use of stat syscalls in internal __map_file * c9ba0769 provide an internal namespace-safe __fstatat * 7edbcbeb drop direct use of stat syscalls in fchmodat * 9a937495 drop use of stat operation in temporary file name generation * 12a757b3 only fallback to gettimeofday/settimeofday syscalls if they exist * 41149ea8 only use getrlimit/setrlimit syscalls if they exist * 8910efd0 don't remap internal-use syscall macros to nonexistent time32 syscalls * 03f71251 remove ARMSUBARCH relic from configure * 55b727d7 add missing POSIX confstr keys for pthread CFLAGS/LDFLAGS * 8cf87b30 fix incorrect parameter name in internal netlink.h RTA_OK macro (From OE-Core rev: e3c2bc571e173e230cd3942888bdcf6423f14a2e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Fix build when usrmerge distro feature is enabledKhem Raj2022-04-221-3/+3
| | | | | | | | (From OE-Core rev: 02fd8e760cac1d2e0e25a4e3dbea3f2844b9fd01) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Move to 1.2.3 release tagKhem Raj2022-04-121-2/+2
| | | | | | | | | | | | | This actually are just 2 patches on top of what we have thus far * 7a43f6fe release 1.2.3 * 01b14242 accept null pointer as message argument to gettext functions (From OE-Core rev: bb0d9815a8e47b28836ab0eb13ebe236d745b253) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2022-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | brings following fixes * 6d8a5157 fix invalid free of duplocale object when malloc has been replaced * 760f5d7e fix __WORDSIZE on x32 sys/user.h * bdb54540 sys/ptrace.h: add PTRACE_GET_RSEQ_CONFIGURATION from linux v5.13 * aa3bab6c sys/prctl.h: add PR_PAC_{SET,GET}_ENABLED_KEYS from linux v5.13 * a8300f5d elf.h: add NT_ARM_PAC_ENABLED_KEYS from linux v5.13 * dda21f10 netinet/in.h: add INADDR_DUMMY from linux v5.13 * ee05b11b bits/syscall.h: add landlock syscalls from linux v5.13 * 1ee8109e netinet/tcp.h: add tcp_zerocopy_receive fields from linux v5.12 * bc89c311 netinet/tcp.h: add TCP_NLA_* values up to linux v5.12 * 9ffd1454 s390x: add ptrace requests from linux v5.12 * f7d3db5b bits/syscall.h: add mount_setattr from linux v5.12 * e99c4258 signal.h: add new sa_flags from linux v5.11 * 993cccce signal.h: add SYS_USER_DISPATCH si_code value from linux v5.11 * 3dcbd896 signal.h: add si_code values for SIGSYS * 30c8a145 netinet/tcp.h: add tcp zerocopy related changes from linux v5.11 * b54f481f netinet/if_ether.h: add ETH_P_CFM from linux v5.11 * c5ecaca7 sys/socket.h: add new SO_ socket options from linux v5.11 * f35b99b3 sys/prctl.h: add PR_SET_SYSCALL_USER_DISPATCH from linux v5.11 * b21f3ded bits/syscall.h: add epoll_pwait2 from linux v5.11 * 3aba2150 nice: return EPERM instead of EACCES * 74a28a8a protect stack canary from leak via read-as-string by zeroing second byte * 7c0c7a75 math: avoid runtime conversions of floating-point constants (From OE-Core rev: 56c0629caebd7f22a09925333c2dc800901d7794) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2022-02-271-1/+1
| | | | | | | | | | | | | | | | brings in these fixes * f8bdc304 fix spurious failures by fgetws when buffer ends with partial character * 5690668a add missing strerror text for key management * 3b7b4155 fix out-of-bound read processing time zone data with distant-past dates * 75b3412f fix potentially wrong-sign zero in cproj functions at infinity * 52f0deb9 make fseek detect and produce an error for invalid whence arguments * cbacd638 add SEEK_DATA and SEEK_HOLE to unistd.h (From OE-Core rev: 6c76063019f9aab5c249750e526bae9031829efe) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Remove libsegfault and catchsegvKhem Raj2022-02-101-1/+1
| | | | | | | | | | | Glibc has dropped them starting with 2.35 see [1] [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=65ccd641bacea33be23d51da737c2de7543d0f5e (From OE-Core rev: 95c61d834596263ab1dd1fb1f8c8dbcc9104a935) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2022-02-031-1/+1
| | | | | | | | | | | | | | | | Changes in this srcrev bump * c4d4028d fix failure to use add-cfi scripts on asm when building out-of-tree * 775bde6b fix wcwidth of hangul combining (vowel/final) letters * 8d404733 fix mismatched signatures for strtod_l family * 98e688a9 define NULL as nullptr when used in C++11 or later * 8274aaaa fix hwcap access in powerpc-sf setjmp/longjmp * 3733c831 fix struct layout mismatch in sound ioctl time32 fallback conversion (From OE-Core rev: 3ea0b084cc3e394e59399b8cdc479eee0ff1419b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: use ln -rs instead of lnrRoss Burton2021-11-101-1/+1
| | | | | | | | | | | | | | | | | lnr is a script in oe-core that creates relative symlinks, with the same behaviour as `ln --relative --symlink`. It was added back in 2014[1] as not all of the supported host distributions at the time shipped coreutils 8.16, the first release with --relative. However the oldest coreutils release in the supported distributions is now 8.22 in CentOS 7, so lnr can be deprecated and users switched to ln. [1] 6ae3b85eaffd1b0b6914422e8de7c1230723157d (From OE-Core rev: 1ca455a98de4c713f58df0a537d4c982d256cd68) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tip of trunkKhem Raj2021-11-011-1/+1
| | | | | | | | | | | | | | | This brings following fixes * b76f37fd add qsort_r and make qsort a wrapper around it * 7be59733 add SPE FPU support to powerpc-sf * e3e7189c fix undefined behavior in getdelim via null pointer arithmetic and memcpy * b713b8b2 fix excessively slow TLS performance on some mips models * 3eed6a6f fix error checking in pthread_getname_np (From OE-Core rev: 81e754f35847d6dc7b346706cd428fdcbc9d7796) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Add explict branch to git SRC_URIsRichard Purdie2021-10-301-1/+1
| | | | | | | | | | | | | There is uncertainty about the default branch name in git going forward. To try and cover the different possible outcomes, add branch names to all git:// and gitsm:// SRC_URI entries. This update was made with the script added to contrib in this patch which aims to help others convert other layers. (From OE-Core rev: b51c405faf6f8c0365f7533bfaf470d79152a463) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest tip of trunkKhem Raj2021-09-011-2/+1
| | | | | | | | | | | | | | | | | | | | | | | Drop upstream patch This brings in following fixes * 3f701faa (upstream/master, origin/master) fix libc-internal signal blocking on mips archs * 0fbd7d66 fix broken struct shmid_ds on powerpc (32-bit) * 4f3d346b math: fix fmaf not to depend on FE_TOWARDZERO * 937822ab fix TZ parsing logic for identifying POSIX-form strings * 1f0c7cb1 riscv: rename __NR_fstatat __NR_newfstatat * d8cb888d remove return with expression in void function * b7a130e0 remove unnecessary cast for map_library return * bd3b9c4c add pthread_getname_np function * e1a51185 fix popen not to leak pipes from one child to another * e74acd59 remove spurious lock in popen * 9a40e842 define __STDC_UTF_{16,32}__ macros (From OE-Core rev: da8fcd0155f1cf3394d0886c940bee77669009d4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to new override syntaxRichard Purdie2021-08-021-9/+9
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Set UPSTREAM_CHECK_COMMITSKhem Raj2021-06-141-0/+2
| | | | | | | (From OE-Core rev: ee80b59fba4828b88ccf4b8797a4d7816d31a60b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Do not package glibc loaderKhem Raj2021-06-141-4/+0
| | | | | | | | | | | This was a ad-hoc solution which did not really work in all cases, now gcompat is provided to deal with glibc based prebuilts, therefore there is no need to provide this package (From OE-Core rev: e2d54f02bcde7a95235a61b9622c584a77c4e9bc) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Fix __NR_fstatat syscall name for riscvKhem Raj2021-05-211-0/+1
| | | | | | | (From OE-Core rev: 3bd71e31ea535c5ad480c2d97110ff0b4b290555) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2021-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changelog [1] * aad50fcd fix regression in dl_iterate_phdr reporting of modules with no TLS * 0ea78a64 nscd: fall back gracefully on kernels without AF_UNIX support * 95a540e1 mallocng/aligned_alloc: check for malloc failure * 2c00f95c make epoll_[p]wait a cancellation point * 521b4d27 fix dl_iterate_phdr dlpi_tls_data reporting to match spec * 122002f0 remove no-longer-needed special case handling in popen * 8ef9d46f use internal malloc for posix_spawn file actions objects * cfdfd5ea don't fail to map library/executable with zero-length segment maps * e48e99c1 suppress isascii() macro for C++ * b129cd86 guard against compilers failing to handle setjmp specially by default * 3309e2d7 aarch64/bits/mman.h: add PROT_MTE from linux v5.10 * 44331150 aarch64/bits/hwcap.h: add HWCAP2_MTE from linux v5.10 * 42aa19a0 add aarch64/bits/mman.h with PROT_BTI from linux v5.8 * b7554b5e aarch64/bits/hwcap.h: add HWCAP2_BTI from linux v5.8 * 87b8f148 signal.h: add MTE specific SIGSEGV codes from linux v5.10 * 19239cde sys/prctl.h: add MTE related constants from linux v5.10 * 8b29f023 elf.h: add NT_ARM_TAGGED_ADDR_CTRL from linux v5.10 * d7210f0c sys/mman.h: add MAP_HUGE_16KB from linux v5.10 * a7456524 sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10 * 54ca1cc7 sys/membarrier.h: add new constants from linux v5.10 * fd285f9d bits/syscall.h: add process_madvise from linux v5.10 * 49b6df3d fix error return value for cuserid * cc577d0e fix misuse of getpwuid_r in cuserid * a75283d7 cuserid: don't return truncated results * ef137da6 cuserid: support invocation with a null pointer argument [1] https://git.musl-libc.org/cgit/musl/log/\?qt\=range\&q\=e5d2823631bbfebacf48e1a34ed28f28d7cb2570..aad50fcd791e009961621ddfbe3d4c245fd689a3 (From OE-Core rev: 601d8e87a7c796bd9d91d1ffa090d3b1afcf2a2d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Install /lib directoryKhem Raj2021-02-231-1/+1
| | | | | | | | | | | loader is installed into /lib and ${base_libdir} may not be always pointing to /lib, while here we want to create the directory where ldso will reside (From OE-Core rev: 76795b5a4452b531c342df2c8a3bbb264cc8a8d2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2021-02-161-1/+1
| | | | | | | | | | | | | | | | | | | Brings in following changes * e5d28236 riscv64: define ELF_NFPREG * 964104f9 math: fix expm1f overflow threshold * c4c38e63 math: fix acoshf for negative inputs * 074932c8 fix possible fd leak via missing O_CLOEXEC in pthread_setname_np * 9b77aaca oldmalloc: preserve errno across free * 98b9df99 fix build regression in oldmalloc * 2010df0d preserve errno across free * 9afed99c fix inconsistent signature of __libc_start_main * dd5b6384 fail posix_spawn file_actions operations with negative fds (From OE-Core rev: 9e71e44db51c73cae2d493bee2f43c37025befbb) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Drop adding .file directive in asm filesKhem Raj2021-02-031-1/+0
| | | | | | | | | | | it was a workaround for binutils issue which is fixed in 2.36 with https://sourceware.org/bugzilla/show_bug.cgi?id=26822 (From OE-Core rev: 628668acdd897d79154ebc304edef8a95ff54ac5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to 1.2.2 releaseKhem Raj2021-01-271-2/+2
| | | | | | | | | | | | | | | | Detailed logs are here [1] * 85e0e351 release 1.2.2 * 3953aecb fix VIDIOC_DQEVENT (v4l2) ioctl fallback for pre-5.6 kernels * 30f55067 fix v4l2 buffer ioctl fallbacks for pre-5.6 kernels * db981ffb sh: fix incorrect mcontext_t member naming [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1e4204d522670a1d8b8ab85f1cfefa960547e8af..85e0e3519655220688e757b9d5bfd314923548bd (From OE-Core rev: 73c2661a328b109a9fa69fbb4150c15622a5b506) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2020-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refresh patches to apply to this update Brings in following fixes * 1e4204d5 use libc-internal malloc for newlocale/freelocale * 36246b34 drop use of pthread_once in newlocale * 37fcc13c lift locale lock out of internal __get_locale * c53e9b23 fix misleading comment in strstr * b67d56c7 drop use of pthread_once for aio thread stack size init * 90ff0169 fix omission of non-stub pthread_mutexattr_getprotocol * 56f0631d riscv64: fix inconsistent ucontext_t struct tag * 50c7935c fix failure to preserve r6 in s390x asm; per ABI it is call-saved * 738c4e94 s390x: derive float_t from compiler or default to float * 821083ac implement reallocarray * 29ff7599 implement realpath directly instead of using procfs readlink * 5d464f52 fix mallocng regression in malloc_usable_size with null argument * d046ec92 configure: do not use obsolescent form of test -a|o * c5d118eb fix segfault in lutimes when tv argument is NULL * 67f77462 netinet/in.h: add IP_RECVERR_4884 from linux v5.9 * d078f836 sys/fanotify.h: add new FAN_* macros from linux v5.9 * 3ba370fe bits/syscall.h: add __NR_close_range from linux v5.9 * badc5bb2 add missing personality values * 6e989248 arm fabs and sqrt: support single-precision-only fpu variants * c8c3e341 fix typo in INSTALL * e2fa720b work around linux bug in readlink syscall with zero buffer size * c17cda6d parse v3 or future-unknown zoneinfo file versions as v2+ * 585a0a78 explicitly prefer 64-bit/v2 zoneinfo tables * debbddf7 fix regression in pthread_exit * 3ab2a4e0 rewrite wcsnrtombs to fix buffer overflow and other bugs * 233bb697 protect destruction of process-shared mutexes against robust list races * d26e0774 pthread_exit: don't __vm_wait under thread list lock * 167390f0 lift child restrictions after multi-threaded fork * 34952fe5 convert malloc use under libc-internal locks to use internal allocator * 8d37958d give libc access to its own malloc even if public malloc is interposed * c1e5d243 drop use of getdelim/stdio in dynamic linker * cbecda0b dlerror: don't gratuitously hold freebuf_queue lock while freeing * 4ffa7068 fix vector types in aarch64 register file structures (From OE-Core rev: b70b875c2f405f6481b1179419cf0f086fa31f53) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2020-11-111-1/+1
| | | | | | | | | | | fix erroneous pthread_cond_wait mutex waiter count logic due to typo https://git.musl-libc.org/cgit/musl/log/?qt=range&q=27b2fc9d6db956359727a66c262f1e69995660aa..d91a6cf6e369a79587c5665fce9635e5634ca201 (From OE-Core rev: 09ffd51416da9475c3a2aadc7423d791fdcf21ae) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latestKhem Raj2020-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Fixes pthread_condvars add support for SIGEV_THREAD_ID times * 27b2fc9d fix missing-wake regression in pthread_cond_wait * 7c71792e add support for SIGEV_THREAD_ID timers * f70375df fix sem_close unmapping of still-referenced semaphore * 613ccabe refactor setxid return path to use __syscall_ret * ccba2345 ldso: notify the debugger when we're doing a dlopen * 4209a7b1 fix setgroups behavior in multithreaded process * 6ce91ef0 avoid __synccall for setrlimit on kernels with prlimit syscall * 3437e478 fix reintroduction of errno clobbering by atfork handlers * 2d0bbe6c fix pthread_cond_wait paired with with priority-inheritance mutex Details are here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=0b87551bdfb74ac411caa335d8ad0b89a7f139c6..27b2fc9d6db956359727a66c262f1e69995660aa (From OE-Core rev: bb230e7e00beb0ee5d2e7f453f282693f3efadbf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Add .file directive in crt assembly filesKhem Raj2020-10-311-0/+1
| | | | | | | | | | | This helps linker to noot emit absolute paths into .debug_line sections of liked binaries and libraries and therefore make them reproducible Reported-by: Andrei Gherzan <andrei@gherzan.ro> (From OE-Core rev: cc4b464e31fec68b32592cc84344a9704eae8e02) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest masterKhem Raj2020-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in this revision bump are * 0b87551b (upstream/master) lift sigaction abort locking to fix posix_spawn child deadlock * 99d5098a update crypt_blowfish to support $2b$ prefix * 957c2763 remove unused weak definition of __tl_sync in membarrier.c * 55767360 move aio implementation details to a proper internal header * 37337660 remove long-unused struct __timer from pthread_impl.h * 85e16aec drop use of pthread_once in timer_create * 6ae2568b remove unused SIGTIMER handler in timer_create * 47baa030 remove incorrect fflush from assert failure handler * da845d52 fix getgrouplist when nscd reports an empty list * b7bc9665 fix posix_spawn interaction with fork and abort by taking lock * 25ea9f71 fix unintended observability of SIGABRT disposition reset via sigaction * bd153422 implement _Fork and refactor fork using it * e1e98d86 rename fork source file * 50716702 ldso: use pthread_t rather than kernel tid to track ctor visitor * 1efc8eb2 fix stale lock when allocation of ctor queue fails during dlopen * 69a1b390 drop use of pthread_once in mutexattr kernel support tests * b115bee4 fix missing synchronization of fork with abort * 3cd3de61 move __abort_lock to its own file and drop pointless weak_alias trick * 34904d83 fix fork of processes with active async io contexts Details are here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=a5aff1972c9e3981566414b09a28e331ccd2be5d..0b87551bdfb74ac411caa335d8ad0b89a7f139c6 (From OE-Core rev: 3024a517e7cb0b1e038beae0ff462d292d6edd16) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to masterKhem Raj2020-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings following changes, supports linux 5.8 syscalls [1] * a5aff197 avoid set*id/setrlimit misbehavior and hang in vforked/cloned child * 55fb9a17 use new SYS_faccessat2 syscall to implement faccessat with flags * f035c7b1 netinet/if_ether.h: add ETH_P_MRP from linux v5.8 * 6b1741aa elf.h: add .note.gnu.property related definitions * 9b7ed970 bits/syscall.h: add __NR_faccessat2 from linux v5.8 * 616a8bf6 netinet/tcp.h: update to linux v5.7 * a6c302be sys/mman.h: add MREMAP_DONTUNMAP from linux v5.7 * 8adf42f7 sys/fanotify.h: update to linux v5.7 * 94ab68c2 aarch64: add new HWCAP2_ macros from linux v5.6 * 0296baff aarch64: add HWCAP2_ macros from linux v5.3 * 43b640c2 sched.h: add CLONE_NEWTIME from linux v5.6 * 3da18e69 sys/random.h: add GRND_INSECURE from linux v5.6 * 8f4aa78a sys/prctl.h: add PR_{SET,GET}_IO_FLUSHER from linux v5.6 * 1ab341e8 netinet/udp.h: add TCP_ENCAP_ESPINTCP from linux v5.6 * c6321616 netinet/tcp.h: update for linux v5.6 * 8fca0ea4 netinet/in.h: add IPPROTO_ macros from linux v5.6 * d9900903 add pidfd_getfd and openat2 syscall numbers from linux v5.6 * d4f29814 netinet/tcp.h: update tcp_info for linux v5.5 [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=ffac0c229986725c0d0f3c806bafa7e3ca409f3b..a5aff1972c9e3981566414b09a28e331ccd2be5d (From OE-Core rev: e104d235cb14f0d58bfefe48e3888430503ba619) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest masterKhem Raj2020-09-121-1/+1
| | | | | | | | | | | | | Accomodates rv32 port which is out of tree at the moment details are [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=73cc775bee53300c7cf759f37580220b18ac13d3..ffac0c229986725c0d0f3c806bafa7e3ca409f3b (From OE-Core rev: ce688d36ebd758e6c8973dd3a1d7d93ab075f5d3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest release 1.2.1Alejandro Hernandez2020-08-061-2/+2
| | | | | | | | (From OE-Core rev: 227430916a3e50bec5741e00cb7f2dbc52a85eb3) Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com> Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest tipKhem Raj2020-07-191-1/+1
| | | | | | | | | | | | | | | | | License-Update: Added copyright for AArch64 memcpy and memset code [1] Details changelog is here [2] [1] https://git.musl-libc.org/cgit/musl/commit/?id=fdf8b2ad9c5ae6adf3a91c0043eb898badee46d1 [2] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=fca7428c096066482d8c3f52450810288e27515c..0a005f499cf39822166dd4db3d2d31f0639f1b1b (From OE-Core rev: d340f02ad2df0a29b1a1cc0b36f2099a3e64f5c2) Signed-off-by: Khem Raj <raj.khem@gmail.com> s Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tip of masterKhem Raj2020-06-281-1/+1
| | | | | | | | | | | | Detailed changelog [1] Refresh patches [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1b4e84c56df0f8ca30f6bc05962a860f869e71df..fca7428c096066482d8c3f52450810288e27515c (From OE-Core rev: 4ce9fbb9802cb802110a684b59fdf5c9c8e7e77e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tip of masterKhem Raj2020-05-241-1/+1
| | | | | | | | | | | Detailed changes [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=040c1d16b468c50c04fc94edff521f1637708328..1b4e84c56df0f8ca30f6bc05962a860f869e71df (From OE-Core rev: 67294d3e9cb2b3e416b76808dce1701391b88df1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Add support for multilibKhem Raj2020-03-211-3/+7
| | | | | | | | | | | | | | ldso is always stored in /lib regardless of multilib add ld-musl-${MUSL_LDSO_ARCH}.path to aid ldso finding default library loading paths, it helps when using multilib, where system libraries are moved to lib32 or lib64 paths under / or /usr [YOCTO #11971] (From OE-Core rev: bfa1ea82bb2ec9d1ae6da0a442bed519a6464698) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: removes aliases for glibc provided librariesJan Kaisrlik2020-03-151-14/+7
| | | | | | | | | | | | | | | | | | | | Based on the recommendation in musl mailing list[1] All symlinks have been removed from musl recipe. Move stub libraries into -dev package having them treated as normal .a which they are not, is not correct and packages shoves them into static archives, which are not installed on target usually unless asked for this should help in linking with -lm, -lpthread etc. on target [1]: https://www.openwall.com/lists/musl/2020/03/10/11 (From OE-Core rev: 8d068bd3adec64d451cf9cd4ae6b0803a7152463) Signed-off-by: Jan Kaisrlik <ja.kaisrlik@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to final 1.2.0 releaseKhem Raj2020-02-221-2/+2
| | | | | | | | | | Detailed log [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=a662220df547e5c2446518e74440a7d834f9ebe6..040c1d16b468c50c04fc94edff521f1637708328 (From OE-Core rev: 732cac03632fee312e8a43aa091d056d4a3900f0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latest tipKhem Raj2020-02-151-1/+1
| | | | | | | | | | | Detailed changelog is here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=e6093b5a870a38ebfb3e54382acd48c698bde15d..a662220df547e5c2446518e74440a7d834f9ebe6 (From OE-Core rev: e8d52c24ee217d7ba69fe24fa7ef8b533a274c2d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>