Module Name: src Committed By: christos Date: Fri Jan 19 19:22:18 UTC 2024
Modified Files: src/lib/csu/common: crt0-common.c csu-common.h Log Message: declare _libc_init() in header. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/lib/csu/common/crt0-common.c cvs rdiff -u -r1.1 -r1.2 src/lib/csu/common/csu-common.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/csu/common/crt0-common.c diff -u src/lib/csu/common/crt0-common.c:1.27 src/lib/csu/common/crt0-common.c:1.28 --- src/lib/csu/common/crt0-common.c:1.27 Tue Jun 21 02:52:17 2022 +++ src/lib/csu/common/crt0-common.c Fri Jan 19 14:22:17 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: crt0-common.c,v 1.27 2022/06/21 06:52:17 skrll Exp $ */ +/* $NetBSD: crt0-common.c,v 1.28 2024/01/19 19:22:17 christos Exp $ */ /* * Copyright (c) 1998 Christos Zoulas @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: crt0-common.c,v 1.27 2022/06/21 06:52:17 skrll Exp $"); +__RCSID("$NetBSD: crt0-common.c,v 1.28 2024/01/19 19:22:17 christos Exp $"); #include <sys/types.h> #include <sys/exec.h> @@ -55,7 +55,6 @@ typedef void (*fptr_t)(void); extern void _init(void); extern void _fini(void); #endif -extern void _libc_init(void); /* * Arrange for _DYNAMIC to be weak and undefined (and therefore to show up Index: src/lib/csu/common/csu-common.h diff -u src/lib/csu/common/csu-common.h:1.1 src/lib/csu/common/csu-common.h:1.2 --- src/lib/csu/common/csu-common.h:1.1 Tue Apr 20 17:42:31 2021 +++ src/lib/csu/common/csu-common.h Fri Jan 19 14:22:17 2024 @@ -36,3 +36,5 @@ extern char *__progname __common; extern char **environ __common; extern struct ps_strings *__ps_strings __common; + +void _libc_init(void) __attribute__((__constructor__, __used__));