xref: /illumos-gate/usr/src/cmd/sgs/rtld/common/mapfile-vers (revision 56deab0745753336570f5c63c3b5fa565eaab8f1)
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#
23*56deab07SRod Evans# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
245aefb655Srie# Use is subject to license terms.
255aefb655Srie#
267c478bd9Sstevel@tonic-gate# Generic interface definition for usr/src/cmd/sgs/rtld.
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate# For information regarding the establishment of versioned definitions see:
297c478bd9Sstevel@tonic-gate#	The Linker and Libraries Manual (version 2.5 or greater)
307c478bd9Sstevel@tonic-gate# This is part of the Developers Guide in the Answerbook.  Specifically refer
317c478bd9Sstevel@tonic-gate# to Chapter 2 under section "Defining Additional Symbols" through section
327c478bd9Sstevel@tonic-gate# "Reducing Symbol Scope", and Chapter 5 "Versioning".
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gate# For specific OSNET rules for the modification (evolution) of these version
357c478bd9Sstevel@tonic-gate# definitions see:
367c478bd9Sstevel@tonic-gate#	Policy for Shared Library Version Names and Interface Definitions
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate# All symbols in ld.so.1 are private as no-one should bind to these directly.
397c478bd9Sstevel@tonic-gate
40*56deab07SRod EvansSUNWprivate_1.3 {
419a411307Srie	protected:
427257d1b4Sraf		 dladdr;		# Standard dlopen(3x) family
437c478bd9Sstevel@tonic-gate		 dladdr1;
447c478bd9Sstevel@tonic-gate		 dldump;
457c478bd9Sstevel@tonic-gate		 dlclose;
467c478bd9Sstevel@tonic-gate		 dlerror;
477c478bd9Sstevel@tonic-gate		 dlinfo;
487c478bd9Sstevel@tonic-gate		 dlopen;
497c478bd9Sstevel@tonic-gate		 dlmopen;
507c478bd9Sstevel@tonic-gate		 dlsym;
517c478bd9Sstevel@tonic-gate
527257d1b4Sraf		_dladdr;		# these should not exist
537257d1b4Sraf		_dladdr1;
547257d1b4Sraf		_dldump;
557257d1b4Sraf		_dlclose;
567257d1b4Sraf		_dlerror;
577257d1b4Sraf		_dlinfo;
587257d1b4Sraf		_dlopen;
597257d1b4Sraf		_dlmopen;
607257d1b4Sraf		_dlsym;
617257d1b4Sraf
627c478bd9Sstevel@tonic-gate		_ld_libc;		# provides libc initialization
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate		_elf_rtbndr;		# dbx expects to find these
657c478bd9Sstevel@tonic-gate		 elf_rtbndr;
667c478bd9Sstevel@tonic-gate		_rt_boot;		# Provides basic adb symbol offsets
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gate		 rtld_db_dlactivity;	# Required to support librtld_db
697c478bd9Sstevel@tonic-gate		 rtld_db_preinit;
707c478bd9Sstevel@tonic-gate		 rtld_db_postinit;
717c478bd9Sstevel@tonic-gate		 r_debug;
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate		 elf_plt_write;
747c478bd9Sstevel@tonic-gate		 is_so_loaded;
757c478bd9Sstevel@tonic-gate		 lml_main;
767c478bd9Sstevel@tonic-gate		 lookup_sym;
777c478bd9Sstevel@tonic-gate
782926dd2eSrie		 alist_append;		# librtld support
7975e7992aSrie		 ld_entry_cnt;
805aefb655Srie		 dbg_desc;		# Diagnostic support
817c478bd9Sstevel@tonic-gate		 dbg_print;
827c478bd9Sstevel@tonic-gate		 eprintf;		# Error message printing
837c478bd9Sstevel@tonic-gate
847257d1b4Sraf		 dgettext;		# Messaging support
857c478bd9Sstevel@tonic-gate		 strerror;
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate		 calloc;		# Memory management (mapmalloc).
887c478bd9Sstevel@tonic-gate		 free;
897c478bd9Sstevel@tonic-gate		 malloc;
907c478bd9Sstevel@tonic-gate		 realloc;
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gate		_environ;		# PLT tracing getenv() support.
937c478bd9Sstevel@tonic-gate		 environ;
947c478bd9Sstevel@tonic-gate
95a574db85Sraf		 memcpy;		# Some routines are useful for support
96a574db85Sraf		 snprintf;		# libraries such as liblddbg.
97a574db85Sraf		 sprintf;		# Note that some of these functions
98a574db85Sraf		 strcat;		# (like sprintf) may have reduced
99a574db85Sraf		 strcmp;		# functionality over libc, as a simpler
100a574db85Sraf		 strcpy;		# implementation is provided in ld.so.1.
101a574db85Sraf		 strlen;
102a574db85Sraf		 strrchr;
103a574db85Sraf		 strtok_r;
1047c478bd9Sstevel@tonic-gate	      ___errno;
1057c478bd9Sstevel@tonic-gate		 qsort;
1067c478bd9Sstevel@tonic-gate	local:
1077c478bd9Sstevel@tonic-gate		*;
1087c478bd9Sstevel@tonic-gate};
109