From 0d6957294d54553b1bb2fa41575c5842180fcfcb Mon Sep 17 00:00:00 2001 From: fslongjin Date: Sat, 25 Jun 2022 20:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4=E4=BA=86libc=E7=9A=84=5Fstar?= =?UTF-8?q?t=E6=96=B9=E6=B3=95=E7=9A=84=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/libs/libc/sysdeps/x86_64/elf/start.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/user/libs/libc/sysdeps/x86_64/elf/start.c b/user/libs/libc/sysdeps/x86_64/elf/start.c index c9c270f6..0dfca2d2 100644 --- a/user/libs/libc/sysdeps/x86_64/elf/start.c +++ b/user/libs/libc/sysdeps/x86_64/elf/start.c @@ -1,10 +1,13 @@ -extern int main(int, char**); -#include -void _start(int argc, char** argv) +#include +#include + +extern int main(int, char **); + +void _start(int argc, char **argv) { - printf("before main\n"); + // printf("before main\n"); int retval = main(argc, argv); - printf("before exit, code=%d\n", retval); + // printf("before exit, code=%d\n", retval); exit(retval); } \ No newline at end of file