84 Commits

Author SHA1 Message Date
jiangheng
ecb0d526a0 restore nscd 2022-05-12 22:07:50 +08:00
Yang Yanchao
908728e05c delete the BuildRequires:gcc_secure.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-31 21:08:01 +08:00
Yang Yanchao
c0a3ae8ca6 mv libc.info.gz* to the package glibc-help
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-03-30 14:39:53 +08:00
liqingqing_1229
2c74ab717a malloc: use __get_nprocs replace __get_nprocs_sched 2022-03-12 17:52:37 +08:00
liqingqing_1229
0997054034 add chrpath to build requires for removing RPATH/RUNPATH 2022-03-02 15:48:47 +08:00
liqingqing_1229
a95455ac97 remove shared library's RPATH/RUNPATH for security 2022-03-01 15:21:45 +08:00
liqingqing_1229
a80f91c2ed tzselect: use region to select timezone 2022-02-22 15:30:25 +08:00
shirely16
82785a936c remove nscd 2022-02-11 10:23:26 +08:00
liqingqing_1229
87f8bf9cd5 upgrade to 2.35 2022-02-09 09:23:31 +08:00
Yang Yanchao
128404983f sync spec code form 22.03-LTS
https://gitee.com/src-openeuler/glibc/pulls/334/files

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-02-08 15:30:50 +08:00
Yang Yanchao
a24aecade4 testsuit: delete check-installed-headers-c and check-installed-headers-cxx
which are checked in CI to improves the compilation speed.
testsuit: delete glibc-benchtest

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2022-01-11 17:16:36 +08:00
liusirui
38869172b4 ld.so: Don't fill the DT_DEBUG entry in ld.so [BZ #28129]
Signed-off-by: liusirui <liusirui@huawei.com>
2021-12-25 17:31:02 +08:00
liqingqing_1229
cc054c6ba0 do not define tgmath.h fmaxmag, fminmag macros for C2X (BZ #28397) 2021-12-24 16:33:10 +08:00
liqingqing_1229
83668a2e5d io: Fix ftw internal realloc buffer (BZ #28126) 2021-12-24 15:09:14 +08:00
liqingqing_1229
c66918bc60 fix glibc upstream bug BZ#28260 and nss/tst-nss-files-hosts-long and nptl/tst-create1 2021-12-22 17:31:47 +08:00
liqingqing_1229
4405c42868 pthread/tst-cancel28: Fix barrier re-init race condition 2021-12-15 19:33:12 +08:00
Yang Yanchao
91e26f23d2 Deleted some unnecessary command when make master.filelist
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-09 21:50:16 +08:00
Yang Yanchao
f5e24fbbc9 support all Chinese and English by default
add zh_* and en_* to glibc-common
the size of glibc-common is increased from 1.8MB to 3.5MB

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-09 20:03:45 +08:00
Yang Yanchao
6495a142f4 turn the default value of x86_rep_stosb_threshold from 2k to 1M
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-12-03 12:13:47 +08:00
liqingqing_1229
0057d144a9 revert the use of sched_getaffinity [BZ #28310] 2021-12-02 21:02:21 +08:00
Bin Wang
b91290ce41 Linux: Simplify __opensock and fix race condition [BZ #28353]
AF_NETLINK support is not quite optional on modern Linux systems
anymore, so it is likely that the first attempt will always succeed.
Consequently, there is no need to cache the result.  Keep AF_UNIX
and the Internet address families as a fallback, for the rare case
that AF_NETLINK is missing.  The other address families previously
probed are totally obsolete be now, so remove them.

Use this simplified version as the generic implementation, disabling
Netlink support as needed.

Signed-off-by: Bin Wang <wangbin224@huawei.com>
2021-11-30 10:15:28 +08:00
Yang Yanchao
8615244aa3 Refactor the libpthread-2.17.so code and pass all test cases.
delete libpthread-2.17.so from glibc-devel
2021-11-24 18:19:16 +08:00
liqingqing_1229
1feba0288f revert supress -Wcast-qual warnings in bsearch 2021-11-19 09:51:27 +08:00
liqingqing_1229
05f7be5273 fix attribute access mode on getcwd [BZ #27476], supress -Wcast-qual warnings in bsearch 2021-11-15 21:38:26 +08:00
liqingqing_1229
35e1891d71 elf: fix ld.so crash while loading a DSO with a read-only dynamic section 2021-11-15 19:32:05 +08:00
liqingqing_1229
3ab2b7b71b gconv: Do not emit spurious NUL character in ISO-2022-JP-3, this also fix CVE-2021-43396. 2021-11-10 20:49:28 +08:00
liqingqing_1229
2b77a61d3e iconvconfig: Fix behaviour with --prefix 2021-11-09 15:28:35 +08:00
liqingqing_1229
83aeb85874 nptl: pthread_kill race condition issues fixed.
uplink: https://sourceware.org/bugzilla/show_bug.cgi?id=19193
        https://sourceware.org/bugzilla/show_bug.cgi?id=12889
        https://sourceware.org/bugzilla/show_bug.cgi?id=28036
        https://sourceware.org/bugzilla/show_bug.cgi?id=28363
        https://sourceware.org/bugzilla/show_bug.cgi?id=28407
2021-11-08 21:07:42 +08:00
liqingqing_1229
5d781b4a0c pthread_kill and pthread_cancel return success for satisfy posix standard. 2021-11-05 08:50:35 +08:00
liqingqing_1229
653f3153b9 aarch64: update a64fx memset not to degrade at 16KB 2021-10-29 11:07:27 +08:00
liqingqing_1229
a085006b9e use testl, instead of andl, to check __x86_string_control to
avoid updating __x86_string_control
2021-10-28 20:59:51 +08:00
Yang Yanchao
e6a721beed Show more debugging information during testsuite
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-27 09:24:23 +08:00
Fcc
14d36df964 Use __executable_start as the lowest address for profiling 2021-10-26 20:29:37 +08:00
Yang Yanchao
0efa08b12d glibc:add glibc-compat-2.17 subpackage to provide the function of the glibc-2.17 pthread library.
Currently, provide pthread_condition function.

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-26 15:11:36 +08:00
liqingqing_1229
88a66f7a0c fix mtrace output and valgrind check failed for tunables_strdup.
-mtrace fix output with PIE and ASLR.
-elf: rtld copy terminating null in tunables strdup.
2021-10-25 16:54:09 +08:00
liqingqing_1229
018de895ca fpu: x86-64 optimize load of all bits set into ZMM register. 2021-10-25 15:09:40 +08:00
Yang Yanchao
14364fe566 Add locale-archive sub packages to support more languages and reduce memory usage.
Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-19 16:26:18 +08:00
Yang Yanchao
99e0df3458 Add the testsuite whitelist.
If a test case out of the trustlist fails, the compilation is interrupted.

Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
2021-10-14 14:45:26 +08:00
liqingqing_1229
09e73f980a update test memmove.c to cover 16KB 2021-10-11 09:01:17 +08:00
liqingqing_1229
39ba937215 elf: drop elf/tls-macros.h in favor of thread tls_mode attribute.
use __ehdr_start for __GLOBAL_OFFSET_TABLE[0]
2021-09-29 11:52:55 +08:00
liqingqing_1229
60314ef12d time fix overflow itimer tests on 32 bit system 2021-09-29 10:55:38 +08:00
liqingqing_1229
8b0605e3bf mtrace: use a static buffer for printing, fix upstream bug BZ #25947 2021-09-27 19:18:52 +08:00
liqingqing_1229
e4fd5bf689 aarch64: Make elf_machine_{load_addr,dynamic} robust [BZ #28203] 2021-09-26 09:52:11 +08:00
liqingqing_1229
8d6576b56f aarch64: optimize memset performance 2021-09-17 16:04:25 +08:00
liqingqing_1229
524981388e fix some patches to fix some memory leak and double free bugs. 2021-09-17 10:20:57 +08:00
yangyanchao
40f3e7ca8a add --enable-static-pie in aarch64
Signed-off-by: yangyanchao <yangyanchao6@huawei.com>
2021-09-14 15:53:21 +08:00
liqingqing_1229
2418652d62 fix CVE-2021-38604 2021-08-25 09:42:32 +08:00
liqingqing_1229
bc9517add8 upgrade to glibc 2.34 2021-08-06 17:32:15 +08:00
zhouwenpei
0b221203fb remove unnecessary build require. 2021-07-23 16:17:31 +08:00
liqingqing_1229
b49c4bc483 malloc: tcache shutdown sequence does not work if the thread never allocated anything. (bug 28028) 2021-07-03 15:47:42 +08:00