xref: /illumos-gate/usr/src/cmd/sgs/rtld/common/mapfile-vers (revision 3d393ee6c37fa10ac512ed6d36109ad616dc7c1a)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# Generic interface definition for usr/src/cmd/sgs/rtld.
27#
28# For information regarding the establishment of versioned definitions see:
29#	The Linker and Libraries Manual (version 2.5 or greater)
30# This is part of the Developers Guide in the Answerbook.  Specifically refer
31# to Chapter 2 under section "Defining Additional Symbols" through section
32# "Reducing Symbol Scope", and Chapter 5 "Versioning".
33#
34# For specific OSNET rules for the modification (evolution) of these version
35# definitions see:
36#	Policy for Shared Library Version Names and Interface Definitions
37#
38# All symbols in ld.so.1 are private as no-one should bind to these directly.
39
40SUNWprivate_1.3 {
41	protected:
42		 dladdr;		# Standard dlopen(3x) family
43		 dladdr1;
44		 dldump;
45		 dlclose;
46		 dlerror;
47		 dlinfo;
48		 dlopen;
49		 dlmopen;
50		 dlsym;
51
52		_dladdr;		# these should not exist
53		_dladdr1;
54		_dldump;
55		_dlclose;
56		_dlerror;
57		_dlinfo;
58		_dlopen;
59		_dlmopen;
60		_dlsym;
61
62		_ld_libc;		# provides libc initialization
63
64		_elf_rtbndr;		# dbx expects to find these
65		 elf_rtbndr;
66		_rt_boot;		# Provides basic adb symbol offsets
67
68		 rtld_db_dlactivity;	# Required to support librtld_db
69		 rtld_db_preinit;
70		 rtld_db_postinit;
71		 r_debug;
72
73		 elf_plt_write;
74		 is_so_loaded;
75		 lml_main;
76		 lookup_sym;
77
78		 alist_append;		# librtld support
79		 ld_entry_cnt;
80		 dbg_desc;		# Diagnostic support
81		 dbg_print;
82		 eprintf;		# Error message printing
83
84		 dgettext;		# Messaging support
85		 strerror;
86
87		 calloc;		# Memory management (mapmalloc).
88		 free;
89		 malloc;
90		 realloc;
91
92		_environ;		# PLT tracing getenv() support.
93		 environ;
94
95		 memcpy;		# Some routines are useful for support
96		 snprintf;		# libraries such as liblddbg.
97		 sprintf;		# Note that some of these functions
98		 strcat;		# (like sprintf) may have reduced
99		 strcmp;		# functionality over libc, as a simpler
100		 strcpy;		# implementation is provided in ld.so.1.
101		 strlen;
102		 strrchr;
103		 strtok_r;
104	      ___errno;
105		 qsort;
106	local:
107		*;
108};
109