aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-02x86: Add CPU-specific diagnostics to ld.so --list-diagnosticsFlorian Weimer
2021-03-02x86: Automate generation of PREFERRED_FEATURE_INDEX_1 bitfieldFlorian Weimer
Use a .def file to define the bitfield layout, so that it is possible to iterate over field members using the preprocessor.
2021-03-02ld.so: Implement the --list-diagnostics optionFlorian Weimer
2021-03-02powerpc: Update libm-test-ulpsMatheus Castanho
Generated with 'make regen-ulps' Tested on powerpc, powerpc64, and powerpc64le
2021-03-02tst: Add test for utimesLukasz Majewski
This patch provides test for utimes. It uses wrapper to read access and modification times to compare them with ones written by utimes. Moreover, access and modification times beyond the Y2038 threshold date (i.e. 32 bit time_t overflow) are also checked. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-03-02tst: Add test for utimeLukasz Majewski
This patch provides test for utime. It uses wrapper to read access and modification times to compare them with ones written by utime. Moreover, access and modification times beyond the Y2038 threshold date (i.e. 32 bit time_t overflow) are also checked. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-03-02tst: Add test for futimensLukasz Majewski
This patch provides test for futimens. It uses wrapper, which reads access and modification time to compare them with ones written by futimens. Moreover, access and modification times beyond the Y2038 threshold date (i.e. 32 bit time_t overflow) are also checked. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-03-02nptl: __libc_cleanup_push/__libc_cleanup_pop require -fexceptionsFlorian Weimer
Do not define these macros if they do nothing in a particular compilation, otherwise they can easily be used accidentally, while not actually achieving anything.
2021-03-02elf: Build __dl_iterate_phdr with unwinding support [BZ #27498]Florian Weimer
2021-03-01nptl: Use <unwind-link.h> for accessing the libgcc_s unwinderFlorian Weimer
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01Implement _Unwind_Resume in libc on top of <unwind-link.h>Florian Weimer
Temporarily move the arm _Unwind_Resume implementation to the file used by libpthread. It will be ported to <unwind-link.h> along with the rest of nptl. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01Move sysdeps/gnu/unwind-resume.c to sysdeps/generic/unwind-resume.cFlorian Weimer
This change allows architecture-specific sysdeps directories to override it. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01__frame_state_for: Use <unwind-link.h> for unwinder accessFlorian Weimer
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01sparc: Implement backtrace on top <unwind-link.h>Florian Weimer
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01m68k: Implement backtrace on top of <unwind-link.h>Florian Weimer
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01i386: Implement backtrace on top of <unwind-link.h>Florian Weimer
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01arm: Implement backtrace on top of <unwind-link.h>Florian Weimer
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01backtrace: Implement on top of <unwind-link.h>Florian Weimer
This reimplements the generic version of backtrace. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01Implement <unwind-link.h> for dynamically loading the libgcc_s unwinderFlorian Weimer
This will be used to consolidate the libgcc_s access for backtrace and pthread_cancel. Unlike the existing backtrace implementations, it provides some hardening based on pointer mangling. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-03-01Correct buffer end pointer in IO_wdefault_doallocate (BZ #26874)Martin Sebor
An experimental build of GCC 11 with an enhanced -Warray-bounds reports a bug in IO_wdefault_doallocate where the function forms an invalid past-the-end pointer to an allocated wchar_t buffer by failingf to consider the scaling by sizeof (wchar_t). The fix path below corrects this problem. It keeps the buffer size the same as opposed to increasing it according to what other code like it does. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2021-03-01aarch64: update ulps.Szabolcs Nagy
For new test cases in commit 5a051454a9b50c27984bbc499ee1297de48e2dc8
2021-02-27Add inputs that generate larger error boundsPaul Zimmermann
(Using values from https://members.loria.fr/PZimmermann/papers/accuracy.pdf)
2021-02-25Reduce the statically linked startup code [BZ #23323]Florian Weimer
It turns out the startup code in csu/elf-init.c has a perfect pair of ROP gadgets (see Marco-Gisbert and Ripoll-Ripoll, "return-to-csu: A New Method to Bypass 64-bit Linux ASLR"). These functions are not needed in dynamically-linked binaries because DT_INIT/DT_INIT_ARRAY are already processed by the dynamic linker. However, the dynamic linker skipped the main program for some reason. For maximum backwards compatibility, this is not changed, and instead, the main map is consulted from __libc_start_main if the init function argument is a NULL pointer. For statically linked binaries, the old approach based on linker symbols is still used because there is nothing else available. A new symbol version __libc_start_main@@GLIBC_2.34 is introduced because new binaries running on an old libc would not run their ELF constructors, leading to difficult-to-debug issues.
2021-02-23posix: Falling back to non wide mode in case of encoding error [BZ #14185]Adhemerval Zanella
Gnulib has added the proposed fix with aed23714d60 (done in 2005), but recently with a glibc merge with 67306f6 (done in 2020 with sync back) it has fallback to old semantic to return -1 on in case of failure. From gnulib developer feedback it was an oversight. Although the full fix for BZ #14185 would require to rewrite fnmatch implementation to use mbrtowc instead of mbsrtowcs on the full input, this mitigate the issue and it has been used by gnulib for a long time. This patch also removes the alloca usage on the string convertion to wide characters before calling the internal function. Checked on x86_64-linux-gnu.
2021-02-23nptl: Move elision implementations into libcFlorian Weimer
The elision interfaces are closely aligned between the targets that implement them, so declare them in the generic <lowlevellock.h> file. Empty .c stubs are provided, so that fewer makefile updates under sysdeps are needed. Also simplify initialization via __libc_early_init. The symbols __lll_clocklock_elision, __lll_lock_elision, __lll_trylock_elision, __lll_unlock_elision, __pthread_force_elision move into libc. For the time being, non-hidden references are used from libpthread to access them, but once that part of libpthread is moved into libc, hidden symbols will be used again. (Hidden references seem desirable to reduce the likelihood of transactions aborts.)
2021-02-23NEWS: Add missing bug closuresSamuel Thibault
2021-02-23added rt to malloc/Depend [BZ #27132]Paul Zimmermann
This avoids a failure when a new glibc version is compiled with an older system librt. Patch proposed by Florian Weimer.
2021-02-22x86: Use x86/nptl/pthreaddef.hH.J. Lu
1. Move sysdeps/i386/nptl/pthreaddef.h to sysdeps/x86/nptl/pthreaddef.h. 2. Remove sysdeps/x86_64/nptl/pthreaddef.h. Reviewed-by: DJ Delorie <dj@redhat.com>
2021-02-22nptl: Move futex-internal into libcFlorian Weimer
This moves __futex_abstimed_wait64 and __futex_abstimed_wait_cancelable64 and exports these functions as GLIBC_PRIVATE. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-02-22nptl: Move lowlevellock into libc [BZ #15648]Florian Weimer
And export __lll_lock_wait and __lll_lock_wait_private as GLIBC_PRIVATE. This should eliminate the need for the previous riscv kludge.
2021-02-22nptl: Move futex-internal.c into main nptl directoryFlorian Weimer
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-02-22nptl: Reformat VersionsFlorian Weimer
One symbol per line, lexicographically ordered. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-02-22nptl: Split libpthread-routines into one routine per lineFlorian Weimer
And sort the lines lexicographically. This will make it easier to review patches which move symbols from libpthread to libc. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-02-22x86: Remove unused variables for raw cache sizes from cacheinfo.hFlorian Weimer
2021-02-22Use Linux 5.11 in build-many-glibcs.py.Joseph Myers
This patch makes build-many-glibcs.py use Linux 5.11. Tested with build-many-glibcs.py (host-libraries, compilers and glibcs builds).
2021-02-22<bits/platform/x86.h>: Correct x86_cpu_TBMH.J. Lu
x86_cpu_TBM should be x86_cpu_index_80000001_ecx + 21.
2021-02-22x86_64/clone.S: Upate commentsH.J. Lu
2021-02-22i386/clone.S: Remove redundant EBX loadH.J. Lu
There is no neeed for call L(here) L(here): popl %ebx addl $_GLOBAL_OFFSET_TABLE_+[.-L(here)], %ebx before movl %eax, %ebx
2021-02-22aarch64: Remove the unused __read_tp symbolSzabolcs Nagy
This was likely a mistake in the original aarch64 port copied over from arm: on aarch64 tpidr_el0 register is always available. The __read_tp symbol is visible with static linking, but it's not part of the public ABI so it should be safe to remove.
2021-02-22build-many-glibcs.py: Use make -O for more consistent log outputFlorian Weimer
The -O option avoids interleaving (e.g.) compiler error messages with other build messages, and makes attribution of messages to commands easier. According to my tests, the impact on build time is within the noise.
2021-02-21configure: Replace obsolete AC_TRY_LINK with AC_LINK_IFELSENaohiro Tamura
This patch replaces obsolete AC_TRY_LINK with AC_LINK_IFELSE. It has been confirmed that GNU 'autoconf' 2.69 doesn't change the 'configure' file and suppressed obsolete warning.
2021-02-21configure: Remove obsolete AC_CHECK_TOOL_PREFIXNaohiro Tamura
This patch removes obsolete AC_CHECK_TOOL_PREFIX. It has been confirmed that AC_CHECK_TOOL_PREFIX is defined as NOP in GNU 'autoconf' 2.69 [1], so we can safely remove it. The 'configure' file has been deleted one blank line by the 'autoconf' 2.69 command . [1] autoconf-2.69/share/autoconf/autoconf/programs.m4 181 # AC_CHECK_TOOL_PREFIX 182 # -------------------- 183 AU_DEFUN([AC_CHECK_TOOL_PREFIX])
2021-02-21configure: Replace obsoleted AC_HELP_STRING with AS_HELP_STRINGNaohiro Tamura
This patch replaces obsoleted AC_HELP_STRING with AS_HELP_STRING. As of Glibc 2.33, INSTALL says "GNU 'autoconf' 2.69 (exactly)" is required. So we can safely replace obsoleted macro without worrying about older autoconf. This change doesn't affect the contents of "configure" file.
2021-02-19Update syscall lists for Linux 5.11.Joseph Myers
Linux 5.11 has one new syscall, epoll_pwait2. Update syscall-names.list and regenerate the arch-syscall.h headers with build-many-glibcs.py update-syscalls. Tested with build-many-glibcs.py.
2021-02-19Correct hppa EFD_NONBLOCK, IN_NONBLOCK, SFD_NONBLOCK and TFD_NONBLOCK defines.John David Anglin
2021-02-19string: Work around GCC PR 98512 in rawmemchrFlorian Weimer
2021-02-16tst: time: Provide Y2038 tests for mktime (tst-mktime4.c)Lukasz Majewski
This change adds new test to assess mktime's functionality. To be more specific - following use cases are checked: - Pass struct tm as epoch time - Pass struct tm as value just before Y2038 threshold (returned value shall be 0x7FFFFFFF) - Pass struct tm as the first value after Y2038 threshold (expected value - 0x80000000) Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-02-16tst: Provide test for difftimeLukasz Majewski
This change adds new test to assess difftime's functionality by adding some arbitrary offsets to current time_t value (read via time). If 64 bit time_t is supported, the same procedure is applied around the threshold of Y2038 time overflow. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-02-16tst: Provide test for ctimeLukasz Majewski
This change adds new test to assess ctime's functionality. To be more specific - following use cases are checked: - Pass time_t value as 0 to check if epoch time is converted - Pass time_t as max value for 32 bit systems - Pass time_t as the first value after Y2038 threshold Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-02-16tst: Provide test for sched_rr_get_intervalLukasz Majewski
This change adds new test to assess sched_rr_get_interval's functionality. To be more specific - following use cases are checked: - If the read interval is correct - If the proper ABI is used - to check if adjacent data is not overwritten Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>