xref: /netbsd-src/sys/rump/ldscript.rump (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1/*	$NetBSD: ldscript.rump,v 1.4 2020/03/21 04:48:38 pgoyette Exp $	*/
2
3/*
4 * From binutils 2.19 onwards (in NetBSD) binutils ld PROVIDEs
5 * __start/__stop for orphaned sections.  This means that
6 * __start_link_set_modules/__stop_link_set_modules will no
7 * longer automatically be present in shared libraries.  This
8 * ldscript forces those symbols to be present for all rump
9 * shared lib components.
10 */
11
12SECTIONS
13{
14	link_set_modules :
15	{
16		__start_link_set_modules = .;
17		*(link_set_modules);
18		__stop_link_set_modules = .;
19	}
20
21	link_set_rump_components :
22	{
23		__start_link_set_rump_components = .;
24		*(link_set_rump_components);
25		__stop_link_set_rump_components = .;
26	}
27
28	link_set_sysctl_funcs :
29	{
30		__start_link_set_sysctl_funcs = .;
31		*(link_set_sysctl_funcs);
32		__stop_link_set_sysctl_funcs = .;
33	}
34
35	link_set_rump_components :
36	{
37		__start_link_set_evcnts = .;
38		*(link_set_evcnts);
39		__stop_link_set_evcnts = .;
40	}
41}
42INSERT AFTER .data;
43