Commit Graph

1810 Commits

Author SHA1 Message Date
Sergey Kolosov bcd58c23a3 CI Tests: removes redundant check for libstdc++.i686 in bz1882466-RHEL8-2-LD-PRELOAD-of-some-lib-that-has testcase 2022-07-12 21:19:22 +02:00
Sergey Kolosov 8859e9a9be CI Tests: adds check for i686 packages in bz1882466-RHEL8-2-LD-PRELOAD-of-some-lib-that-has testcase 2022-07-12 20:57:52 +02:00
Stephen Gallagher 1bfc6912f1 Modify glibc autorequires to exclude %dist
We'll use baserelease here for two reasons:
- It is known to rpmdev-bumpspec, so it will be properly handled for mass-
  rebuilds
- It allows using the Release number without the %%dist tag in the dependency
  generator to make the generated requires interchangeable between Rawhide
  and ELN (.elnYY < .fcXX).

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2022-07-08 13:48:36 +02:00
Luigi Pellecchia 3c29e122df Added tags to main.fmf files as described in tcms 2022-07-08 10:41:28 +00:00
Florian Weimer 70cb41fd34 ppc64le: Increase Clang compatibility of float128 redirects (#2100546) 2022-07-05 12:17:25 +02:00
Florian Weimer 5d92a61711 Auto-sync with upstream branch master
Upstream commit: 7519dee356a0ab21c8990e59ed05dd48a4e573a0

- malloc: Simplify checked_request2size interface
- stdlib: Simplify buffer management in canonicalize
- localedef: Support building for older C standards
- de_DE: Convert to UTF-8
- locale: localdef input files are now encoded in UTF-8
- locale: Introduce translate_unicode_codepoint into linereader.c
- locale: Fix signed char bug in lr_getc
- locale: Turn ADDC and ADDS into functions in linereader.c
- libc-symbols.h: remove unused macros
2022-07-05 11:07:58 +02:00
Florian Weimer 5c27a7014b Remove egrep uses that have crept back in
egrep will start to warn in the next coreutils release.
2022-07-05 11:03:37 +02:00
Florian Weimer 9d11138b6b Inherit -fno-omit-frame-pointer, -mno-omit-leaf-frame-pointer flags
This is in support of a potential performance experiment.
2022-07-05 11:03:37 +02:00
Carlos O'Donell f83c4f6ffc Auto-sync with upstream branch master
Upstream commit: 8ee2c043cfb35c48b45c7c5aed4022a8a7352bdc

- Fix hurd namespace issues for internal signal functions
- argp: Remove old includes in !_LIBC case
- Use GCC 12 branch in build-many-glibcs.py
- Refactor internal-signals.h
- riscv: Use memcpy to handle unaligned access when fixing R_RISCV_RELATIVE
- AArch64: Add asymmetric faulting mode for tag violations in mem.tagging tunable
- linux: Fix mq_timereceive check for 32 bit fallback code (BZ 29304)
- x86: Add missing IS_IN (libc) check to strncmp-sse4_2.S
- x86: Add missing IS_IN (libc) check to strcspn-sse4.c
- x86: Add missing IS_IN (libc) check to memmove-ssse3.S
- x86-64: Properly indent X86_IFUNC_IMPL_ADD_VN arguments
- x86-64: Small improvements to dl-trampoline.S
- x86: Move mem{p}{mov|cpy}_{chk_}erms to its own file
- x86: Move and slightly improve memset_erms
- x86: Add definition for __wmemset_chk AVX2 RTM in ifunc impl list
- linux: Remove unnecessary nice.c and signal.c
- nptl: Remove unused members from struct pthread
- Linux: Forward declaration of struct iovec for process_madvise
- x86: Add more feature definitions to isa-level.h
2022-07-04 15:08:51 -04:00
DJ Delorie 0ce8105155 Rebuild for fixed CI test for bz699724
Bumped NVR to rerun CI/CD against fixed regression test.
2022-06-29 16:59:29 -04:00
Sergey Kolosov 856fa5a570 CI Tests: Fix python syntax in bz699724 testcase 2022-06-29 15:47:28 +02:00
DJ Delorie d760d0071f Auto-sync with upstream branch master
Upstream commit: a3563f3f369878467dd74aeb360448119a7a4b41

- elf: Fix -DNDEBUG warning in _dl_start_args_adjust
- elf: Fix compile error with -Werror and -DNDEBUG
- x86-64: Only define used SSE/AVX/AVX512 run-time resolvers
- x86: Move CPU_FEATURE{S}_{USABLE|ARCH}_P to isa-level.h
- x86: Fix backwards Prefer_No_VZEROUPPER check in ifunc-evex.h
- x86: Rename strstr_sse2 to strstr_generic as it uses string/strstr.c
- x86: Remove unused file wmemcmp-sse4
- x86: Put wcs{n}len-sse4.1 in the sse4.1 text section
- x86: Align entry for memrchr to 64-bytes.
- Makerules: Remove no-op -Wl,-d when linking libc_pic.os
- m68k: optimize RTLD_START
- misc: Optimize internal usage of __libc_single_threaded
- linux: Add move_mount
- linux: Add fsmount
- linux: Add fsopen
- resolv/tst-resolv-noaaaa: Support building for older C standards
- resolv: Implement no-aaaa stub resolver option
- support: Change non-address output format of support_format_dns_packet
- riscv: Use elf_machine_rela_relative to handle R_RISCV_RELATIVE
- x86: Remove faulty sanity tests for RTLD build with no multiarch
- stdlib: Fixup mbstowcs NULL __dst handling. [BZ #29279]
- x86: Replace all sse instructions with vex equivilent in avx+ files
- x86: Add support for compiling {raw|w}memchr with high ISA level
- x86: Add defines / utilities for making ISA specific x86 builds
- stdlib: Remove attr_write from mbstows if dst is NULL [BZ: 29265]
- stdlib: Remove trailing whitespace from Makefile
- debug: make __read_chk a cancellation point (bug 29274)
- s390: use LC_ALL=C for readelf call
- s390: use $READELF
2022-06-28 17:30:04 -04:00
Arjun Shankar 4dd3af9227 Auto-sync with upstream branch master
Upstream commit: e5446dfea11e969212939197b606424a718d9b65

- i386: Fix include paths for strspn, strcspn, and strpbrk
- elf: Silence GCC 11/12 false positive warning
- x86: Rename generic functions with unique postfix for clarity
- x86: Add BMI1/BMI2 checks for ISA_V3 check
- x86-64: Handle fewer relocation types for RTLD_BOOTSTRAP
- aarch64: Handle fewer relocations for RTLD_BOOTSTRAP
- riscv: Change the relocations handled for RTLD_BOOTSTRAP
- x86: Cleanup bounds checking in large memcpy case
- x86: Add bounds `x86_non_temporal_threshold`
- Remove remnant reference to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA
- elf: Remove ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA
- x86: Add sse42 implementation to strcmp's ifunc
- x86: Fix misordered logic for setting `rep_movsb_stop_threshold`
- elf: Refine direct extern access diagnostics to protected symbol
- Avoid -Wstringop-overflow= warning in iconv module.
- Add bounds check to __libc_ifunc_impl_list
- libio: Avoid RMW of flags2 outside lock (BZ #27842)
- x86: Optimize svml_s_tanhf4_core_sse4.S
- x86: Optimize svml_s_tanhf8_core_avx2.S
- x86: Add data file that can be shared by tanhf-avx2 and tanhf-sse4
- x86: Optimize svml_s_tanhf16_core_avx512.S
- x86: Improve svml_s_atanhf4_core_sse4.S
- x86: Improve svml_s_atanhf8_core_avx2.S
- x86: Improve svml_s_atanhf16_core_avx512.S
- x86: Align varshift table to 32-bytes
- x86: Add copyright to strpbrk-c.c
2022-06-20 17:20:35 +02:00
Luigi Pellecchia f07781018c CI tests: Fix testcase requirements 2022-06-13 15:43:02 +02:00
Florian Weimer c048a40645 Auto-sync with upstream branch master
Upstream commit: ace9e3edbca62d978b1e8f392d8a5d78500272d9

- nss: handle stat failure in check_reload_and_get (BZ #28752)
- nss: add assert to DB_LOOKUP_FCT (BZ #28752)
- x86: Fix page cross case in rawmemchr-avx2 [BZ #29234]
- nptl_db: disable DT_RELR on libthread_db.so
- elf: add missing newlines in lateglobal test
- nptl: Fix __libc_cleanup_pop_restore asynchronous restore (BZ#29214)
- x86: ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST expect no transactions
- x86: Shrink code size of memchr-evex.S
- x86: Shrink code size of memchr-avx2.S
- x86: Optimize memrchr-avx2.S
- x86: Optimize memrchr-evex.S
- x86: Optimize memrchr-sse2.S
- Benchtests: Improve memrchr benchmarks
- x86: Add COND_VZEROUPPER that can replace vzeroupper if no `ret`
- x86: Create header for VEC classes in x86 strings library
- powerpc: Fix VSX register number on __strncpy_power9 [BZ #29197]
- AArch64: Sort makefile entries
- AArch64: Add SVE memcpy
- x86_64: Add strstr function with 512-bit EVEX
- scripts/glibcelf.py: Add PT_AARCH64_MEMTAG_MTE constant
2022-06-09 09:46:58 +02:00
Carlos O'Donell 6dd1d1f29e Auto-sync with upstream branch master
Upstream commit: 999835533bc60fbd0b0b65d2412a6742e5a54b9d

- socket: Fix mistyped define statement in socket/sys/socket.h (BZ #29225)
- Declare timegm for ISO C2X
- Add PT_AARCH64_MEMTAG_MTE from Linux 5.18 to elf.h
- grep: egrep -> grep -E, fgrep -> grep -F
- string.h: Fix boolean spelling in comments
- elf: Add #include <errno.h> for use of E* constants.
- elf: Add #include <sys/param.h> for MAX usage.
- linux: Add process_mrelease
- linux: Add process_madvise
- linux: Set tst-pidfd-consts unsupported for kernels headers older than 5.10
- testrun.sh: Support passing strace and valgrind arguments
- Linux: Adjust struct rseq definition to current kernel version
- iconv: Use 64 bit stat for gconv_parseconfdir (BZ# 29213)
- catgets: Use 64 bit stat for __open_catalog (BZ# 29211)
- inet: Use 64 bit stat for ruserpass (BZ# 29210)
- socket: Use 64 bit stat for isfdtype (BZ# 29209)
- posix: Use 64 bit stat for fpathconf (_PC_ASYNC_IO) (BZ# 29208)
- posix: Use 64 bit stat for posix_fallocate fallback (BZ# 29207)
- misc: Use 64 bit stat for getusershell (BZ# 29203)
- misc: Use 64 bit stat for daemon (BZ# 29203)
- linux: use statx for fstat if neither newfstatat nor fstatat64 is present
- Add MADV_DONTNEED_LOCKED from Linux 5.18 to bits/mman-linux.h
- Add HWCAP2_MTE3 from Linux 5.18 to AArch64 bits/hwcap.h
- i686: Use generic sincosf implementation for SSE2 version
- benchtests: Add workload name for sincosf
- i686: Use generic sinf implementation for SSE2 version
- i686: Use generic cosf implementation for SSE2 version
- benchtests: Add workload name for cosf
- x86_64: Optimize sincos where sin/cos is optimized (bug 29193)
- manual: fix reference to source file
- Add SOL_SMC from Linux 5.18 to bits/socket.h
- elf: Remove _dl_skip_args
- x86_64: Remove _dl_skip_args usage
- sparc: Remove _dl_skip_args usage
- sh: Remove _dl_skip_args usage
- s390: Remove _dl_skip_args usage
- riscv: Remove _dl_skip_args usage
- nios2: Remove _dl_skip_args usage (BZ# 29187)
- mips: Remove _dl_skip_args usage
- microblaze: Remove _dl_skip_args usage
- m68k: Remove _dl_skip_args usage
- ia64: Remove _dl_skip_args usage
- i686: Remove _dl_skip_args usage
- hppa: Remove _dl_skip_args usage (BZ# 29165)
- csky: Remove _dl_skip_args usage
- arc: Remove _dl_skip_args usage
- arm: Remove _dl_skip_args usage
- alpha: Remove _dl_skip_args usage
- benchtests: Improve benchtests for strstr, memmem, and memchr
- dlsym: Make RTLD_NEXT prefer default version definition [BZ #14932]
- x86-64: Ignore r_addend for R_X86_64_GLOB_DAT/R_X86_64_JUMP_SLOT
- x86_64: Implement evex512 version of strlen, strnlen, wcslen and wcsnlen
- Update kernel version to 5.18 in header constant tests
- String: Improve overflow test coverage for strnlen
2022-06-06 12:29:45 -04:00
Sergey Kolosov ab4bc8a24e Extend the test coverage
Move some of the RHEL QE testcases upstream to Fedora.
2022-05-31 09:29:27 +02:00
Arjun Shankar 221d1d8371 Auto-sync with upstream branch master
Upstream commit: 3d9926663cba19f40d26d8a8ab3b2a7cc09ffb13

- Update syscall-names.list for Linux 5.18
- Fix deadlock when pthread_atfork handler calls pthread_atfork or dlclose
- Use Linux 5.18 in build-many-glibcs.py
- stdio-common: Simplify printf_unknown interface in vfprintf-internal.c
- stdio-common: Move union printf_arg int <printf.h>
- stdio-common: Add printf specifier registry to <printf.h>
- elf/dl-reloc.c: Copyright The GNU Toolchain Authors
- benchtests: Improve bench-strnlen.c
- math: Add math-use-builtins-fabs (BZ#29027)
- linux: Add CLONE_NEWTIME from Linux 5.6 to bits/sched.h
- Revert "[ARM][BZ #17711] Fix extern protected data handling"
- Revert "[AArch64][BZ #17711] Fix extern protected data handling"
- elf: Rewrite long RESOLVE_MAP macro to an always_inline static function
2022-05-26 00:15:13 +02:00
DJ Delorie 1d46c32e74 Auto-sync with upstream branch master II
Forgot the source tarball...
2022-05-23 18:02:48 -04:00
DJ Delorie 9a389a777e Auto-sync with upstream branch master
Upstream commit 748df8126ac69e68e0b94e236ea3c2e11b1176cb

- dlfcn: Move RTLD_DEFAULT/RTLD_NEXT outside __USE_GNU
- elf: Optimize _dl_new_hash in dl-new-hash.h
- nss: Optimize nss_hash in nss_hash.c
- benchtests: Add benchtests for dl_elf_hash, dl_new_hash and nss_hash
- nss: Add tests for the nss_hash in nss_hash.h
- elf: Add tests for the dl hash funcs (_dl_new_hash and _dl_elf_hash)
- elf: Refactor dl_new_hash so it can be tested / benchmarked
- locale: Add more cached data to LC_CTYPE
- locale: Remove private union from struct __locale_data
- locale: Remove cleanup function pointer from struct __localedata
- locale: Call _nl_unload_locale from _nl_archive_subfreeres
- stdio-common: Add tst-memstream-string for open_memstream overflow
- __printf_fphex always uses LC_NUMERIC
- vfprintf: Consolidate some multibyte/wide character processing
- vfprintf: Move argument processing into vfprintf-process-arg.c
- stdio-common: Add tst-vfprintf-width-i18n to cover numeric field width
- string.h: fix __fortified_attr_access macro call [BZ #29162]
- Enable DT_RELR in glibc shared libraries and PIEs automatically
- S390: Enable static PIE
- linux: Add tst-pidfd.c
- linux: Add P_PIDFD
- linux: Add pidfd_send_signal
- linux: Add pidfd_getfd
- linux: Add pidfd_open
- aarch64: Move ld.so _start to separate file and drop _dl_skip_args
- linux: Add a getauxval test [BZ #23293]
- rtld: Remove DL_ARGV_NOT_RELRO and make _dl_skip_args const
- rtld: Use generic argv adjustment in ld.so [BZ #23293]
- scripts/glibcelf.py: Add *T_RISCV_* constants
- Remove dl-librecon.h header.
- elf: Remove ldconfig kernel version check
- Remove kernel version check
- linux: Use /sys/devices/system/cpu on __get_nprocs_conf (BZ#28991)
- csu: Implement and use _dl_early_allocate during static startup
- Linux: Introduce __brk_call for invoking the brk system call
- sys/cdefs.h: Do not require C++ compilers to define __STDC__
- fortify: Ensure that __glibc_fortify condition is a constant [BZ #29141]
- Update RISC-V specific ELF definitions
2022-05-23 14:48:40 -04:00
Arjun Shankar eb33d47394 Auto-sync with upstream branch master
Upstream commit: 9403b71ae97e3f1a91c796ddcbb4e6f044434734

- x86_64: Remove bzero optimization
- RISC-V: Use an autoconf template to produce `preconfigure'
- MIPS: Use an autoconf template to produce `preconfigure'
- m68k: Use an autoconf template to produce `preconfigure'
- C-SKY: Use an autoconf template to produce `preconfigure'
- Remove configure fno_unit_at_a_time
- stdio: Remove the usage of $(fno-unit-at-a-time) for siglist.c
- stdio: Remove the usage of $(fno-unit-at-a-time) for errlist.c
- Add declare_object_symbol_alias for assembly codes (BZ #28128)
- wcrtomb: Make behavior POSIX compliant
2022-05-16 15:16:02 +02:00
Patsy Griffin deac763a04 Auto-sync with upstream branch master
Upstream commit: 8162147872491bb5b48e91543b19c49a29ae6b6d

- nptl: Add backoff mechanism to spinlock loop
- Linux: Implement a useful version of _startup_fatal
- ia64: Always define IA64_USE_NEW_STUB as a flag macro
- linux: Fix posix_spawn return code if clone fails (BZ#29109)
- benchtests: Add wcrtomb microbenchmark
- clock_settime/clock_gettime: Use __nonnull to avoid null pointer
- clock_adjtime: Use __nonnull to avoid null pointer
- ntp_xxxtimex: Use __nonnull to avoid null pointer
- adjtimex/adjtimex64: Use __nonnull to avoid null pointer
- hurd spawni: Fix reauthenticating closed fds
- Linux: Define MMAP_CALL_INTERNAL
- i386: Honor I386_USE_SYSENTER for 6-argument Linux system calls
- i386: Remove OPTIMIZE_FOR_GCC_5 from Linux libc-do-syscall.S
- manual: Clarify that abbreviations of long options are allowed
2022-05-10 17:42:01 -04:00
Florian Weimer e07803b911 Auto-sync with upstream branch master
Upstream commit: 8e28aa3a51bf0ef3683f2aed4b5b448744897b66

- elf: Remove fallback to the start of DT_STRTAB for dladdr
- powerpc32: Remove unused HAVE_PPC_SECURE_PLT
- dlfcn: Implement the RTLD_DI_PHDR request type for dlinfo
- manual: Document the dlinfo function
- Do not use --hash-style=both for building glibc shared objects
- benchtests: Better libmvec integration
- benchtests: Add UNSUPPORTED benchmark status
- linux: Fix fchmodat with AT_SYMLINK_NOFOLLOW for 64 bit time_t (BZ#29097)
- Use __ehdr_start rather than _begin in _dl_start_final
- sysdeps: Add 'get_fast_jitter' interace in fast-jitter.h
- posix/glob.c: update from gnulib
- benchtests: Add pthread-mutex-locks bench
- linux: Fix missing internal 64 bit time_t stat usage
- elf: Fix DFS sorting algorithm for LD_TRACE_LOADED_OBJECTS with missing libraries (BZ #28868)
- posix: Remove unused definition on _Fork
- NEWS: Mention DT_RELR support
- elf: Add more DT_RELR tests
- elf: Properly handle zero DT_RELA/DT_REL values
- elf: Support DT_RELR relative relocation format [BZ #27924]
- Add GLIBC_ABI_DT_RELR for DT_RELR support
- elf: Define DT_RELR related macros and types
- elf: Replace PI_STATIC_AND_HIDDEN with opposite HIDDEN_VAR_NEEDS_DYNAMIC_RELOC
- i386: Regenerate ulps
- dlfcn: Do not use rtld_active () to determine ld.so state (bug 29078)
- INSTALL: Rephrase -with-default-link documentation
2022-05-03 09:27:11 +02:00
Carlos O'Donell 1be721e225 Auto-sync with upstream branch master
Upstream commit: 1305edd42c44fee6f8660734d2dfa4911ec755d6

- elf: Move post-relocation code of _dl_start into _dl_start_final
- misc: Fix rare fortify crash on wchar funcs. [BZ 29030]
- elf: Remove unused enum allowmask
- scripts/glibcelf.py: Mark as UNSUPPORTED on Python 3.5 and earlier
- x86: Optimize {str|wcs}rchr-evex
- x86: Optimize {str|wcs}rchr-avx2
- x86: Optimize {str|wcs}rchr-sse2
- benchtests: Improve bench-strrchr
- x86-64: Fix SSE2 memcmp and SSSE3 memmove for x32
- Default to --with-default-link=no (bug 25812)
- scripts: Add glibcelf.py module
- Add locale for syr_SY
- elf: Move elf_dynamic_do_Rel RTLD_BOOTSTRAP branches outside
- m68k: Handle fewer relocations for RTLD_BOOTSTRAP (#BZ29071)
- nptl: Fix pthread_cancel cancelhandling atomic operations
- x86: Fix missing __wmemcmp def for disable-multiarch build
- elf: Remove __libc_init_secure
2022-04-26 09:21:36 -04:00
DJ Delorie b72082ecfb Auto-sync with upstream branch master
Upstream commit: 78fb88827362fbd2cc8aa32892ae5b015106e25c

- mips: Fix mips64n32 64 bit time_t stat support (BZ#29069)
- x86: Cleanup page cross code in memcmp-avx2-movbe.S
- x86: Remove memcmp-sse4.S
- x86: Optimize memcmp SSE2 in memcmp.S
- misc: Use 64 bit time_t interfaces on syslog
- misc: syslog: Move SYSLOG_NAME to USE_MISC (BZ #16355)
- misc: syslog: Use fixed-sized buffer and remove memstream
- misc: syslog: Simplify implementation
- misc: syslog: Fix indentation and style
- misc: Add syslog test
- support: Add xmkfifo
- stdio: Split __get_errname definition from errlist.c
- x86: Reduce code size of mem{move|pcpy|cpy}-ssse3
- x86: Remove mem{move|cpy}-ssse3-back
- x86: Remove str{p}{n}cpy-ssse3
- x86: Remove str{n}cat-ssse3
- x86: Remove str{n}{case}cmp-ssse3
- x86: Remove {w}memcmp-ssse3
- nptl: Handle spurious EINTR when thread cancellation is disabled (BZ#29029)
- S390: Add new s390 platform z16.
- Replace {u}int_fast{16|32} with {u}int32_t
- stdlib: Reflow and sort most variable assignments
- elf: Fix memory leak in _dl_find_object_update (bug 29062)
- hurd: Define ELIBEXEC
- hurd: Fix arbitrary error code
- NEWS: Move PLT tracking slowdown to glibc 2.35.
- Remove _dl_skip_args_internal declaration
- test-container: Fix "unused code" warnings on HURD
- Add .clang-format style file
- manual: Avoid name collision in libm ULP table [BZ #28956]
2022-04-19 17:40:07 -04:00
Sergey Kolosov 12a09a5e16 Regression/locale-archive-test: removes glibc-minimal-langpack 2022-04-14 13:33:52 +00:00
Sergey Kolosov 157efe36a2 adds Regression/locale-archive-test(glibc-all-langpacks) test 2022-04-14 13:33:52 +00:00
Arjun Shankar fc64649722 Auto-sync with upstream branch master
Upstream commit: 1a85970f41ea1e5abe6da2298a5e8fedcea26b70

- powerpc: Relocate stinfo->main
- powerpc64: Set up thread register for _dl_relocate_static_pie
- powerpc64: Use medium model toc accesses throughout
- linux: Constify rfv variable in dl_vdso_vsym
- string: Replace outdated comments in strlen().
- S390: Fix elf/tst-audit25[ab]
- sparc64: Remove fcopysign{f} implementation
- alpha: Remove fcopysign{f} implementation
- math: Use builtin for ldbl-96 copysign
- ia64: Remove fcopysign{f} implementation
- x86: Remove fcopysign{f} implementation
- powerpc: Remove fcopysign{f} implementation
- Add rif_MA locale [BZ #27781]
- tests/string: Drop simple/stupid/builtin tests
- test-memcpy: Actually reverse source and destination
- benchtests: Only build libmvec benchmarks iff $(build-mathvec) is set
2022-04-12 02:02:11 +02:00
Florian Weimer 880449658c Add missing newline to %changelog 2022-04-05 17:41:52 +02:00
Florian Weimer e900cd3e77 Auto-sync with upstream branch master
Upstream commit: 053fe273434056f551ed8f81daf750db9dab5931

- linux: Fix __closefrom_fallback iterates until max int (BZ#28993)
- Remove -z combreloc and HAVE_Z_COMBRELOC
- sparc: Remove s_abs implementations
- ia64: Remove fabs implementations
- x86: Remove fabs{f} implementation
- alpha: Remove s_abs implementations
- Allow for unpriviledged nested containers
- Increase the test timeout of some string tests
- realpath: Bring back GNU extension on ENOENT and EACCES [BZ #28996]
- stdlib: Fix tst-getrandom memcmp call
- stdlib: Fix tst-rand48.c printf types
- elf: Remove unused functions from tst-audit25(a,b)
- nptl: Use libc-diag.h with tst-thread-setspecific
- crypt: Remove unused variable on cert test
- elf: Remove unused variables in tests
- elf: Fix wrong fscanf usage on tst-pldd
- posix: Remove unused variable on tst-_Fork.c
- resolv: Initialize loop variable on tst-resolv-trailing
- locale: Remove set but unused variable on ld-collate.c
- localedate: Fix printf type on tst_mbrtowc
- localedata: Remove unused variables in tests
- x86: Small improvements for wcslen
- x86: Small improvements for wcscpy-ssse3
- debug: Improve fdelt_chk error message
- Add HWCAP2_AFP, HWCAP2_RPRES from Linux 5.17 to AArch64 bits/hwcap.h
- x86: Remove AVX str{n}casecmp
- x86: Add EVEX optimized str{n}casecmp
- x86: Add AVX2 optimized str{n}casecmp
- string: Expand page cross test cases in test-strncmp.c
- string: Expand page cross test cases in test-strcmp.c
- x86: Optimize str{n}casecmp TOLOWER logic in strcmp-sse42.S
- x86: Optimize str{n}casecmp TOLOWER logic in strcmp.S
- string: Expand page cross tests in test-strncasecmp.c
- string: Expand page cross tests in test-strcasecmp.c
- benchtests: Use json-lib in bench-strncasecmp.c
- benchtests: Use json-lib in bench-strcasecmp.c
- x86: Fix fallback for wcsncmp_avx2 in strcmp-avx2.S [BZ #28896]
- x86: Remove strspn-sse2.S and use the generic implementation
- x86: Remove strpbrk-sse2.S and use the generic implementation
- x86: Remove strcspn-sse2.S and use the generic implementation
- x86: Optimize strspn in strspn-c.c
- x86: Optimize strcspn and strpbrk in strcspn-c.c
- benchtests: Use json-lib in bench-strspn.c
- benchtests: Use json-lib in bench-strpbrk.c
- x86: Code cleanup in strchr-evex and comment justifying branch
- x86: Code cleanup in strchr-avx2 and comment justifying branch
- benchtests: Add random benchmark in bench-strchr.c
- benchtests: Use json-lib in bench-strchr.c
- Update kernel version to 5.17 in tst-mman-consts.py
- iconvdata: Fix enum type on UTF-7
- nscd: Remove unused variable
- support: Fix support_process_state_wait path size calculation
- support: Remove unused extract_8 function
- locale: Remove ununsed wctype_table_get function
- gmon: Remove unused sprofil.c functions
- Update syscall lists for Linux 5.17
- Fix ununsed fstatat64_time64_statx
- malloc: Fix duplicate inline for do_set_mxfast
- elf: Remove inline _dl_dprintf
- configure.ac: fix bashisms in configure.ac
- getaddrinfo: Refactor code for readability
- Use Linux 5.17 in build-many-glibcs.py
- resolv: Fix unaligned accesses to fields in HEADER struct
- gai_init: Avoid jumping from if condition to its else counterpart
- gaiconf_init: Refactor some bits for readability
- gethosts: Return EAI_MEMORY on allocation failure
- gaih_inet: Split result generation into its own function
- gaih_inet: split loopback lookup into its own function
- gaih_inet: make gethosts into a function
- gaih_inet: separate nss lookup loop into its own function
- gaih_inet: Split nscd lookup code into its own function.
- gaih_inet: Split simple gethostbyname into its own function
- gaih_inet: make numeric lookup a separate routine
- gaih_inet: Simplify service resolution
- getaddrinfo: Fix leak with AI_ALL [BZ #28852]
- gaih_inet: Simplify canon name resolution
- Simplify allocations and fix merge and continue actions [BZ #28931]
- iconv: Add UTF-7-IMAP variant in utf-7.c
- iconv: make utf-7.c able to use variants
- iconv: Better mapping to RFC for UTF-7
- iconv: Always encode "optional direct" UTF-7 characters
- stdio-common: Add wide stream coverage to tst-vfprintf-user-type
- libio: Flush-only _IO_str_overflow must not return EOF (bug 28949)
- libio: Convert tst_swprintf to the test framework
- scripts/dso-ordering-test.py: Fix C&P error in * callrefs processing
- stdio-common: Generate ja_JP.EUC-JP locale
- stdio-common: Re-flow and sort Makefile variables
- nss: Sort tests and tests-container and put one test per line
- benchtests: Use "=" instead of ":=" [BZ #28970]
- hppa: Use END instead of PSEUDO_END in swapcontext.S
* Tue Mar 15 2022 DJ Delorie <dj@redhat.com> - 2.35.9000-11
- Auto-sync with upstream branch master,
  commit d05e6dc8d1032e1732542a48e0fb895432008b6e.
- hppa: Implement swapcontext in assembler (bug 28960)
- associate a deallocator for iconv_open
- associate a deallocation for opendir
- Add access function attributes to epoll_wait
- Add access function attributes to grp and shadow headers
- Define ISO 639-3 "tok" [BZ #28950]
- nss: Protect against errno changes in function lookup (bug 28953)
- nss: Do not mention NSS test modules in <gnu/lib-names.h>
- malloc: Exit early on test failure in tst-realloc
- Add some missing access function attributes
- libio: Ensure output buffer for wchars (bug #28828)
- inet: Return EAI_MEMORY when nrl_domainname() fails to allocate memory
- inet: Remove strdupa from nrl_domainname()
- inet: Fix getnameinfo (NI_NOFQDN) race condition (BZ#28566)
- benchtests: make compare_strings.py accept string as attribute value
2022-04-05 17:32:38 +02:00
DJ Delorie 98fe3887bc Auto-sync with upstream branch master
Upstream commit: d05e6dc8d1032e1732542a48e0fb895432008b6e

- hppa: Implement swapcontext in assembler (bug 28960)
- associate a deallocator for iconv_open
- associate a deallocation for opendir
- Add access function attributes to epoll_wait
- Add access function attributes to grp and shadow headers
- Define ISO 639-3 "tok" [BZ #28950]
- nss: Protect against errno changes in function lookup (bug 28953)
- nss: Do not mention NSS test modules in <gnu/lib-names.h>
- malloc: Exit early on test failure in tst-realloc
- Add some missing access function attributes
- libio: Ensure output buffer for wchars (bug #28828)
- inet: Return EAI_MEMORY when nrl_domainname() fails to allocate memory
- inet: Remove strdupa from nrl_domainname()
- inet: Fix getnameinfo (NI_NOFQDN) race condition (BZ#28566)
- benchtests: make compare_strings.py accept string as attribute value
2022-03-15 15:32:25 -04:00
Florian Weimer 18a434fccf Trim changelog 2022-03-15 08:57:44 +01:00
Florian Weimer 9050623a8c Remove downstream-only workaround patches for ppc64le, gettext 2022-03-10 10:33:17 +01:00
Arjun Shankar 37b89add0a Drop glibc-rh1070416.patch
It was an nscd related patch and no longer relevant since we don't
provide nscd any more.
2022-03-09 14:47:49 +01:00
Arjun Shankar ca8ff78a60 Auto-sync with upstream branch master
Upstream commit: 6de743a4e31a94e3d022e64a90c9082290a5a573

- x86_64: Fix code formatting of vectorized math functions
- pthread: Do not overwrite tests-time64
- x86_64: Fix svml_s_acosf16_core_avx512.S code formatting
- i386: Remove libc-do-syscall from sysdep-dl-routines [BZ #28936]
- linux/i386: remove dead assignment of sysdep-dl-routines
2022-03-08 17:21:01 +01:00
Siddhesh Poyarekar 93272df772 Fix gettext version check to accommodate snapshot builds in rawhide
If the gettext snapshots are deemed official upstream,
glibc-gettext-snapshot-versioncheck.patch will be posted upstream.
2022-03-08 20:24:19 +05:30
Carlos O'Donell 2b9524042d Auto-sync with upstream branch master
Upstream commit: 2bbc694df279020a6620096d31c1e05c93966f9b

- nptl: Fix cleanups for stack grows up [BZ# 28899]
- manual: SA_ONSTACK is ignored without alternate stack
- io: Add fsync call in tst-stat
- Linux: Consolidate auxiliary vector parsing (redo)
2022-03-01 23:56:46 -05:00
Arjun Shankar 199391c59d Auto-sync with upstream branch master
Upstream commit: 1fe00d3eb602a0754873b536dc92fb6226759ee4

- build: Properly generate .d dependency files [BZ #28922]
- benchtests: Generate .d dependency files [BZ #28922]
- benchtests: Remove duplicated loop in bench-bzero-walk.c
- localedata: Do not generate output if warnings were present.
- localedef: Update LC_MONETARY handling (Bug 28845)
- localedef: Handle symbolic links when generating locale-archive
- benchtests: Add small sizes (<= 64) to bench-bzero-walk.c
- math: Add more input to atanh accuracy tests
- resolv: Fix tst-resolv tests for 2.35 ABIs and later
- x86_64: Disable libmvec tests if multiarch not enabled [BZ# 28869]
- benchtests: Add benches for memset with 0 value
- i686: Remove bzero optimizations
- s390: Remove bzero optimizations
- powerpc: Remove powerpc64 bzero optimizations
- powerpc: Remove powerpc32 bzero optimizations
- sparc: Remove bzero optimization
- ia64: Remove bzero optimization
- alpha: Remove bzero optimization
- x86_64: Remove bcopy optimizations
- i386: Remove bcopy optimizations
- powerpc: Remove bcopy optimizations
- ia64: Remove bcopy
- hppa: Fix warnings from _dl_lookup_address
- hppa: Revise gettext trampoline design

This auto-sync includes the actual localedef fix for bug 2057697.
That bug was worked around in commit e2ef526535.  The comment
relating to the workaround is also removed.

Related: #2057697
2022-02-26 01:32:37 +01:00
Carlos O'Donell e2ef526535 Fix locale-archive generation (#2057697)
Resolves: #2057697
2022-02-23 23:12:00 -05:00
Carlos O'Donell 6079b05db6 Do not assert if systemctl fails to execute.
It should be a soft failure if systemctl fails to execute
and we cannot restart all the daemons.
2022-02-22 15:39:33 -05:00
Carlos O'Donell da2736300e Auto-sync with upstream branch master
Upstream commit: fdc1ae67fef27eea1445bab4bdfe2f0fb3bc7aa1

- Add SOL_MPTCP, SOL_MCTP from Linux 5.16 to bits/socket.h
- elf: Check invalid hole in PT_LOAD segments [BZ #28838]
- realpath: Do not copy result on failure (BZ #28815)
- x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c
- x86: Test wcscmp RTM in the wcsncmp overflow case [BZ #28896]
- hppa: Fix swapcontext
- x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #28896]
- string: Add a testcase for wcsncmp with SIZE_MAX [BZ #28755]
- microblaze: Use the correct select syscall (BZ #28883)
- Update kernel version to 5.16 in tst-mman-consts.py
- pthread: Use 64 bit time_t stat internally for sem_open (BZ #28880)
- x86: Fix bug in strncmp-evex and strncmp-avx2 [BZ #28895]
- String: Strength memset tests in test-memset.c
- x86-64: Define __memcmpeq in ld.so
- htl: Destroy thread-specific data before releasing joins
- htl: Fix initializing the key lock
- mach: Fix LLL_SHARED value
- htl: Make pthread_[gs]etspecific not check for key validity
- x86-64: Remove bzero weak alias in SS2 memset
- hppa: Fix typo
- linux: Use socket-constants-time64.h on tst-socket-timestamp-compat
- x86/configure.ac: Define PI_STATIC_AND_HIDDEN/SUPPORT_STATIC_PIE
- Fix elf/tst-audit2 on hppa
- x86: Use CHECK_FEATURE_PRESENT on PCONFIG
- x86: Don't check PTWRITE in tst-cpu-features-cpuinfo.c
- x86: Set .text section in memset-vec-unaligned-erms
- Linux: Include <dl-auxv.h> in dl-sysdep.c only for SHARED
- Revert "Linux: Consolidate auxiliary vector parsing"
- String: Ensure 'MIN_PAGE_SIZE' is multiple of 'getpagesize'
- Use binutils 2.38 branch in build-many-glibcs.py
- elf: Remove LD_USE_LOAD_BIAS
- malloc: Remove LD_TRACE_PRELINKING usage from mtrace
- elf: Remove prelink support
- Linux: Consolidate auxiliary vector parsing
- Linux: Assume that NEED_DL_SYSINFO_DSO is always defined
- Linux: Remove DL_FIND_ARG_COMPONENTS
- Linux: Remove HAVE_AUX_SECURE, HAVE_AUX_XID, HAVE_AUX_PAGESIZE
- elf: Merge dl-sysdep.c into the Linux version
- hppa: Fix bind-now audit (BZ #28857)
2022-02-22 15:29:33 -05:00
Zbigniew Jędrzejewski-Szmek 08e0ad8f78 Rewrite scriptlets to call /sbin/ldconfig in lua
The scriptlet in glibc adds a dependency on bash to glibc-common,
which is required by glibc, so effectively the whole world depends on
bash. By rewriting the script in lua we drop this dependency, and also
to avoid a (bogus?) warning from rpm about a dependency loop.

If the call fails, an error is printed but the transaction is not failed.
(The original script didn't have "|| :", so the return value from
/sbin/ldconfig would be the return value from the script, causing
the transaction to fail.)

Quoting https://bugzilla.redhat.com/show_bug.cgi?id=2018913#c34:

warning: SCC #1: 5 members (5 external dependencies)
warning:        glibc-2.35-2.fc37.x86_64
warning:                -> glibc-minimal-langpack-2.35-2.fc37.x86_64
warning:                -> glibc-common-2.35-2.fc37.x86_64
warning:        ncurses-libs-6.2-9.20210508.fc36.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64
warning:        bash-5.1.16-2.fc36.x86_64
warning:                -> ncurses-libs-6.2-9.20210508.fc36.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64
warning:        glibc-common-2.35-2.fc37.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64
warning:                -> bash-5.1.16-2.fc36.x86_64
warning:        glibc-minimal-langpack-2.35-2.fc37.x86_64
warning:                -> glibc-common-2.35-2.fc37.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64

If we look into SCC #1, bash obviously requires glibc because it links
to it. The loop is created by glibc → glibc-common → bash, because
glibc-common has %transfiletriggerin and %transfiletriggerpostun using
bash to call /sbin/ldconfig.

https://github.com/coreos/rpm-ostree/pull/3453 provides a workaround
so that rpm-ostree doesn't choke on this.
2022-02-22 20:38:30 +01:00
Zbigniew Jędrzejewski-Szmek f6ed6cf018 Use rpm.execute() instead of an open-coded variant
See https://rpm-software-management.github.io/rpm/manual/lua.html and
298bb60a9f/rpmio/rpmlua.c (L806-L829)

assert() is not used because it seems better to ignore the error.  The
old code would assert on exec(), but not on fork(), and it would not
check the return value either. But if the call fails (for any reason),
an error is printed. At least iconvconfig just seems to fail quietly
in case of a problem.
2022-02-22 20:37:07 +01:00
Zbigniew Jędrzejewski-Szmek 4f7d89c5d3 Use %{expand} and %global
Our packaging guidelines say that %global is preferred, and
with %{expand} the line continuations can be removed.
2022-02-22 19:55:39 +01:00
Arjun Shankar a0bdca4f3f locale: symlink identical langpack LC_CTYPEs to the C.utf8 version
Almost half the LC_CTYPE files in langpacks are identical to the C.utf8
variant which is installed by default.  This commit converts these to
symbolic links instead, saving ~350K of installed size per langpack.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2022-02-15 12:11:07 +01:00
Arjun Shankar cf979ff812 locale: make install-locale-files instead of install-locales
glibc-fedora-localedef.patch was altering the install-locales target so
that it does not generate a locale-archive.

This commit drops the patch and uses the install-locale-files target
instead of install-locales.  install-locale-files does not generate
locale-archive, and does not group identical locale files via hardlinks.

hardlink is also passed a -c flag so that it actually compares file
contents and hardlinks identical ones.
2022-02-10 12:00:48 +01:00
Arjun Shankar 12d74d739e Correct NVR in changelog entry 2022-02-10 11:47:40 +01:00
Sergey Kolosov 4df8fd5b19 tests: removes uneeded PURPOSE files 2022-02-09 20:39:42 +01:00
Sergey Kolosov 7b4342f3e8 tests/Regression/bz2007417-glibc-ldd-segfaults-when-inspecting: fixes multiple vdso64.so files procession 2022-02-09 20:38:49 +01:00
Florian Weimer 17eea2064a Auto-sync with upstream branch master
Upstream commit: 3d9f171bfb5325bd5f427e9fc386453358c6e840

- x86-64: Optimize bzero
- benchtests: Add benches for bzero
- linux: fix accuracy of get_nprocs and get_nprocs_conf [BZ #28865]
- x86: Remove SSSE3 instruction for broadcast in memset.S (SSE2 Only)
- benchtests: Sort benches in Makefile
- Benchtests: Add length zero benchmark for memset in bench-memset.c
- x86: Improve vec generation in memset-vec-unaligned-erms.S
- x86-64: Add vector tan/tanf to libmvec microbenchmark
- x86-64: Add vector erfc/erfcf to libmvec microbenchmark
- x86-64: Add vector asinh/asinhf to libmvec microbenchmark
- x86-64: Add vector tanh/tanhf to libmvec microbenchmark
- x86-64: Add vector erf/erff to libmvec microbenchmark
- x86-64: Add vector acosh/acoshf to libmvec microbenchmark
- x86-64: Add vector atanh/atanhf to libmvec microbenchmark
- x86-64: Add vector log1p/log1pf to libmvec microbenchmark
- x86-64: Add vector log2/log2f to libmvec microbenchmark
- x86-64: Add vector log10/log10f to libmvec microbenchmark
- x86-64: Add vector atan2/atan2f to libmvec microbenchmark
- x86-64: Add vector cbrt/cbrtf to libmvec microbenchmark
- x86-64: Add vector sinh/sinhf to libmvec microbenchmark
- x86-64: Add vector expm1/expm1f to libmvec microbenchmark
- x86-64: Add vector cosh/coshf to libmvec microbenchmark
- x86-64: Add vector exp10/exp10f to libmvec microbenchmark
- x86-64: Add vector exp2/exp2f to libmvec microbenchmark
- x86-64: Add vector hypot/hypotf to libmvec microbenchmark
- x86-64: Add vector asin/asinf to libmvec microbenchmark
- x86-64: Add vector atan/atanf to libmvec microbenchmark
- elf: Replace tst-audit24bmod2.so with tst-audit24bmod2
- x86_64/multiarch: Sort sysdep_routines and put one entry per line
- string: Sort headers, routines, tests and tests-translation
- x86: Improve L to support L(XXX_SYMBOL (YYY, ZZZ))
- Benchtests: move 'alloc_bufs' from loop in bench-memset.c
- x86-64: Fix strcmp-evex.S
- x86-64: Fix strcmp-avx2.S
- x86-64: Add vector acos/acosf to libmvec microbenchmark
- benchtests: Add more coverage for strcmp and strncmp benchmarks
- x86: Optimize strcmp-evex.S
- x86: Optimize strcmp-avx2.S
- string: Improve coverage in test-strcmp.c and test-strncmp.c
- string/test-str*cmp: remove stupid_[strcmp, strncmp, wcscmp, wcsncmp].
- Open master branch for glibc 2.36 development
2022-02-09 13:17:44 +01:00