Source-Changes-HG archive

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

[src/trunk]: src/sys/rump Generate support for sun ld.



details:   https://anonhg.NetBSD.org/src/rev/634bbe7cc441
branches:  trunk
changeset: 785470:634bbe7cc441
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 15 12:13:07 2013 +0000

description:
Generate support for sun ld.

diffstat:

 sys/rump/ldscript_sun.rump |  67 ++++++++++++++++++++++++++++++++++++++++++++++
 sys/rump/linksyms_sun.c    |  65 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 132 insertions(+), 0 deletions(-)

diffs (140 lines):

diff -r bd10b681b9a7 -r 634bbe7cc441 sys/rump/ldscript_sun.rump
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/ldscript_sun.rump        Fri Mar 15 12:13:07 2013 +0000
@@ -0,0 +1,67 @@
+# $NetBSD: ldscript_sun.rump,v 1.1 2013/03/15 12:13:07 pooka Exp $
+
+$mapfile_version 2
+LOAD_SEGMENT rumpkern_linksets {
+       ASSIGN_SECTION { IS_NAME= link_set_start_rump_components };
+       ASSIGN_SECTION { IS_NAME= link_set_rump_components };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_rump_components };
+       OS_ORDER+= link_set_start_rump_components
+           link_set_rump_components
+           link_set_stop_rump_components;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_evcnts };
+       ASSIGN_SECTION { IS_NAME= link_set_evcnts };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_evcnts };
+       OS_ORDER+= link_set_start_evcnts
+           link_set_evcnts
+           link_set_stop_evcnts;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_prop_linkpools };
+       ASSIGN_SECTION { IS_NAME= link_set_prop_linkpools };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_prop_linkpools };
+       OS_ORDER+= link_set_start_prop_linkpools
+           link_set_prop_linkpools
+           link_set_stop_prop_linkpools;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_modules };
+       ASSIGN_SECTION { IS_NAME= link_set_modules };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_modules };
+       OS_ORDER+= link_set_start_modules
+           link_set_modules
+           link_set_stop_modules;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_sysctl_funcs };
+       ASSIGN_SECTION { IS_NAME= link_set_sysctl_funcs };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_sysctl_funcs };
+       OS_ORDER+= link_set_start_sysctl_funcs
+           link_set_sysctl_funcs
+           link_set_stop_sysctl_funcs;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_bufq_strats };
+       ASSIGN_SECTION { IS_NAME= link_set_bufq_strats };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_bufq_strats };
+       OS_ORDER+= link_set_start_bufq_strats
+           link_set_bufq_strats
+           link_set_stop_bufq_strats;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_domains };
+       ASSIGN_SECTION { IS_NAME= link_set_domains };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_domains };
+       OS_ORDER+= link_set_start_domains
+           link_set_domains
+           link_set_stop_domains;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_dkwedge_methods };
+       ASSIGN_SECTION { IS_NAME= link_set_dkwedge_methods };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_dkwedge_methods };
+       OS_ORDER+= link_set_start_dkwedge_methods
+           link_set_dkwedge_methods
+           link_set_stop_dkwedge_methods;
+
+       ASSIGN_SECTION { IS_NAME= link_set_start_ieee80211_funcs };
+       ASSIGN_SECTION { IS_NAME= link_set_ieee80211_funcs };
+       ASSIGN_SECTION { IS_NAME= link_set_stop_ieee80211_funcs };
+       OS_ORDER+= link_set_start_ieee80211_funcs
+           link_set_ieee80211_funcs
+           link_set_stop_ieee80211_funcs;
+};
diff -r bd10b681b9a7 -r 634bbe7cc441 sys/rump/linksyms_sun.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/linksyms_sun.c   Fri Mar 15 12:13:07 2013 +0000
@@ -0,0 +1,65 @@
+/* $NetBSD: linksyms_sun.c,v 1.1 2013/03/15 12:13:07 pooka Exp $ */
+
+int __start_link_set_rump_components[0]
+       __attribute__((__section__("link_set_start_rump_components")));
+int __link_set_dummy_rump_components[0]
+       __attribute__((__section__("link_set_rump_components")));
+int __stop_link_set_rump_components[0]
+       __attribute__((__section__("link_set_stop_rump_components")));
+
+int __start_link_set_evcnts[0]
+       __attribute__((__section__("link_set_start_evcnts")));
+int __link_set_dummy_evcnts[0]
+       __attribute__((__section__("link_set_evcnts")));
+int __stop_link_set_evcnts[0]
+       __attribute__((__section__("link_set_stop_evcnts")));
+
+int __start_link_set_prop_linkpools[0]
+       __attribute__((__section__("link_set_start_prop_linkpools")));
+int __link_set_dummy_prop_linkpools[0]
+       __attribute__((__section__("link_set_prop_linkpools")));
+int __stop_link_set_prop_linkpools[0]
+       __attribute__((__section__("link_set_stop_prop_linkpools")));
+
+int __start_link_set_modules[0]
+       __attribute__((__section__("link_set_start_modules")));
+int __link_set_dummy_modules[0]
+       __attribute__((__section__("link_set_modules")));
+int __stop_link_set_modules[0]
+       __attribute__((__section__("link_set_stop_modules")));
+
+int __start_link_set_sysctl_funcs[0]
+       __attribute__((__section__("link_set_start_sysctl_funcs")));
+int __link_set_dummy_sysctl_funcs[0]
+       __attribute__((__section__("link_set_sysctl_funcs")));
+int __stop_link_set_sysctl_funcs[0]
+       __attribute__((__section__("link_set_stop_sysctl_funcs")));
+
+int __start_link_set_bufq_strats[0]
+       __attribute__((__section__("link_set_start_bufq_strats")));
+int __link_set_dummy_bufq_strats[0]
+       __attribute__((__section__("link_set_bufq_strats")));
+int __stop_link_set_bufq_strats[0]
+       __attribute__((__section__("link_set_stop_bufq_strats")));
+
+int __start_link_set_domains[0]
+       __attribute__((__section__("link_set_start_domains")));
+int __link_set_dummy_domains[0]
+       __attribute__((__section__("link_set_domains")));
+int __stop_link_set_domains[0]
+       __attribute__((__section__("link_set_stop_domains")));
+
+int __start_link_set_dkwedge_methods[0]
+       __attribute__((__section__("link_set_start_dkwedge_methods")));
+int __link_set_dummy_dkwedge_methods[0]
+       __attribute__((__section__("link_set_dkwedge_methods")));
+int __stop_link_set_dkwedge_methods[0]
+       __attribute__((__section__("link_set_stop_dkwedge_methods")));
+
+int __start_link_set_ieee80211_funcs[0]
+       __attribute__((__section__("link_set_start_ieee80211_funcs")));
+int __link_set_dummy_ieee80211_funcs[0]
+       __attribute__((__section__("link_set_ieee80211_funcs")));
+int __stop_link_set_ieee80211_funcs[0]
+       __attribute__((__section__("link_set_stop_ieee80211_funcs")));
+



Home | Main Index | Thread Index | Old Index