xref: /titanic_41/usr/src/cmd/sgs/libdl/common/mapfile-vers (revision ba7866cd2cbdf574f47d4e38a1301b90744dd677)
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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
24#
25
26#
27# MAPFILE HEADER START
28#
29# WARNING:  STOP NOW.  DO NOT MODIFY THIS FILE.
30# Object versioning must comply with the rules detailed in
31#
32#	usr/src/lib/README.mapfiles
33#
34# You should not be making modifications here until you've read the most current
35# copy of that file. If you need help, contact a gatekeeper for guidance.
36#
37# MAPFILE HEADER END
38#
39
40$mapfile_version 2
41
42$if _x86 && _ELF64
43$add amd64
44$endif
45
46# Starting with SUNW_1.5 and dlamd64getunwind(), the amd64
47# platform is one version ahead of the other platforms.
48$if amd64
49SYMBOL_VERSION SUNW_1.6 {
50$else
51SYMBOL_VERSION SUNW_1.5 {
52$endif
53	global:
54		dl_iterate_phdr		{ TYPE = FUNCTION };
55$if amd64
56} SUNW_1.5;
57
58SYMBOL_VERSION SUNW_1.5 {
59	global:
60		dlamd64getunwind	{ TYPE = FUNCTION };
61$endif
62} SUNW_1.4;
63
64SYMBOL_VERSION SUNW_1.4 {
65	global:
66		dladdr1			{ TYPE = FUNCTION };
67} SUNW_1.3;
68
69SYMBOL_VERSION SUNW_1.3 {
70	global:
71		SUNW_1.3;
72} SUNW_1.2;
73
74SYMBOL_VERSION SUNW_1.2 {
75	global:
76		SUNW_1.2;
77} SUNW_1.1;
78
79SYMBOL_VERSION SUNW_1.1 {
80	global:
81		dldump			{ TYPE = FUNCTION };
82		dlinfo			{ TYPE = FUNCTION };
83		dlmopen			{ TYPE = FUNCTION };
84} SUNW_0.8;
85
86SYMBOL_VERSION SUNW_0.8 {
87	global:
88		dladdr			{ TYPE = FUNCTION };
89} SUNW_0.7;
90
91
92#
93# For most platforms, SUNW_0.7 contains dlclose, dlerror, dlopen, and dlsym.
94# For ABI reasons, 32-bit sparc puts them in SISCD_2.3 instead, and SUNW_0.7
95# exists solely so that SUNW_0.8 can inherit from it on all platforms.
96#
97SYMBOL_VERSION SUNW_0.7 {
98	global:
99$if _sparc && _ELF32
100		SUNW_0.7;
101} SISCD_2.3;
102
103SYMBOL_VERSION SISCD_2.3 {
104	global:
105$endif
106		dlclose			{ TYPE = FUNCTION };
107		dlerror			{ TYPE = FUNCTION };
108		dlopen			{ TYPE = FUNCTION };
109		dlsym			{ TYPE = FUNCTION };
110};
111
112
113SYMBOL_VERSION SUNWprivate_1.1 {
114	global:
115		_ld_libc		{ TYPE = FUNCTION };
116		_dlinfo			{ TYPE = FUNCTION };
117		_dldump			{ TYPE = FUNCTION };
118		_dlmopen		{ TYPE = FUNCTION };
119		_dlopen			{ TYPE = FUNCTION };
120		_dlerror		{ TYPE = FUNCTION };
121		_dlsym			{ TYPE = FUNCTION };
122		_dlclose		{ TYPE = FUNCTION };
123		_dladdr			{ TYPE = FUNCTION };
124		_dladdr1		{ TYPE = FUNCTION };
125
126$if amd64
127		_dlamd64getunwind	{ TYPE = FUNCTION };
128$endif
129
130	local:
131		*;
132};
133