From ba50378f01c86b2fb74e087500fd69a34c9eae18 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 7ec2072728..914fbdc50d 100644 --- a/libs/libbuiltin/libgcc/gcov.c +++ b/libs/libbuiltin/libgcc/gcov.c @@ -327,8 +327,9 @@ void __gcov_execv(void) { } -void __gcov_fork(void) +pid_t __gcov_fork(void) { + return fork(); } void __gcov_dump(void)