aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2025-05-29AArch64: Improve codegen in SVE log1pLuna Lamb1-19/+65
Improves memory access, reformat evaluation scheme to pack coefficients. 5% improvement in throughput microbenchmark on Neoverse V1. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
2025-05-28Use Linux 6.15 in build-many-glibcs.pyJoseph Myers1-1/+1
Tested with build-many-glibcs.py (host-libraries, compilers and glibcs builds). Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-28manual: mention PKEY_UNRESTRICTED macro in the manualYury Khrustalev1-4/+4
Also use this macro in one of the examples. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-28linux: use PKEY_UNRESTRICTED macro in tst-pkeyYury Khrustalev1-3/+3
Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-28misc: add PKEY_UNRESTRICTED macroYury Khrustalev1-4/+3
A corresponding macro has been added to Linux UAPI headers in 6.15. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-28generic: Add missing parameter name to __getrandom_early_initFlorian Weimer1-1/+1
This is required after commit 03da41d47dc73674307e6ffc5b75e9043febc698 ("Turn on -Wmissing-parameter-name by default if available"). Reviewed-by: Sam James <sam@gentoo.org>
2025-05-28hurd: Avoid -Wfree-labels warning in _hurd_intr_rpc_mach_msgFlorian Weimer1-3/+6
This is required after commit 4f4c4fcde76aedc1f5362a51d98ebb57a28fbce9 ("Turn on -Wfree-labels by default if available"). Reviewed-by: Sam James <sam@gentoo.org>
2025-05-28Update RISC-V relocationsAndreas Schwab1-9/+8
Update the list of RISC-V relocations from the ELF psABI as of June 2024. It removes binutils-internal only relocations that were never part of actual object files. The GNU_VTINHERIT and GNU_VTENTRY relocations were never used because the corresponding GCC option -fvtable-gc was never supported on RISC-V.
2025-05-27Use -std=gnu17 in build-many-glibcs.py when configuring GMPJoseph Myers1-1/+7
This works around incompatibility of GMP 6.3.0 with GCC 15 (defaulting to C23) following an approach suggested by Florian. Tested with build-many-glibcs.py (host-libraries build only). Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-27malloc: Fix malloc init orderWilco Dijkstra1-3/+3
__ptmalloc_init was called too early in __libc_early_init: it uses __libc_initial which is not set yet. Fix this by moving initialization to the end of __libc_early_init. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-27Move C warning flags from +gccwarn to +gccwarn-cFlorian Weimer1-3/+3
This avoids warnings about these options during the C++ header inclusion tests. Reviewed-by: Sam James <sam@gentoo.org>
2025-05-27doc: Add missing space in documentation of __TIMESIZEJonathan Wakely1-1/+1
2025-05-27doc: Fix typos in documentation of _TIME_BITSJonathan Wakely1-2/+2
2025-05-27Fix comment typo in libc-symbols.hJonathan Wakely1-1/+1
Reviewed-by: Sam James <sam@gentoo.org>
2025-05-27Turn on -Wmissing-parameter-name by default if availableFlorian Weimer3-1/+74
This flags another hazard for backporting changes to earlier branches. Reviewed-by: Sam James <sam@gentoo.org>
2025-05-26manual: Document getopt_long_only with single letter options (bug 32980)Tomas Volf1-1/+30
Signed-off-by: Tomas Volf <~@wolfsden.cz> Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-26Turn on -Wfree-labels by default if availableFlorian Weimer3-1/+74
This flags a hazard for backporting changes to earlier branches. Reviewed-by: Sam James <sam@gentoo.org>
2025-05-23S390: Use cfi_val_offset instead of cfi_escape. 31bit partStefan Liebler1-5/+1
Due to raising the minimum binutils version to version >=2.28, the used cfi_escape for cfi_val_offset can now be ommitted. The commit 0fc76d876261ee8253fef198ffec48c832edd4ff has already adjusted it for the 64bit part of mcount. This patch also adjusts it for the 31bit part of mcount. Checked with "objdump -WF" / "objdump -Wf" that the previous cfi_escape and the new cfi_val_offset are equal.
2025-05-23libmvec: Add inputs for asinpi(f), acospi(f), atanpi(f) and atan2pi(f)Wilco Dijkstra8-0/+16458
Add initial inputs for asinpi(f), acospi(f), atanpi(f) and atan2pi(f) based on existing asin/acos/atan inputs. Benchtests now works on the new libmvec function. Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>
2025-05-22INSTALL: Regenerate with texinfo 7.2Mark Wielaard1-10/+9
This fixes make dist on systems with the latest texinfo installed. GNU texinfo 7.2 changes @xrefs in proper plain text sentences instead of pseudo info references. Tested-By: Collin Funk <collin.funk1@gmail.com> Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
2025-05-22Fix error reporting (false negatives) in SGID testsFlorian Weimer6-132/+36
And simplify the interface of support_capture_subprogram_self_sgid. Use the existing framework for temporary directories (now with mode 0700) and directory/file deletion. Handle all execution errors within support_capture_subprogram_self_sgid. In particular, this includes test failures because the invoked program did not exit with exit status zero. Existing tests that expect exit status 42 are adjusted to use zero instead. In addition, fix callers not to call exit (0) with test failures pending (which may mask them, especially when running with --direct). Fixes commit 35fc356fa3b4f485bd3ba3114c9f774e5df7d3c2 ("elf: Fix subprocess status handling for tst-dlopen-sgid (bug 32987)"). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2025-05-21manual: Use more inclusive language in comments.Carlos O'Donell1-1/+1
Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-21Makerules: Use 'original' instead of 'master' in source.Carlos O'Donell1-1/+1
Use more inclusive language in makefile source. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-21gen-libm-test: Use 'original source' instead of 'master' in code.Carlos O'Donell1-1/+1
Use more inclusive language in generated sources. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-21nss_test1: Use 'parametrized template' instead of 'master' in comment.Carlos O'Donell1-3/+3
Use more inclusive language in code comments. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-21linknamespace: Use 'ALLOWLIST' instead of 'WHITELIST' in code.Carlos O'Donell1-3/+3
Use more inclusive language in code. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-21posix: Use more inclusive language in test data.Carlos O'Donell1-12/+0
Remove Changelog entries that use 'blacklist' or 'master' in the test data. The test data still contains enough accented characters to serve the purposes of the posix/tst-regex.c test. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-21pylintrc: Remove obsolete ignore section and comments.Carlos O'Donell1-4/+0
Remove the obsolete ignore=CVS since we use git now. We make the code more inclusive by removing obsolete comments. Reviewed-by: Florian Weimer <fweimer@redhat.com>
2025-05-21support: Pick group in support_capture_subprogram_self_sgid if UID == 0Florian Weimer1-4/+54
When running as root, it is likely that we can run under any group. Pick a harmless group from /etc/group in this case. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2025-05-21ldbl-128: also disable lgammaf128_r builtin when building lgammal_rAndreas Schwab1-1/+1
2025-05-21elf: Fix subprocess status handling for tst-dlopen-sgid (bug 32987)Florian Weimer1-2/+10
This should really move into support_capture_subprogram_self_sgid. Reviewed-by: Sam James <sam@gentoo.org>
2025-05-20x86_64: Fix typo in ifunc-impl-list.c.Sunil K Pandey1-2/+2
Fix wcsncpy and wcpncpy typo in ifunc-impl-list.c. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
2025-05-20elf: Test case for bug 32976 (CVE-2025-4802)Florian Weimer3-0/+109
Check that LD_LIBRARY_PATH is ignored for AT_SECURE statically linked binaries, using support_capture_subprogram_self_sgid. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2025-05-20support: Use const char * argument in support_capture_subprogram_self_sgidFlorian Weimer2-5/+4
The function does not modify the passed-in string, so make this clear via the prototype. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2025-05-20AArch64: Fix typo in math-vector.hWilco Dijkstra1-1/+1
Fix typo atanpi2->atan2pi in math-vector.h.
2025-05-20Fix typos in ldbl-opt makefileAndreas Schwab1-4/+4
The -fno-builtin options need to disable the long double builtins.
2025-05-20AArch64: Cleanup SVE config and definesWilco Dijkstra12-219/+5
Now we finally support modern GCC and binutils, it's time for a cleanup. Remove HAVE_AARCH64_SVE_ASM define and conditional compilation. Remove SVE configure checks for SVE, ACLE and variant-PCS support. Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>
2025-05-19AArch64: Cleanup PAC and BTIWilco Dijkstra20-273/+51
Now we finally support modern GCC and binutils, it's time for a cleanup. Use PAC and BTI instructions unconditionally and use proper assembler syntax. Remove the PR target/94791 strip_pac workarounds for buggy GCCs. Remove the PAC/BTI configure checks - always emit GNU property notes on assembly files. Change cfi_window_save to the correct cfi_negate_ra_state unwind directive. Reviewed-by: Matthieu Longo <matthieu.longo@arm.com>
2025-05-19AArch64: Implement AdvSIMD and SVE atan2pi/fDylan Fleming15-0/+645
Implement double and single precision variants of the C23 routine atan2pi for both AdvSIMD and SVE. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
2025-05-19AArch64: Implement AdvSIMD and SVE atanpi/fDylan Fleming15-0/+461
Implement double and single precision variants of the C23 routine atanpi for both AdvSIMD and SVE. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
2025-05-19AArch64: Implement AdvSIMD and SVE asinpi/fDylan Fleming15-0/+435
Implement double and single precision variants of the C23 routine asinpi for both AdvSIMD and SVE. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
2025-05-19AArch64: Implement AdvSIMD and SVE acospi/fDylan Fleming15-0/+465
Implement double and single precision variants of the C23 routine acospi for both AdvSIMD and SVE. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
2025-05-19AArch64: Optimize inverse trig functionsDylan Fleming13-411/+599
Improve performance of Inverse trig functions by altering how coefficients are loaded. Performance improvement on Neoverse V1: SVE acos 14% AdvSIMD acos 6% AdvSIMD asin 6% SVE asin 5% AdvSIMD asinf 2% AdvSIMD atanf 22% SVE atanf 20% SVE atan 11% AdvSIMD atan 5% SVE atan2 7% SVE atan2f 4% AdvSIMD atan2f 3% AdvSIMD atan2 2% Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
2025-05-16Document CVE-2025-4802.Carlos O'Donell1-0/+18
This commit adds advisory data for the above CVE(s).
2025-05-16ctype: Fallback initialization of TLS using relocations (bug 19341, bug 32483)Florian Weimer6-3/+136
This ensures that the ctype data pointers in TLS are valid in secondary namespaces even without initialization via __ctype_init. Reviewed-by: Frédéric Bérat <fberat@redhat.com>
2025-05-16Use proper extern declaration for _nl_C_LC_CTYPE_{class,toupper,tolower}Florian Weimer3-9/+6
The existing initializers already contain explicit casts. Keep them due to int/uint32_t mismatch. Reviewed-by: Frédéric Bérat <fberat@redhat.com>
2025-05-16Optimize __libc_tsd_* thread variable accessFlorian Weimer3-5/+10
These variables are not exported, and libc.so TLS is initial-exec anyway. Declare these variables as hidden and use the initial-exec TLS model. Reviewed-by: Frédéric Bérat <fberat@redhat.com>
2025-05-16Remove <libc-tsd.h>Florian Weimer11-97/+28
Use __thread variables directly instead. The macros do not save any typing. It seems unlikely that a future port will lack __thread variable support. Some of the __libc_tsd_* variables are referenced from assembler files, so keep their names. Previously, <libc-tls.h> included <tls.h>, which in turn included <errno.h>, so a few direct includes of <errno.h> are now required. Reviewed-by: Frédéric Bérat <fberat@redhat.com>
2025-05-16manual: add sched_getcpu()DJ Delorie1-0/+16
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
2025-05-16manual: Clarifications for listing directoriesFlorian Weimer1-2/+64
Support for seeking is limited. Using the d_off and d_reclen members of struct dirent is discouraged, especially with readdir. Concurrent modification of directories during iteration may result in duplicate or missing etnries.