summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl
Commit message (Collapse)AuthorAgeFilesLines
* 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-163-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* bitbake.conf/recipes: Introduce add DEV_PKG_DEPENDENCY to change ↵Richard Purdie2022-06-282-2/+2
| | | | | | | | | | | | RDEPENDS:${PN}-dev There is a pattern that several recipes need to break the dependency of ${PN}-dev on ${PN}, most often as ${PN} may be be empty. Add a new variable to parameterise this and allow it to be changed more easily. (From OE-Core rev: a5b381c0f45c590a762647a9956a8f41e2e2315e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-obstack: upgrade 1.1 -> 1.2wangmy2022-06-171-2/+2
| | | | | | | | | | | | | Changelog: ========= Use obstack.c and obstack.h from gcc-10.2.0 libiberty. Add AC_CONFIG_HEADERS to configure.ac and make ./bootstrap.sh create config.h.in. (From OE-Core rev: a34986755a57b6467e78eb91042bb46f588b6856) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-locales: Switch SRC_URI to new locationKhem Raj2022-05-201-6/+15
| | | | | | | | | | | | | | | Original repository has been less maintained and thusly adelie linux community has picked up the package and started to maintain it also applied long standing bug fixes. Now we use new fork by Adélie Linux, which includes more supported locales. (From OE-Core rev: b6c1e37ed20f636f4f3cdfcef204ea4c072dde58) 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: 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-locales: explicitly depend on gettext-nativeRoss Burton2022-04-301-4/+2
| | | | | | | | | | | | | | | | | The gettext class is designed for use by applications with optional NLS support: depending on the value of USE_NLS it will either depend on gettext-minimal-native (just the autoconf macros) or gettext-native, and will pass --enable-nls/--disable-nls as appropriate. However, musl-locales specifically needs to run msgfmt at runtime, so explicitly depend on gettext-native instead. Also remove the redundant EXTRA_OECMAKE assignment. (From OE-Core rev: 77ae1fe772f12677f9d86946d09d10534845723f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-locales: Add packageKhem Raj2022-04-261-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | This package will provide a limited set of localedata for musl based systems. It will fill in into images when IMAGE_LINGUAS variable is set however the choice is limited to the given 13 locales as of now. e.g. IMAGE_LINGUAS ?= "de-de fr-fr en-gb" would work fine Default locale can be set by exporting LANG=<locale> in /etc/profile or some such file e.g. export LANG=de_DE.UTF-8 This will also help in ptest coverage with musl where some test packages expect locales e.g. pango to name one. Do not empty out IMAGE_LINGUAS forcibly for musl anymore (From OE-Core rev: 5643f9722db250ac9eb4f955b02500420cb29556) 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>
* gcompat: Fix build when usrmerge distro feature is enabledKhem Raj2022-04-221-4/+4
| | | | | | | | (From OE-Core rev: b1154d5fe7e75bb46132165b13ed76ce95413b25) 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>
* libucontext: Upgrade to 1.2 releaseKhem Raj2022-03-172-53/+2
| | | | | | | | | | | | | | License-Update: Copyright years changed [1] aarch64 implements simd register save/restore loongarch64 supported added [1] https://github.com/kaniini/libucontext/commit/9943d4f5fc31a23a591e74caf24ce4effd887501 (From OE-Core rev: d51592e4eb2bc951f0c33a6e69be22aa8ea84d6f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcompat: Do not use static-pie on ppcKhem Raj2022-03-152-2/+35
| | | | | | | | | | It fails currently with binutils 2.38 powerpc-yoe-linux-musl-ld: read-only segment has dynamic relocations (From OE-Core rev: 6a8c1e04e2bf37fa4128b1742ef4184380e3321d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcompat: Update to latestKhem Raj2022-03-121-1/+1
| | | | | | | | | | | | | | | Brings in these fixes * 391b270 unistd: add __close * 8af2ff2 random_r: set `x` before calling savestate_r * cca99e8 wchar: add __mbrlen * 59e99e9 random_r: Add reentrant random functions from LSB * 6461276 gnulib: Add __fdelt_warn alias (From OE-Core rev: f2bc34d68b29077d548e280a25b19f38da126d00) 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-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/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie2022-02-202-2/+2
| | | | | | | | | | | | | license identifiers An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. (From OE-Core rev: ceda3238cdbf1beb216ae9ddb242470d5dfc25e0) 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-102-2/+2
| | | | | | | | | | | | | | | | | 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>
* recipes: Update github.com urls to use httpsRichard Purdie2021-11-033-3/+3
| | | | | | | | | | | | | | Github has announced there will be no more git:// fetching from their servers: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git and they're about to start having brownout periods to encourage people to update. This runs the conversion script over OE-Core to update our urls to use https instead of git. (From OE-Core rev: b37b61e9a1e448a34957db9ae39285d21352552e) 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-304-4/+4
| | | | | | | | | | | | | 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-012-34/+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-026-22/+22
| | | | | | | | | | | | 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>
* gcompat: Create symlinks to glibc ldso locationsKhem Raj2021-06-171-2/+12
| | | | | | | | | This ensures the glibc based binaries can find it in right place (From OE-Core rev: 5d82adcbc2326d8abc0039388578d730906b3e58) Signed-off-by: Khem Raj <raj.khem@gmail.com> 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-142-4/+2
| | | | | | | | | | | 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>
* gcompat: Add recipeKhem Raj2021-06-141-0/+42
| | | | | | | | | | | | | This is a compat library which helps running pre-compiled binaries which were compiled for glibc but needs to run on musl systems, this is quite common case where pre-existing binaries are supplied and can not be recompiled immediately (From OE-Core rev: 5efe7c06c8555672b535adae587596f65bff4fc5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libssp-nonshared: Use a different implementation for __stack_chk_failKhem Raj2021-06-123-50/+46
| | | | | | | (From OE-Core rev: 8c4958cd53ce9265c2639dd3a90d38848edc3895) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libucontext: Switch to meson build systemKhem Raj2021-05-312-14/+53
| | | | | | | | | | | | | | | | | | | cross compiling with meson is easier than the plain makefile build method that libucontext has, there were bunch of problems passing compiler and make variables, compounded by the fact that makefile decided on some compiler flags internally and thought that cflags are synthesized completely in makefile and not passed from environment like OE is doing. As a result some features were not being compiled in e.g. function name aliases were missing meson, on the other hand is cleaner and we have to add a patch to support cpu architecture on meson cmdline, everything else pretty much works out of box (From OE-Core rev: 6e186e75d62e1afabd19a339924b66eac1418274) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libucontext: upgrade 0.10 -> 1.1zhengruoqin2021-05-281-2/+2
| | | | | | | (From OE-Core rev: f6093c2fb68279e7a269d0f9d9e5f54594a903ed) Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Fix __NR_fstatat syscall name for riscvKhem Raj2021-05-212-0/+33
| | | | | | | (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>
* libucontext: Recognize ppc64le architectureKhem Raj2021-03-141-1/+1
| | | | | | | (From OE-Core rev: 03dec80604ae363c31a5f2b68eb3efdba7c35f1a) 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-032-246/+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/glibc: Document assembly file directive fixKhem Raj2021-01-161-1/+5
| | | | | | | | | | It has been fixed in binutils so we want to drop it with binutils 2.36 upgrade when it happens (From OE-Core rev: 89ba28933067b38ab1023aaf30951eb6969d50c6) 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-153-64/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-312-0/+301
| | | | | | | | | | | 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>
* libucontext: Recognise riscv32 architectureKhem Raj2020-09-121-0/+1
| | | | | | | (From OE-Core rev: 67ec87e37d66fc287158e500d7f8465a0dd5d8c6) 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-192-2/+2
| | | | | | | | | | | | | | | | | 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>