Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/matt-nb6-plus]: src/lib/csu/common Use __weakref_visible
details: https://anonhg.NetBSD.org/src/rev/ff225ce47b07
branches: matt-nb6-plus
changeset: 774542:ff225ce47b07
user: matt <matt%NetBSD.org@localhost>
date: Mon Jan 28 16:56:14 2013 +0000
description:
Use __weakref_visible
diffstat:
lib/csu/common/crt0-common.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diffs (37 lines):
diff -r 64bde2f5f257 -r ff225ce47b07 lib/csu/common/crt0-common.c
--- a/lib/csu/common/crt0-common.c Fri Jan 25 08:50:06 2013 +0000
+++ b/lib/csu/common/crt0-common.c Mon Jan 28 16:56:14 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0-common.c,v 1.7.6.1 2013/01/22 22:56:58 matt Exp $ */
+/* $NetBSD: crt0-common.c,v 1.7.6.2 2013/01/28 16:56:14 matt Exp $ */
/*
* Copyright (c) 1998 Christos Zoulas
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: crt0-common.c,v 1.7.6.1 2013/01/22 22:56:58 matt Exp $");
+__RCSID("$NetBSD: crt0-common.c,v 1.7.6.2 2013/01/28 16:56:14 matt Exp $");
#include <sys/types.h>
#include <sys/exec.h>
@@ -95,10 +95,14 @@
* Since we don't need .init or .fini sections, just code them in C
* to make life easier.
*/
-extern const fptr_t init_array_start[] __weak_reference(__init_array_start);
-extern const fptr_t init_array_end[] __weak_reference(__init_array_end);
-extern const fptr_t fini_array_start[] __weak_reference(__fini_array_start);
-extern const fptr_t fini_array_end[] __weak_reference(__fini_array_end);
+__weakref_visible const fptr_t init_array_start[1]
+ __weak_reference(__init_array_start);
+__weakref_visible const fptr_t init_array_end[1]
+ __weak_reference(__init_array_end);
+__weakref_visible const fptr_t fini_array_start[1]
+ __weak_reference(__fini_array_start);
+__weakref_visible const fptr_t fini_array_end[1]
+ __weak_reference(__fini_array_end);
static inline void
_init(void)
Home |
Main Index |
Thread Index |
Old Index