Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys sysctl_funcs is a set of symbols in text segment (fu...



details:   https://anonhg.NetBSD.org/src/rev/9922c2239995
branches:  trunk
changeset: 556742:9922c2239995
user:      itohy <itohy%NetBSD.org@localhost>
date:      Fri Dec 26 11:43:24 2003 +0000

description:
sysctl_funcs is a set of symbols in text segment (function pointers),
and we must use __link_set_add_text() instead of __link_set_add_data().

diffstat:

 sys/sys/sysctl.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 38d951ba3f6d -r 9922c2239995 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Fri Dec 26 11:30:36 2003 +0000
+++ b/sys/sys/sysctl.h  Fri Dec 26 11:43:24 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.102 2003/12/06 04:16:33 atatat Exp $      */
+/*     $NetBSD: sysctl.h,v 1.103 2003/12/26 11:43:24 itohy Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -832,12 +832,12 @@
        static void name(void) {                        \
                printf("%s\n", desc);                   \
                __CONCAT(___,name)(); }                 \
-       __link_set_add_data(sysctl_funcs, name);        \
+       __link_set_add_text(sysctl_funcs, name);        \
        static void __CONCAT(___,name)(void)
 #else
 #define SYSCTL_SETUP(name, desc)                       \
        static void name(void);                         \
-       __link_set_add_data(sysctl_funcs, name);        \
+       __link_set_add_text(sysctl_funcs, name);        \
        static void name(void)
 #endif
 typedef void (*sysctl_setup_func)(void);



Home | Main Index | Thread Index | Old Index