xref: /illumos-gate/usr/src/cmd/sgs/rtld/common/mapfile-vers (revision 7257d1b4d25bfac0c802847390e98a464fd787ac)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
55aefb655Srie# Common Development and Distribution License (the "License").
65aefb655Srie# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
215aefb655Srie
225aefb655Srie#
23a574db85Sraf# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
245aefb655Srie# Use is subject to license terms.
255aefb655Srie#
267c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate# Generic interface definition for usr/src/cmd/sgs/rtld.
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate# For information regarding the establishment of versioned definitions see:
317c478bd9Sstevel@tonic-gate#	The Linker and Libraries Manual (version 2.5 or greater)
327c478bd9Sstevel@tonic-gate# This is part of the Developers Guide in the Answerbook.  Specifically refer
337c478bd9Sstevel@tonic-gate# to Chapter 2 under section "Defining Additional Symbols" through section
347c478bd9Sstevel@tonic-gate# "Reducing Symbol Scope", and Chapter 5 "Versioning".
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gate# For specific OSNET rules for the modification (evolution) of these version
377c478bd9Sstevel@tonic-gate# definitions see:
387c478bd9Sstevel@tonic-gate#	Policy for Shared Library Version Names and Interface Definitions
397c478bd9Sstevel@tonic-gate#
407c478bd9Sstevel@tonic-gate# All symbols in ld.so.1 are private as no-one should bind to these directly.
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gateSUNWprivate_1.2 {
439a411307Srie	protected:
44*7257d1b4Sraf		 dladdr;		# Standard dlopen(3x) family
457c478bd9Sstevel@tonic-gate		 dladdr1;
467c478bd9Sstevel@tonic-gate		 dldump;
477c478bd9Sstevel@tonic-gate		 dlclose;
487c478bd9Sstevel@tonic-gate		 dlerror;
497c478bd9Sstevel@tonic-gate		 dlinfo;
507c478bd9Sstevel@tonic-gate		 dlopen;
517c478bd9Sstevel@tonic-gate		 dlmopen;
527c478bd9Sstevel@tonic-gate		 dlsym;
537c478bd9Sstevel@tonic-gate
54*7257d1b4Sraf		_dladdr;		# these should not exist
55*7257d1b4Sraf		_dladdr1;
56*7257d1b4Sraf		_dldump;
57*7257d1b4Sraf		_dlclose;
58*7257d1b4Sraf		_dlerror;
59*7257d1b4Sraf		_dlinfo;
60*7257d1b4Sraf		_dlopen;
61*7257d1b4Sraf		_dlmopen;
62*7257d1b4Sraf		_dlsym;
63*7257d1b4Sraf
647c478bd9Sstevel@tonic-gate		_ld_libc;		# provides libc initialization
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate		_elf_rtbndr;		# dbx expects to find these
677c478bd9Sstevel@tonic-gate		 elf_rtbndr;
687c478bd9Sstevel@tonic-gate		_rt_boot;		# Provides basic adb symbol offsets
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate		 rtld_db_dlactivity;	# Required to support librtld_db
717c478bd9Sstevel@tonic-gate		 rtld_db_preinit;
727c478bd9Sstevel@tonic-gate		 rtld_db_postinit;
737c478bd9Sstevel@tonic-gate		 r_debug;
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate		 elf_plt_write;
767c478bd9Sstevel@tonic-gate		 is_so_loaded;
777c478bd9Sstevel@tonic-gate		 lml_main;
787c478bd9Sstevel@tonic-gate		 lookup_sym;
797c478bd9Sstevel@tonic-gate
802926dd2eSrie		 alist_append;		# librtld support
8175e7992aSrie		 ld_entry_cnt;
825aefb655Srie		 dbg_desc;		# Diagnostic support
837c478bd9Sstevel@tonic-gate		 dbg_print;
847c478bd9Sstevel@tonic-gate		 eprintf;		# Error message printing
857c478bd9Sstevel@tonic-gate
86*7257d1b4Sraf		 dgettext;		# Messaging support
877c478bd9Sstevel@tonic-gate		 strerror;
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate		 calloc;		# Memory management (mapmalloc).
907c478bd9Sstevel@tonic-gate		 dz_fd;
917c478bd9Sstevel@tonic-gate		 free;
927c478bd9Sstevel@tonic-gate		 malloc;
937c478bd9Sstevel@tonic-gate		 realloc;
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate		_environ;		# PLT tracing getenv() support.
967c478bd9Sstevel@tonic-gate		 environ;
977c478bd9Sstevel@tonic-gate
98a574db85Sraf		 memcpy;		# Some routines are useful for support
99a574db85Sraf		 snprintf;		# libraries such as liblddbg.
100a574db85Sraf		 sprintf;		# Note that some of these functions
101a574db85Sraf		 strcat;		# (like sprintf) may have reduced
102a574db85Sraf		 strcmp;		# functionality over libc, as a simpler
103a574db85Sraf		 strcpy;		# implementation is provided in ld.so.1.
104a574db85Sraf		 strlen;
105a574db85Sraf		 strrchr;
106a574db85Sraf		 strtok_r;
1077c478bd9Sstevel@tonic-gate	      ___errno;
1087c478bd9Sstevel@tonic-gate		 qsort;
1097c478bd9Sstevel@tonic-gate	local:
1107c478bd9Sstevel@tonic-gate		*;
1117c478bd9Sstevel@tonic-gate};
112