summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc
Commit message (Collapse)AuthorAgeFilesLines
...
* glibc: fix CVE-2023-4527Yash Shinde2023-09-262-0/+220
| | | | | | | | | | Upstream-Status: Backport[https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=4ea972b7edd7e36610e8cde18bf7a8149d7bac4f] (From OE-Core rev: 66b6133b5e623f39d9c26dae3097035dafd41f60) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Drop remaining PR values from recipesRichard Purdie2023-09-221-1/+0
| | | | | | | | | | | | | | | | We've been removing PR values from recipes at upgrade time for a while. In general anyone maintaining a binary distro would end up having to curate these themselves so the values in OE-Core aren't really that useful anymore. In many ways it makes sense to clear out the remaining ones (which are mostly for 'config' recipes that are unlikely to increase in PV) and leave a clean slate for anyone implementing a binary distro config. References are left in meta-selftest since the tests there do involve them and their removal upon upgrade. (From OE-Core rev: d4c346e8ab8f3cae25d1b01c7331ed9f6d4f96ef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: rename to glibc-y2038-testsAlexander Kanavin2023-09-181-1/+1
| | | | | | | | | | The recipe originates from meta-y2038 where the name was not confusing, but in oe-core it is. (From OE-Core rev: 90bc7a66b08580207839fc6aafe1ac86c12981c5) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-package: Fix conflict error when enable multilib.Lei Maohui2023-09-061-1/+1
| | | | | | | | | | | | | | | | | file /usr/include/bits/math-vector.h from install of lib32-libc6-dev-2.38-r0.armv7ahf_neon conflicts with file from package libc6-dev-2.38-r0.aarch64 Reference to the git log of glibc, upstream modified math-vector.h for aarch64, so this file has many differences from aarch32. For detailed modifications, please refer to these two commit log of glibc: commit 4a9392ffc27ad280f84779eea3ba01f2c134d1d8 commit 78c01a5cbeb6717ffa2d4d66bb90ac5c39bd81a9 (From OE-Core rev: ecfa84f5bb238ef2252d6491a6cde2c5fd202213) Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Add glibc 2.38 stable updatesRichard Purdie2023-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | Pull in the following stable branch updates: 1aed90c9c8f8be9f68b58e96b6e4cd0fc08eb2b1 sysdeps: tst-bz21269: fix -Wreturn-type ad9b8399537670a990572c4b0c4da5411e3b68cf sysdeps: tst-bz21269: handle ENOSYS & skip appropriately c8ecda6251dd4a0dfe074e0a6011211cadeef742 sysdeps: tst-bz21269: fix test parameter 2af141bda3cd407abd4bedf615f9e45fe79518e2 malloc: Remove bin scanning from memalign (bug 30723) 98c293c61f770b6b7a22f89a6ea81b711ecb1952 malloc: Enable merging of remainders in memalign (bug 30723) 7ac405a74c6069b0627dc2d8449a82a621f8ff06 i686: Fix build with --disable-multiarch 6135d50e44233d8c89ca788f78c669941ad09fb9 x86_64: Fix build with --disable-multiarch (BZ 30721) 5ea70cc02626d9b85f1570153873d8648a47bf95 x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745] 6b99458d197ab779ebb6ff632c168e2cbfa4f543 nscd: Do not rebuild getaddrinfo (bug 30709) ced101ed9d3b7cfd12d97ef24940cb00b8658c81 x86: Fix for cache computation on AMD legacy cpus. d97cca1e5df812be0e4de1e38091f02bb1e7ec4e stdlib: Improve tst-realpath compatibility with source fortification (From OE-Core rev: f65f0811e32b4fb57536f3331cc2422c4d71e9bf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cross-localedef-native: fix build on hosts with older glibcMartin Jansa2023-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Older glibc on host might be missing __glibc_has_attribute added in glibc-2.34 with: https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=misc/sys/cdefs.h;h=8e244a77cf6271f09cbd26d18b1e07b1d1641404;hp=57ca262bdfb642bf4a945645532f2319ec1ff437;hb=c8ba52ab3350c334d6e34b1439a4c0c1431351f3;hpb=7dd416491e080456fc7742d884c520526509413e Fixes: In file included from ../git/localedef/include/programs/xmalloc.h:21, from glibc/locale/programs/localedef.h:124, from glibc/locale/programs/localedef.c:36: ../git/localedef/include/sys/cdefs.h:85:51: error: missing binary operator before token "(" 85 | #if __GNUC_PREREQ (4, 3) || __glibc_has_attribute (__cold__) | ^ Only commit included: e0eca29 cdefs.h: define __glibc_has_attribute (From OE-Core rev: 62c464bb4e3ebb6b50864ede7b352651b2c81e3c) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: Add missing libgcc runtime dependencyKhem Raj2023-08-161-1/+1
| | | | | | | | | Some tests e.g. tst-y2039-time64 from glibc 2.38+ needs it. (From OE-Core rev: d41e6b8c9ff1d42fd6211fd2c24f666cac188f79) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Fix SVE detection on aarch64Khem Raj2023-08-162-0/+58
| | | | | | | (From OE-Core rev: 10e1ae119e8087598947dd45c163d5fe6569839d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Drop --enable-tunablesKhem Raj2023-08-161-1/+0
| | | | | | | | | | | Its removed and is implicit default in 2.38+ [1] [1] https://mail.gnu.org/archive/html/info-gnu/2023-07/msg00010.html (From OE-Core rev: e2af021f5b918c619396eecb20fa30a71cf5e776) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Enable fortify sources by defaultsKhem Raj2023-08-161-0/+1
| | | | | | | (From OE-Core rev: f71d9d87e638ebeea5be1a64ad98a9460ee3d1f2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Upgrade to 2.38 releaseKhem Raj2023-08-1631-128/+110
| | | | | | | | | Announcement - https://mail.gnu.org/archive/html/info-gnu/2023-07/msg00010.html (From OE-Core rev: 16aff29593d7991d7ae953d5fb526a897c5a7268) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-locale: use stricter matching for metapackages' runtime dependenciesAlexander Kanavin2023-07-301-4/+4
| | | | | | | | | | | | | | | | | | This resolves two issues: 1. metapackages were depending on themselves (except -binaries which wouldn't match against 'glibc-binary'). 2. for the nativesdk variant, due to a non-empty dependency list at parsing time caused by issue 1, map_depends_variable() from meta/lib/oe/classextend.py was forcibly setting PACKAGES to the initial parse-time value (e.g. missing the dynamically created packages). This meant that three out of four nativesdk- metapackages were entireyly missing the dependencies on the respective dynamic package sets. (From OE-Core rev: a90fd3afe9184aa1870b34a826e3ba0563477d4b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc/check-test-wrapper: don't emit warnings from sshAnuj Mittal2023-07-261-1/+1
| | | | | | | | | | | | | Dont fill up the test log with ssh warning about having added the host to list of known hosts. Also helps fix a test case failure where stderr log was being compared to a known value. (From OE-Core rev: 63b31ff7e54a171c4c02fca2e6b07aec64a410af) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cve_check: convert CVE_CHECK_IGNORE to CVE_STATUSAndrej Valek2023-07-211-8/+9
| | | | | | | | | | | | | - Try to add convert and apply statuses for old CVEs - Drop some obsolete ignores, while they are not relevant for current version (From OE-Core rev: 1634ed4048cf56788cd5c2c1bdc979b70afcdcd7) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Reviewed-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-testsuite: Fix network restrictions causing test failuresRichard Purdie2023-07-201-0/+1
| | | | | | | | | | | | The check target for the glibc testsuite uses networking to access a QEMU in system mode. This was resulting in large numbers of test failures for the x86 targets that use it. Enable network access to resolve this. (From OE-Core rev: 088e022f80e57ca345838bf57df9abad3d8b9313) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Pass linker choice via compiler flagsKhem Raj2023-06-131-1/+3
| | | | | | | | | | | | | | | | | glibc configury tries to detect ld version and assumes BFD or gold linker but when system ld is pointing to lld or mold it might fail the linker check, therefore pass LD variable to explicitly point at ld.bfd we are using BFD linker only to link glibc after all. Second problem in such a case is that some partial objects are linked with CC -r which will fail if we do not inform the compiler to use BFD linker thusly pass it via appending to CC variable (From OE-Core rev: 63248d2cbd7a15aec5b864d0058fe919eb17c46c) 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>
* binutils: Drop crosssdk suffix from virtual provides to improve dependency ↵Richard Purdie2023-05-021-3/+1
| | | | | | | | | | | | handling There is little point in having "crosssdk" suffex added to the virtual provider within binutils since the TARGET_PREFIX or SDK_PREFIX already encapsulates this. Remove it allowing some of the special case overriding to be removed. (From OE-Core rev: 6856fc5c848cc2564bebe03a007ef109f46d0adb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* abi_version/sstate: Handle pkgconfig output changes and bump output versionsRichard Purdie2023-03-261-2/+0
| | | | | | | | | | | | | A recent package.py change has highlighted some corruption issues with -dev pkgconfig package dependencies. Bump the output versions to trigger a rebuild and ensure everything is consistent. Take the opportunity to also drop all HASHEQUIV_HASH_VERSION entries since the main version is changing. (From OE-Core rev: f45ddfbf007de858327eef0ffefd5840ef4c69b8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: add support for loongarch64Jialing Zhang2023-03-231-1/+1
| | | | | | | | | | | glibc gcc vulkan add support for loongarch64 (From OE-Core rev: 526b9a8ebacf07690dfc5beb1788ab7a5bef8423) Signed-off-by: Jialing Zhang <zhangjialing@loongson.cn> Signed-off-by: Qizheng Zhu <zhuqizheng@loongson.cn> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Disable warnings as errorsKhem Raj2023-03-221-0/+1
| | | | | | | | | | | As distro builders this option helps using different compilers to build glibc (From OE-Core rev: 4b082870d425b94cd2a7859d7d113d5c178b92b7) 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>
* glibc-tests: Add missing bash ptest dependencyRichard Purdie2023-03-122-2/+2
| | | | | | | | | | The script has a bashism and needs bash to execute correctly. Mark it as such and add the missing bash dependency so it executes in minimal images. (From OE-Core rev: a1b5afac108d9c94e8fc2ad8cfebfee16f6f243b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Update sstate/equiv versions to clean cacheRichard Purdie2023-03-091-0/+3
| | | | | | | | | | There are cached reproducibility issues on the autobuilder due to the PRServ sstate checksum issues, flush the bad data out the system by bumping the versions. (From OE-Core rev: b2b33e387c523d5936f6948115a73772b2cf9f2b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Add missing binutils dependencyRichard Purdie2023-03-091-1/+3
| | | | | | | | | | | | | | | glibc has it's dependencies handled more manually due to it's place in the toolchain bootstrap. It depends upon the compiler and indirectly through that to binutils. This did mean that if binutils changes and the compiler does not, sstate and hash equivalence could mean that glibc wouldn't rebuild. Add a direct dependency on binutils that if it changes, it forces glibc to rebuild, as it should. (From OE-Core rev: c4a7b3decff636292f5e76e95406a22b6fe4a994) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: remove obsolete CVE ignoresRoss Burton2023-02-281-5/+0
| | | | | | | | | | | | | | | | Remove some obsolete CVE ignores now that releases have been made, CPEs updated, or upgrades done: CVE-2020-10029 is marked as fixed in 2.32. CVE-2021-27645 is marked as fixed in 2.34. CVE-2022-39046 is marked as fixed in 2.37. (From OE-Core rev: a383d0e726011007419dd102cd6484733d80d9f6) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: add ignore for CVE-2023-25139Ross Burton2023-02-281-0/+3
| | | | | | | | | | | This CVE has been fixed in the 2.37 release branch (07b9521fc6) and we're now using a SHA that incorporates that commit, so manually mark it as ignored. (From OE-Core rev: b143e355ef362dac89f8b125904d2e47c74e597e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: stable 2.37 branch updates.Yash Shinde2023-02-191-1/+1
| | | | | | | | | | | | | | | | | Below commits on glibc-2.37 stable branch are updated. d8e1a7590d elf: Smoke-test ldconfig -p against system /etc/ld.so.cache 6fe86ecd78 NEWS: Document CVE-2023-25139. 07b9521fc6 Account for grouping in printf width (bug 30068) fb7b95dc47 Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 9f8513dc64 LoongArch: Add new relocation types. 020b43544a cdefs: Limit definition of fortification macros (From OE-Core rev: 262ee4d12fd82f1722b0ac859d95fdfd7640cb95) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: unify wordsize.h between arm and aarch64Yi Zhao2023-02-101-14/+6
| | | | | | | | | | | | | | | | There is a redundant change in 0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch that causes wordsize.h to be different in arm and aarch64. This causes the build error when enable multilib: Error: Transaction test error: file /usr/include/bits/wordsize.h conflicts between attempted installs of lib32-libc6-dev-2.37-r0.armv7vet2hf_vfp and libc6-dev-2.37-r0.cortexa57 (From OE-Core rev: 303bb3b735da434eb135ee857c2c49c55da61918) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Upgrade to 2.37 releaseKhem Raj2023-02-0535-735/+100
| | | | | | | | | | | | Details are here [1] and summary of changes is here [2] [1] https://sourceware.org/glibc/wiki/Release/2.37 [2] https://sourceware.org/pipermail/libc-announce/2023/000035.html (From OE-Core rev: 1bba40755c8432bc654d1faa209727a6d68d9ba5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Add ppoll fortify symbol for 64 bit time_tOla x Nilsson2022-12-092-0/+529
| | | | | | | | | | | Patch so ppoll is properly redirected to it's 64bit time variant even when source fortification is active. (From OE-Core rev: 8cb7008090e98d990e7249b4ef723f65825915ae) Signed-off-by: Ola x Nilsson <olani@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: correctly pull in the actual tests when installing -ptest packageAlexander Kanavin2022-12-051-1/+1
| | | | | | | | | | | | The tests are packaged into the main glibc-tests package which is fine, but then glibc-tests-ptest package needs to depend on that. Which is what this commit addresses. (From OE-Core rev: d37c2d428b09b9d0cbb875f083c6a1e9883a7fed) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-locale: Do not INHIBIT_DEFAULT_DEPSNathan Rossi2022-11-111-8/+3
| | | | | | | | | | | | | | | | | | | | | The glibc-locale recipe already partially depends on the base depends in order to satisfy the do_package dependency on binutils. However since commit d6ffd683bf6 NM has defaulted to gcc-nm, meaning do_package depends on gcc (for minidebuginfo). Whilst the do_package task could handle having the dependencies explicitly defined (either in glibc-locale or in package.bbclass), setting these would require some amount of conditional dependency configuration (cross/crosssdk/etc.). Since both binutils and gcc are already dependencies of virtual/libc (although compilerlibs is not), having glibc-locale not inhibit the default depends simplifies the handling of this situation for both glibc-locale and package.bbclass. (From OE-Core rev: 8a40d0a6039e87a5b4b26a0e84dd797fe5c75cba) Signed-off-by: Nathan Rossi <nathan.rossi@digi.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-locale: explicitly remove empty dirs in ${libdir}Denys Dmytriyenko2022-09-291-3/+2
| | | | | | | | | | | | | | | | | | | | | | glibc-locale defaults to ENABLE_BINARY_LOCALE_GENERATION ?= "0", but gets changed to "1" in the default-distrovars.inc When it is explicitly set back to "0", it fails with this error: ERROR: glibc-locale-2.36-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package: /usr/lib/locale Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. glibc-locale: 1 installed and not shipped files. [installed-vs-shipped] ERROR: glibc-locale-2.36-r0 do_package: Fatal QA errors were found, failing task. There's a code to remove empty dirs in ${libdir}, but it's keyed off of PACKAGE_NO_GCONV to clean up $[libdir]/gconv, just extend it to also cover other empty dirs, including ${libdir}/locale. (From OE-Core rev: b2565de1d9fb513c61f80a4f02be39ee9c31e7dd) Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: mark a CVE where we have merged the fixRoss Burton2022-09-221-0/+3
| | | | | | | | | | The fix for this CVE has been merged into the 2.36 branch and fixed in oe-core as of 055ce284. (From OE-Core rev: ebb0220bf211ec1318a0a7f6a9ab80cf7775a848) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Upgrade to tip of 2.36 branchKhem Raj2022-09-131-1/+1
| | | | | | | | | | | | | | | | | | | Adresses CVE-2022-39046 Brings in following changeset * c399271c10 nscd: Fix netlink cache invalidation if epoll is used [BZ #29415] * b46412fb17 Add NEWS entry for CVE-2022-39046 * 645d94808a syslog: Remove extra whitespace between timestamp and message (BZ#29544) * b3736d1a3c elf: Restore how vDSO dependency is printed with LD_TRACE_LOADED_OBJECTS (BZ #29539) * 3c791f2031 Apply asm redirections in wchar.h before first use * 924e4f3eaa elf: Call __libc_early_init for reused namespaces (bug 29528) * b0e7888d1f syslog: Fix large messages (BZ#29536) (From OE-Core rev: 055ce284cb4770026c6b0de34d4444568e03d47f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: use += instead of :appendMikko Rapeli2022-09-131-2/+2
| | | | | | | | | | :append can not be modified in bbappends and thus += is better in re-usable, generic layers and recipes. (From OE-Core rev: da88406ba592504a718f516b985adc0d4553080d) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Update to latest on 2.36Khem Raj2022-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Solves the mount.h conflict with linux kernel headers with needed backports from trunk These are the complete list of changes this brings * 3bd3c612e9 Linux: Fix enum fsconfig_command detection in <sys/mount.h> * bb1e8b0ca9 linux: Fix sys/mount.h usage with kernel headers * d48813227b linux: Use compile_c_snippet to check linux/mount.h availability * 4dad97e2a2 linux: Mimic kernel defition for BLOCK_SIZE * 1cc5513114 linux: Use compile_c_snippet to check linux/pidfd.h availability * 0062e7dd1c glibcextract.py: Add compile_c_snippet * 5c62874f42 NEWS: Add entry for bug 28846 * d13a7a6f10 socket: Check lengths before advancing pointer in CMSG_NXTHDR * 8b139cd4f1 alpha: Fix generic brk system call emulation in __brk_call (bug 29490) * e982657073 Linux: Terminate subprocess on late failure in tst-pidfd (bug 29485) (From OE-Core rev: 344378cc811a9a2630b178ca58b946ecd10b53bc) 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>
* glibc: apply proposed patch from upstream instead of revertMartin Jansa2022-08-213-129/+29
| | | | | | | | (From OE-Core rev: 2ea82a52dcbb88aa49d336c9dbd464e4116dba74) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Bump to latest 2.36 branchKhem Raj2022-08-144-63/+1
| | | | | | | | | | Drop upstreamed patches (From OE-Core rev: e6ca788c180816f81f4f4271caf4f78e9ce6bbcc) 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>
* glibc: Update patch statusKhem Raj2022-08-122-2/+2
| | | | | | | | | | These patches were appplied in master (From OE-Core rev: 452ded8e88db51f8b2fd704d40860ea84c433ada) 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>
* glibc: fix new upstream build issue with DEBUG_BUILD buildMartin Jansa2022-08-123-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refresh 0001-Revert-Linux-Implement-a-useful-version-of-_startup_.patch (just different commit SHA in master and 2.35 branch) * add proposed fixes for build failure with DEBUG_BUILD: http://errors.yoctoproject.org/Errors/Details/663898/ 86_64-oe-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -fuse-ld=bfd -nostdlib -nostartfiles -r -o TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os '-Wl,-(' TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/dl-allobjs.os TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/rtld-libc.a -lgcc '-Wl,-)' \ -Wl,-Map,TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os.map x86_64-oe-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -fuse-ld=bfd -nostdlib -nostartfiles -shared -o TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/ld.so.new \ -Wl,-z,relro -Wl,-z,defs -Wl,-z,now \ -Wl,-z,pack-relative-relocs \ TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os -Wl,--version-script=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/ld.map \ -Wl,-soname=ld-linux-x86-64.so.2 TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/12.1.0/ld.bfd: TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os: in function `_dl_load_cache_lookup': /usr/src/debug/glibc/2.36-r0/git/elf/dl-cache.c:513: undefined reference to `strcpy' collect2: error: ld returned 1 exit status introduced in 2.36 version, with: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6b9006bfb0 upstream report with this fix proposed: https://sourceware.org/bugzilla/show_bug.cgi?id=29454 (From OE-Core rev: 57a0e5ebac924015d3059695e731b28067be4568) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 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>
* glibc: Bump to 2.36Khem Raj2022-08-1234-136/+168
| | | | | | | | | (From OE-Core rev: 54f7441135c701b0b1ba337db04aa9a6410b3d3d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: revert one upstream change to work around broken DEBUG_BUILD buildMartin Jansa2022-08-082-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * work around for build failure with DEBUG_BUILD: http://errors.yoctoproject.org/Errors/Details/661468/ TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.35-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/11.3.0/ld.bfd: TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.35-r0/build-x86_64-oe-linux/libc.a(libc-tls.o): in function `__libc_setup_tls': /usr/src/debug/glibc/2.35-r0/git/csu/libc-tls.c:202: undefined reference to `_startup_fatal_not_constant' introduced in: https://git.openembedded.org/openembedded-core/commit/?id=50ca0eea5424c89c9b39cf69d8bd73fd65f06e95 with: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a2a6bce7d7e52c1c34369a7da62c501cc350bc31 Temporary reverting as discussed in: https://lists.openembedded.org/g/openembedded-core/message/168463 (it's also reverted in buildroot now with: https://lore.kernel.org/buildroot/20220720213853.1A27184110@busybox.osuosl.org/t/) instead of revert we can use -fexpensive-optimizations which will optimize-out the symbol, but that works only with -O1 and not -Og used by DEBUG_BUILD upstream report: https://sourceware.org/bugzilla/show_bug.cgi?id=29249 (From OE-Core rev: 642348f9b4656a090b5a272c18a6723c60100e08) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc : stable 2.35 branch updatesSundeep KOKKONDA2022-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Below commits on glibc-2.35 development branch are updated. glibc: 0e5b239f45 malloc: Simplify implementation of __malloc_assert dc2d843045 Update syscall-names.list for Linux 5.18 d56c7e0965 Apply asm redirections in stdio.h before first use [BZ #27087] c4050b2552 x86: Add missing IS_IN (libc) check to strncmp-sse4_2.S fdf699edea x86: Move mem{p}{mov|cpy}_{chk_}erms to its own file de6f7bb873 x86: Move and slightly improve memset_erms 210e9728ff x86: Add definition for __wmemset_chk AVX2 RTM in ifunc impl list c77cde8172 x86: Put wcs{n}len-sse4.1 in the sse4.1 text section 3eb17048c4 x86: Align entry for memrchr to 64-bytes. dd3b6857ee x86: Add BMI1/BMI2 checks for ISA_V3 check ce32ad91eb x86: Cleanup bounds checking in large memcpy case 863987a6ef x86: Add bounds `x86_non_temporal_threshold` 232b7adb14 x86: Add sse42 implementation to strcmp's ifunc 7f7a728b71 x86: Fix misordered logic for setting `rep_movsb_stop_threshold` 6b4a2ab7e0 x86: Align varshift table to 32-bytes e74385736c x86: ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST expect no transactions b4744d4414 x86: Shrink code size of memchr-evex.S 5321a217cf x86: Shrink code size of memchr-avx2.S c536b318f0 x86: Optimize memrchr-avx2.S f8ba0e0452 x86: Optimize memrchr-evex.S 7001d558a0 x86: Optimize memrchr-sse2.S 54486f520a x86: Add COND_VZEROUPPER that can replace vzeroupper if no `ret` 82560fe43e x86: Create header for VEC classes in x86 strings library b1f23b6128 x86_64: Add strstr function with 512-bit EVEX f9f0fbbf7b x86-64: Ignore r_addend for R_X86_64_GLOB_DAT/R_X86_64_JUMP_SLOT 650bf51c78 x86_64: Implement evex512 version of strlen, strnlen, wcslen and wcsnlen e0cb101d1b x86_64: Remove bzero optimization 51e2d3b53b nptl: Fix ___pthread_unregister_cancel_restore asynchronous restore cd4f43be3d linux: Fix mq_timereceive check for 32 bit fallback code (BZ 29304) (From OE-Core rev: 7d70ccb320459faf356b51d38e62c5dc3955393b) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: make glibc-dev depend on kernel headersChen Qi2022-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The linux kernel headers are necessary for glibc-dev, so we need to use RDEPENDS instead of DEV_PKG_DEPENDENCY which specifies RRECOMMENDS. Currently, in case of NO_RECOMMENDATIONS set to "1", linux kernel headers are not pulled in by glibc-dev, causing error like below when compiling. fatal error: linux/errno.h: No such file or directory The problem could be reproduced by setting NO_RECOMMENDATIONS to "1" and then running: bitbake core-image-minimal -c populate_sdk bitbake core-image-minimal -c testsdk (From OE-Core rev: fdb16e1a78c2abcc8ac89678b1b250ca4fa9c0d9) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: stable 2.35 branch updatesSundeep KOKKONDA2022-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Below commits on glibc-2.35 development branch are updated. b6aade18a7 nss: handle stat failure in check_reload_and_get (BZ #28752) ccac2d6d95 nss: add assert to DB_LOOKUP_FCT (BZ #28752) 9d8ae95604 nios2: Remove _dl_skip_args usage (BZ# 29187) 8468be8433 hppa: Remove _dl_skip_args usage (BZ# 29165) 99978cd42c NEWS: Add a bug fix entry for BZ #29225 97dd8b3f70 nptl: Fix __libc_cleanup_pop_restore asynchronous restore (BZ#29214) 0a1572b8bb powerpc: Fix VSX register number on __strncpy_power9 [BZ #29197] fe9ca732ac socket: Fix mistyped define statement in socket/sys/socket.h (BZ #29225) d7d1eebd4d iconv: Use 64 bit stat for gconv_parseconfdir (BZ# 29213) c5a75ecec8 catgets: Use 64 bit stat for __open_catalog (BZ# 29211) e429695805 inet: Use 64 bit stat for ruserpass (BZ# 29210) 6ea3c0aba4 socket: Use 64 bit stat for isfdtype (BZ# 29209) 9bcf5b12f8 posix: Use 64 bit stat for fpathconf (_PC_ASYNC_IO) (BZ# 29208) 45e5d0f533 posix: Use 64 bit stat for posix_fallocate fallback (BZ# 29207) 37c94dc999 misc: Use 64 bit stat for getusershell (BZ# 29204) cb49c14183 misc: Use 64 bit stat for daemon (BZ# 29203) 6abb4002df Fix deadlock when pthread_atfork handler calls pthread_atfork or dlclose ac87df8d75 x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #29127] 478cd506ea string.h: fix __fortified_attr_access macro call [BZ #29162] 2b128a7d30 linux: Add a getauxval test [BZ #23293] f5f7144dfc rtld: Use generic argv adjustment in ld.so [BZ #23293] 04892c543e S390: Enable static PIE 72d9dcfd16 csu: Implement and use _dl_early_allocate during static startup b5ddf33c6e Linux: Introduce __brk_call for invoking the brk system call 2d05ba7f8e Linux: Implement a useful version of _startup_fatal 55ee3afa0d ia64: Always define IA64_USE_NEW_STUB as a flag macro d66cca3fbb Linux: Define MMAP_CALL_INTERNAL a7b122a7b4 i386: Honor I386_USE_SYSENTER for 6-argument Linux system calls d1772c9376 i386: Remove OPTIMIZE_FOR_GCC_5 from Linux libc-do-syscall.S 58bb3aeaae elf: Remove __libc_init_secure 0a5c6c9d99 Linux: Consolidate auxiliary vector parsing (redo) 76304dfdaf Linux: Include <dl-auxv.h> in dl-sysdep.c only for SHARED 788eb21ff0 Revert "Linux: Consolidate auxiliary vector parsing" 150039ff07 Linux: Consolidate auxiliary vector parsing 3948c6ca89 Linux: Assume that NEED_DL_SYSINFO_DSO is always defined 29f833f5ab Linux: Remove DL_FIND_ARG_COMPONENTS 1695c5e0f6 Linux: Remove HAVE_AUX_SECURE, HAVE_AUX_XID, HAVE_AUX_PAGESIZE 756d583c9e elf: Merge dl-sysdep.c into the Linux version 2c4fc8e5ca x86: Optimize {str|wcs}rchr-evex fdbc8439ac x86: Optimize {str|wcs}rchr-avx2 b05c0c8b28 x86: Optimize {str|wcs}rchr-sse2 bc35e22be4 x86-64: Fix SSE2 memcmp and SSSE3 memmove for x32 4d1841deb7 x86: Fix missing __wmemcmp def for disable-multiarch build cee9939f67 x86: Cleanup page cross code in memcmp-avx2-movbe.S 0909286ffa x86: Remove memcmp-sse4.S 5a8df6485c x86: Optimize memcmp SSE2 in memcmp.S af0865571a x86: Small improvements for wcslen 3b710e32d8 x86: Remove AVX str{n}casecmp fc5d42bf82 x86: Add EVEX optimized str{n}casecmp 33fcf8344f x86: Add AVX2 optimized str{n}casecmp 3496d64d69 x86: Optimize str{n}casecmp TOLOWER logic in strcmp-sse42.S 283982b362 x86: Optimize str{n}casecmp TOLOWER logic in strcmp.S 420cd6f155 x86: Remove strspn-sse2.S and use the generic implementation 4b61d76521 x86: Remove strpbrk-sse2.S and use the generic implementation 2fef1961a7 x86: Remove strcspn-sse2.S and use the generic implementation 1ed2813eb1 x86: Optimize strspn in strspn-c.c 3214c878f2 x86: Optimize strcspn and strpbrk in strcspn-c.c ff9772ac19 x86: Code cleanup in strchr-evex and comment justifying branch 424bbd4d25 x86: Code cleanup in strchr-avx2 and comment justifying branch 0a10b8b181 x86_64: Remove bcopy optimizations f0a53588da x86-64: Define __memcmpeq in ld.so a133623048 x86-64: Remove bzero weak alias in SS2 memset 18baf86f51 x86_64/multiarch: Sort sysdep_routines and put one entry per line d422197a69 x86: Improve L to support L(XXX_SYMBOL (YYY, ZZZ)) 58947e1fa5 fortify: Ensure that __glibc_fortify condition is a constant [BZ #29141] 28ea43f8d6 dlfcn: Implement the RTLD_DI_PHDR request type for dlinfo 78f82ab4ef manual: Document the dlinfo function bbb017a2bb NEWS: Add a bug fix entry for BZ #29109 5c0d94d780 linux: Fix posix_spawn return code if clone fails (BZ#29109) 059e36d9ed x86: Fix fallback for wcsncmp_avx2 in strcmp-avx2.S [BZ #28896] 676f7bcf11 x86: Fix bug in strncmp-evex and strncmp-avx2 [BZ #28895] c394d7e11a x86: Set .text section in memset-vec-unaligned-erms de0cd691b2 x86-64: Optimize bzero 0bf9c8b5fe x86: Remove SSSE3 instruction for broadcast in memset.S (SSE2 Only) 58596411ad x86: Improve vec generation in memset-vec-unaligned-erms.S 36766c02af x86-64: Fix strcmp-evex.S 250e277797 x86-64: Fix strcmp-avx2.S 34ef810945 x86: Optimize strcmp-evex.S b68e782f8e x86: Optimize strcmp-avx2.S ec5b79aac7 manual: Clarify that abbreviations of long options are allowed 0bcba53020 Add HWCAP2_AFP, HWCAP2_RPRES from Linux 5.17 to AArch64 bits/hwcap.h 95759abbf3 Add SOL_MPTCP, SOL_MCTP from Linux 5.16 to bits/socket.h eed29011f9 Update kernel version to 5.17 in tst-mman-consts.py e72c363a15 Update kernel version to 5.16 in tst-mman-consts.py edc06fdd62 Update syscall lists for Linux 5.17 dde291ab53 posix/glob.c: update from gnulib 7d96aa2d7d linux: Fix fchmodat with AT_SYMLINK_NOFOLLOW for 64 bit time_t (BZ#29097) 14b1e32a4d i386: Regenerate ulps ef87599348 linux: Fix missing internal 64 bit time_t stat usage 10fe3cd309 elf: Fix DFS sorting algorithm for LD_TRACE_LOADED_OBJECTS with missing libraries (BZ #28868) cb4d670d8f scripts/glibcelf.py: Mark as UNSUPPORTED on Python 3.5 and earlier 106b7e0e45 dlfcn: Do not use rtld_active () to determine ld.so state (bug 29078) e5cf8ccca6 INSTALL: Rephrase -with-default-link documentation c8ee1c85c0 misc: Fix rare fortify crash on wchar funcs. [BZ 29030] (From OE-Core rev: 50ca0eea5424c89c9b39cf69d8bd73fd65f06e95) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: Avoid reproducibility issuesRichard Purdie2022-07-042-0/+26
| | | | | | | | | | | | Currently, there are hardcoded paths in the binaries installed by this recipe, at least one some architectures. Change the compile definitions to point to more appropriate paths. Ideally we'd rework this patch into a form acceptable to upstream but I'm not entirely sure what that would look like right now. (From OE-Core rev: ede7ab3bbf87cc7d7e713d435ea8a88035c2e46e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: not clear BBCLASSEXTENDKai Kang2022-07-011-2/+3
| | | | | | | | | | | | | It clears BBCLASSEXTEND in glibc-tests recipe to remove 'nativesdk' which is set in glibc recipe. The side effect is that it removes "${MULTILIBS}" at same time if multilib enabled. Then there will no multilib version glibc-tests. So only remove 'nativesdk' from BBCLASSEXTEND rather than clear it. (From OE-Core rev: d15975441471c9367b6d8cfa094f093e80f910d4) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake.conf/recipes: Introduce add DEV_PKG_DEPENDENCY to change ↵Richard Purdie2022-06-281-1/+1
| | | | | | | | | | | | 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>
* glibc: Drop make-native dependencyRichard Purdie2022-06-061-1/+1
| | | | | | | | Now that our make version is a minmum of 4.0 we can drop this dependency. (From OE-Core rev: 7a0c52fd44332abb24e0dea608229ab7c472d94e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>