This project is mirrored from git://sourceware.org/git/glibc.git.
Pull mirroring updated .
- 19 Aug, 2022 1 commit
-
-
Samuel Thibault authored
We do not have a hurd data block only when bootstrapping the system, in which case we don't have a notion of suid yet anyway. This is needed, otherwise init_standard_fds would check that standard file descriptors are allocated, which is meaningless during bootstrap.
-
- 18 Aug, 2022 3 commits
-
-
Joseph Myers authored
This patch makes build-many-glibcs.py use binutils 2.39 branch. Tested with build-many-glibcs.py (compilers and glibcs builds). Note: binutils 2.39 shows the same failures for i686-linux-gnu-no-pie, x86_64-linux-gnu-no-pie and x86_64-linux-gnu-x32-no-pie building the glibc testsuite as binutils mainline does.
-
Stefan Liebler authored
If the architecture level set is high enough, no IFUNCs are used at all and the variable i would be unused. Then the build fails with: ../sysdeps/s390/multiarch/ifunc-impl-list.c: In function ‘__libc_ifunc_impl_list’: ../sysdeps/s390/multiarch/ifunc-impl-list.c:76:10: error: unused variable ‘i’ [-Werror=unused-variable] 76 | size_t i = max; | ^ cc1: all warnings being treated as errors
-
Michael Hudson-Doyle authored
math/test-float128-y1 fails on x86_64 and ppc64el with gcc 12 and -O3, because code inside a block guarded by SET_RESTORE_ROUNDL is being moved after the rounding mode has been restored. Use math_force_eval to prevent this (and insert some math_opt_barrier calls to prevent code from being moved before the rounding mode is set). Fixes #29463 Reviewed-By:
Wilco Dijkstra <Wilco.Dijkstra@arm.com>
-
- 17 Aug, 2022 1 commit
-
-
Florian Weimer authored
-
- 16 Aug, 2022 2 commits
-
-
Florian Weimer authored
The #ifdef FSOPEN_CLOEXEC check did not work because the macro was always defined in this header prior to the check, so that the <linux/mount.h> contents did not matter. Fixes commit 774058d7 ("linux: Fix sys/mount.h usage with kernel headers").
-
Florian Weimer authored
The test is valid for all TLS models, but we want to make a reasonable effort to test the GNU2 model specifically. For example, aarch64 defaults to GNU2, but does not have -mtls-dialect=gnu2, and the test was not run there. Suggested-by:
Martin Coufal <mcoufal@redhat.com>
-
- 15 Aug, 2022 4 commits
-
-
Samuel Thibault authored
I.e. from sysdeps/unix/sysv/linux/bits/in.h to netinet/in.h It is following both the BSD and Linux definitions. Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
Florian Weimer authored
Address space for heap segments is reserved in a mmap call with MAP_ANONYMOUS | MAP_PRIVATE and protection flags PROT_NONE. This reservation does not count against the RSS limit of the process or system. Backing memory is allocated using mprotect in alloc_new_heap and grow_heap, and at this point, the allocator expects the kernel to provide memory (subject to memory overcommit). The SIGSEGV that might generate due to MAP_NORESERVE (according to the mmap manual page) does not seem to occur in practice, it's always SIGKILL from the OOM killer. Even if there is a way that SIGSEGV could be generated, it is confusing to applications that this only happens for secondary heaps, not for large mmap-based allocations, and not for the main arena. Reviewed-by:
Siddhesh Poyarekar <siddhesh@sourceware.org>
-
Florian Weimer authored
Reviewed-by:
Carlos O'Donell <carlos@redhat.com>
-
Samuel Thibault authored
-
- 12 Aug, 2022 7 commits
-
-
Adhemerval Zanella authored
Checked on arm-linux-gnueabihf.
-
Adhemerval Zanella authored
Now that kernel exports linux/mount.h and includes it on linux/fs.h, its definitions might clash with glibc exports sys/mount.h. To avoid the need to rearrange the Linux header to be always after glibc one, the glibc sys/mount.h is changed to: 1. Undefine the macros also used as enum constants. This covers prior inclusion of <linux/mount.h> (for instance MS_RDONLY). 2. Include <linux/mount.h> based on the usual __has_include check (needs to use __has_include ("linux/mount.h") to paper over GCC bugs. 3. Define enum fsconfig_command only if FSOPEN_CLOEXEC is not defined. (FSOPEN_CLOEXEC should be a very close proxy.) 4. Define struct mount_attr if MOUNT_ATTR_SIZE_VER0 is not defined. (Added in the same commit on the Linux side.) This patch also adds some tests to check if including linux/fs.h and linux/mount.h after and before sys/mount.h does work. Checked on x86_64-linux-gnu. Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
Adhemerval Zanella authored
Checked on x86_64-linux-gnu. Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
Adhemerval Zanella authored
To avoid possible warnings if the kernel header is included before sys/mount.h. Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
Adhemerval Zanella authored
Instead of tying to a specific kernel version. Checked on x86_64-linux-gnu. Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
Adhemerval Zanella authored
It might be used on tests to check if a snippet build with the provided compiler and flags. Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
caiyinyu authored
-
- 11 Aug, 2022 4 commits
-
-
Wilco Dijkstra authored
Fix a typo in the SVE configure check. This fixes [BZ# 29394].
-
Wilco Dijkstra authored
Improve performance of recursive IO locks by adding a fast path for the single-threaded case. To reduce the number of memory accesses for locking/unlocking, only increment the recursion counter if the lock is already taken. On Neoverse V1, a microbenchmark with many small freads improved by 2.9x. Multithreaded performance improved by 2%. Reviewed-by:
Cristian Rodríguez <crrodriguez@opensuse.org>
-
Stefan Liebler authored
So far this test checks if pidfd_open-syscall is supported, which was introduced with linux 5.3. The process_madvise-syscall was introduced with linux 5.10. Thus you'll get FAILs if you are running a kernel in between. This patch adds a check if the first process_madvise-syscall returns ENOSYS and in this case will fail with UNSUPPORTED. Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
Fangrui Song authored
From the approved generic ABI proposal https://groups.google.com/g/generic-abi/c/satyPkuMisk ("Add new ch_type value: ELFCOMPRESS_ZSTD"). Reviewed-by:
Florian Weimer <fweimer@redhat.com>
-
- 10 Aug, 2022 1 commit
-
-
Florian Weimer authored
It is not declared in a header file, and as the comment indicates, it is not expected to be used.
-
- 09 Aug, 2022 2 commits
-
-
Noah Goldstein authored
`#ifndef STPCPY` is incorrect for checking if `STRCPY` is already defined. It doesn't end up mattering as the whole check is guarded by `#if IS_IN (libc)` but is incorrect none the less.
-
Noah Goldstein authored
GCC normally does this optimization for us in strlen_pass::handle_builtin_strcpy but only for optimized build. To avoid needing to include strcpy.S in the rtld build to support the debug build, just do the optimization by hand.
-
- 08 Aug, 2022 1 commit
-
-
Kito Cheng authored
Add more IEEE half conversion routines: - Convert 32-bit/64-bit integer to IEEE half. - Convert IEEE half to 32-bit/64-bit integer. They are required by RISC-V _Float16 support, tested with RISC-V GCC.
-
- 05 Aug, 2022 2 commits
-
-
Adhemerval Zanella authored
Clang cannot assemble cmp in the AT&T dialect mode.
-
Adhemerval Zanella authored
Clang cannot assemble fldt in the AT&T dialect mode.
-
- 04 Aug, 2022 10 commits
-
-
Fangrui Song authored
Similar to 6720d36b for x86-64. Clang cannot assemble movzx in the AT&T dialect mode. Change movzx to movzbl, which follows the AT&T dialect and is used elsewhere in the file.
-
Florian Weimer authored
Fixes commit 0c1c3a77 ("dlfcn: Move dlopen into libc").
-
Florian Weimer authored
DEFAULT_TOP_PAD is defined as 131072 in sysdeps/generic/malloc-machine.h.
-
Adhemerval Zanella authored
Now that prelink is not support, there is no need to keep supporting rela for non bootstrap.
-
Adhemerval Zanella authored
Now that prelink is not support, there is no need to keep supporting rela for non bootstrap.
-
Adhemerval Zanella authored
The older libc versions are obsolete for over twenty years now.
-
Lucas A. M. Magalhaes authored
The older libc versions are obsolete for over twenty years now. This patch removes the special flags for libc5 and libc4 and assumes that all libraries cached are libc6 compatible and use FLAG_ELF_LIBC6. Checked with a build for all affected architectures. Co-authored-by:
Adhemerval Zanella <adhemerval.zanella@linaro.org> Reviewed-by:
Adhemerval Zanella <adhemerval.zanella@linaro.org>
-
Adhemerval Zanella authored
The environment variable was removed by d2db60d8.
-
Florian Weimer authored
exit only terminates the current thread, not the whole process, so it is the wrong fallback system call in this context. All supported Linux versions implement the exit_group system call anyway.
-
caiyinyu authored
-
- 03 Aug, 2022 2 commits
-
-
Joseph Myers authored
This patch updates the kernel version in the tests tst-mman-consts.py, tst-mount-consts.py and tst-pidfd-consts.py to 5.18. (There are no new constants covered by these tests in 5.19, or in 5.17 or 5.18 in the case of tst-mount-consts.py that previously used version 5.16, that need any other header changes.) Tested with build-many-glibcs.py.
-
Florian Weimer authored
Redirect internal assertion failures to __libc_assert_fail, based on based on __libc_message, which writes directly to STDERR_FILENO and calls abort. Also disable message translation and reword the error message slightly (adjusting stdlib/tst-bz20544 accordingly). As a result of these changes, malloc no longer needs its own redefinition of __assert_fail. __libc_assert_fail needs to be stubbed out during rtld dependency analysis because the rtld rebuilds turn __libc_assert_fail into __assert_fail, which is unconditionally provided by elf/dl-minimal.c. This change is not possible for the public assert macro and its __assert_fail function because POSIX requires that the diagnostic is written to stderr. Reviewed-by:
Adhemerval Zanella <adhemerval.zanella@linaro.org>
-