Use __section(".test.startup") for the init routines

This commit is contained in:
matt 2013-08-21 03:00:56 +00:00
parent a5d934954f
commit 879bc2893e
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: atomic_init_cas.c,v 1.3 2008/04/28 20:22:53 martin Exp $ */ /* $NetBSD: atomic_init_cas.c,v 1.4 2013/08/21 03:00:56 matt Exp $ */
/*- /*-
* Copyright (c) 2008 The NetBSD Foundation, Inc. * Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -32,11 +32,11 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__RCSID("$NetBSD: atomic_init_cas.c,v 1.3 2008/04/28 20:22:53 martin Exp $"); __RCSID("$NetBSD: atomic_init_cas.c,v 1.4 2013/08/21 03:00:56 matt Exp $");
void __libc_atomic_init(void) __attribute__ ((visibility("hidden"))); void __libc_atomic_init(void) __attribute__ ((visibility("hidden")));
void void __section(".text.startup")
__libc_atomic_init(void) __libc_atomic_init(void)
{ {

View File

@ -1,4 +1,4 @@
/* $NetBSD: atomic_init_testset.c,v 1.8 2012/02/28 20:41:19 joerg Exp $ */ /* $NetBSD: atomic_init_testset.c,v 1.9 2013/08/21 03:00:56 matt Exp $ */
/*- /*-
* Copyright (c) 2008 The NetBSD Foundation, Inc. * Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -36,7 +36,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__RCSID("$NetBSD: atomic_init_testset.c,v 1.8 2012/02/28 20:41:19 joerg Exp $"); __RCSID("$NetBSD: atomic_init_testset.c,v 1.9 2013/08/21 03:00:56 matt Exp $");
#include "atomic_op_namespace.h" #include "atomic_op_namespace.h"
@ -109,7 +109,7 @@ _atomic_cas_32(volatile uint32_t *ptr, uint32_t old, uint32_t new)
return (*_atomic_cas_fn)(ptr, old, new); return (*_atomic_cas_fn)(ptr, old, new);
} }
void void __section(".text.startup")
__libc_atomic_init(void) __libc_atomic_init(void)
{ {
int ncpu, mib[2]; int ncpu, mib[2];