From f1d0c9b69e43687fd4dea27325b8cf96639cb017 Mon Sep 17 00:00:00 2001 From: wang-guangge Date: Thu, 29 Jun 2023 21:02:31 +0800 Subject: [PATCH] add 0001-glibc-hotpatch-test.patch --- 0001-glibc-hotpatch-test.patch | 32 ++++++++++++++++++++++++++++++++ glibc.spec | 3 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0001-glibc-hotpatch-test.patch diff --git a/0001-glibc-hotpatch-test.patch b/0001-glibc-hotpatch-test.patch new file mode 100644 index 0000000..faa7994 --- /dev/null +++ b/0001-glibc-hotpatch-test.patch @@ -0,0 +1,32 @@ +From b7f44ef18e7e75428fe37c07987ca4fc205e2d32 Mon Sep 17 00:00:00 2001 +From: wang-guangge +Date: Thu, 29 Jun 2023 18:54:27 +0800 +Subject: [PATCH] glibc hotpatch test + +--- + time/ctime.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/time/ctime.c b/time/ctime.c +index 3810e035..19553378 100644 +--- a/time/ctime.c ++++ b/time/ctime.c +@@ -16,6 +16,7 @@ + . */ + + #include ++#include + + /* Return a string as returned by asctime which + is the representation of *T in that form. */ +@@ -24,6 +25,7 @@ __ctime64 (const __time64_t *t) + { + /* The C Standard says ctime (t) is equivalent to asctime (localtime (t)). + In particular, ctime and asctime must yield the same pointer. */ ++ printf("glibc syscare hotpatch test\n"); + return asctime (__localtime64 (t)); + } + +-- +2.33.0 + diff --git a/glibc.spec b/glibc.spec index 75c382e..9ac864a 100644 --- a/glibc.spec +++ b/glibc.spec @@ -66,7 +66,7 @@ ############################################################################## Name: glibc Version: 2.34 -Release: 122 +Release: 123 Summary: The GNU libc libraries License: %{all_license} URL: http://www.gnu.org/software/glibc/ @@ -308,6 +308,7 @@ Patch9037: elf-ld.so-add-MAP_NORESERVE-flag-for-the-first-mmap-2MB-contig.patch Patch9038: elf-ld.so-prohibit-multiple-i-options-and-do-not-allow-i-speci.patch Patch9039: elf-ld.so-Consider-maybe-existing-hole-between-PT_LO.patch Patch9040: add-GB18030-2022-charmap.patch +Patch9041: 0001-glibc-hotpatch-test.patch Provides: ldconfig rtld(GNU_HASH) bundled(gnulib) -- Gitee