From dad9ad949d0a58e139589568d9cb3729e79be66a Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Thu, 12 Dec 2024 16:47:20 +0800 Subject: [PATCH] gcov: Fix gcov fork() issue After code coverage is enabled, fork will be replaced by __gcov_fork Signed-off-by: wangmingrong1 --- libs/libbuiltin/libgcc/gcov.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/libbuiltin/libgcc/gcov.c b/libs/libbuiltin/libgcc/gcov.c index 987efa1b60..f4f34da04c 100644 --- a/libs/libbuiltin/libgcc/gcov.c +++ b/libs/libbuiltin/libgcc/gcov.c @@ -323,8 +323,9 @@ void __gcov_execv(void) { } -void __gcov_fork(void) +pid_t __gcov_fork(void) { + return fork(); } void __gcov_dump(void)