summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/agents/snmp/agent/agent-mapfile-vers9
-rw-r--r--usr/src/cmd/agents/snmp/snmplib/snmp-mapfile-vers9
-rw-r--r--usr/src/cmd/agents/snmp/snmprelayd/mapfile-intf7
-rw-r--r--usr/src/cmd/captoinfo/mapfile-intf11
-rw-r--r--usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-minconn15
-rw-r--r--usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-passprompt23
-rw-r--r--usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-pppoe85
-rw-r--r--usr/src/cmd/csh/mapfile-intf11
-rw-r--r--usr/src/cmd/devfsadm/mapfile-vers50
-rw-r--r--usr/src/cmd/expr/mapfile-intf13
-rw-r--r--usr/src/cmd/fm/fmd/common/fmd_api.map195
-rw-r--r--usr/src/cmd/fm/fmd/common/fmd_fmri.map36
-rw-r--r--usr/src/cmd/fmli/xx/mapfile-intf9
-rw-r--r--usr/src/cmd/fs.d/udfs/fsdb/mapfile-intf7
-rw-r--r--usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers21
-rw-r--r--usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon7
-rw-r--r--usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus7
-rw-r--r--usr/src/cmd/fwflash/plugins/vendor/mapfile-vers21
-rw-r--r--usr/src/cmd/geniconvtbl/mapfile6
-rw-r--r--usr/src/cmd/gss/gssd/mapfile-intf7
-rw-r--r--usr/src/cmd/idmap/idmapd/mapfile-intf7
-rw-r--r--usr/src/cmd/infocmp/mapfile-intf10
-rw-r--r--usr/src/cmd/krb5/kadmin/gui/native/mapfile-vers7
-rw-r--r--usr/src/cmd/krb5/kwarn/mapfile-intf7
-rw-r--r--usr/src/cmd/lp/lib/papi/mapfile199
-rw-r--r--usr/src/cmd/mdb/common/kmdb/mapfile_skel9
-rw-r--r--usr/src/cmd/mdb/common/libstandctf/mapfile7
-rw-r--r--usr/src/cmd/mdb/common/modules/conf/mapfile7
-rw-r--r--usr/src/cmd/mdb/common/modules/conf/mapfile-extern243
-rw-r--r--usr/src/cmd/picl/plugins/lib/picld_pluginutil/mapfile-vers7
-rw-r--r--usr/src/cmd/pools/poold/libjkstat/mapfile-vers7
-rw-r--r--usr/src/cmd/pools/poold/libjlgrp/mapfile-vers7
-rw-r--r--usr/src/cmd/pools/poold/libjpool/mapfile-vers7
-rw-r--r--usr/src/cmd/pools/poold/libjsyslog/mapfile-vers7
-rw-r--r--usr/src/cmd/rcm_daemon/common/mapfile-intf9
-rw-r--r--usr/src/cmd/sendmail/src/mapfile-intf7
-rw-r--r--usr/src/cmd/sgs/elfedit/common/mapfile-vers9
-rw-r--r--usr/src/cmd/sgs/elfedit/modules/common/mapfile-vers201
-rw-r--r--usr/src/cmd/sgs/ld/common/mapfile-intf8
-rw-r--r--usr/src/cmd/sgs/ldprof/Makefile.com5
-rw-r--r--usr/src/cmd/sgs/ldprof/amd64/mapfile-vers47
-rw-r--r--usr/src/cmd/sgs/ldprof/common/mapfile-vers (renamed from usr/src/cmd/sgs/ldprof/sparc/mapfile-vers)32
-rw-r--r--usr/src/cmd/sgs/ldprof/i386/mapfile-vers47
-rw-r--r--usr/src/cmd/sgs/ldprof/sparcv9/mapfile-vers47
-rw-r--r--usr/src/cmd/sgs/lex/common/mapfile-vers7
-rw-r--r--usr/src/cmd/sgs/libcrle/common/mapfile-vers7
-rw-r--r--usr/src/cmd/sgs/libdl/Makefile.com4
-rw-r--r--usr/src/cmd/sgs/libdl/amd64/mapfile-vers65
-rw-r--r--usr/src/cmd/sgs/libdl/common/mapfile-vers115
-rw-r--r--usr/src/cmd/sgs/libdl/i386/mapfile-vers55
-rw-r--r--usr/src/cmd/sgs/libdl/sparc/mapfile-vers60
-rw-r--r--usr/src/cmd/sgs/libdl/sparcv9/mapfile-vers55
-rw-r--r--usr/src/cmd/sgs/libelf/Makefile.com5
-rw-r--r--usr/src/cmd/sgs/libelf/common/mapfile-3244
-rw-r--r--usr/src/cmd/sgs/libelf/common/mapfile-vers (renamed from usr/src/cmd/sgs/libelf/common/mapfile-common)24
-rw-r--r--usr/src/cmd/sgs/libelf/i386/Makefile6
-rw-r--r--usr/src/cmd/sgs/libelf/sparc/Makefile6
-rw-r--r--usr/src/cmd/sgs/libld/common/mapfile-vers15
-rw-r--r--usr/src/cmd/sgs/liblddbg/common/mapfile-vers14
-rw-r--r--usr/src/cmd/sgs/libldmake/common/mapfile-vers7
-rw-r--r--usr/src/cmd/sgs/libldstab/amd64/Makefile12
-rw-r--r--usr/src/cmd/sgs/libldstab/common/mapfile-6443
-rw-r--r--usr/src/cmd/sgs/libldstab/common/mapfile-vers10
-rw-r--r--usr/src/cmd/sgs/libldstab/i386/Makefile12
-rw-r--r--usr/src/cmd/sgs/libldstab/sparc/Makefile12
-rw-r--r--usr/src/cmd/sgs/libldstab/sparcv9/Makefile12
-rw-r--r--usr/src/cmd/sgs/librtld/amd64/Makefile6
-rw-r--r--usr/src/cmd/sgs/librtld/common/mapfile-32-vers45
-rw-r--r--usr/src/cmd/sgs/librtld/common/mapfile-64-vers45
-rw-r--r--usr/src/cmd/sgs/librtld/common/mapfile-vers38
-rw-r--r--usr/src/cmd/sgs/librtld/i386/Makefile6
-rw-r--r--usr/src/cmd/sgs/librtld/sparc/Makefile6
-rw-r--r--usr/src/cmd/sgs/librtld/sparcv9/Makefile6
-rw-r--r--usr/src/cmd/sgs/librtld_db/amd64/Makefile6
-rw-r--r--usr/src/cmd/sgs/librtld_db/common/mapfile-vers32
-rw-r--r--usr/src/cmd/sgs/librtld_db/common/mapfile-vers.6447
-rw-r--r--usr/src/cmd/sgs/librtld_db/sparcv9/Makefile6
-rw-r--r--usr/src/cmd/sgs/link_audit/Makefile.com13
-rw-r--r--usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-bindings46
-rw-r--r--usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-perfcnt47
-rw-r--r--usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-truss48
-rw-r--r--usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-who47
-rw-r--r--usr/src/cmd/sgs/link_audit/common/mapfile-vers-bindings (renamed from usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-bindings)30
-rw-r--r--usr/src/cmd/sgs/link_audit/common/mapfile-vers-perfcnt (renamed from usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-perfcnt)43
-rw-r--r--usr/src/cmd/sgs/link_audit/common/mapfile-vers-symbindrep (renamed from usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-symbindrep)17
-rw-r--r--usr/src/cmd/sgs/link_audit/common/mapfile-vers-truss (renamed from usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-truss)44
-rw-r--r--usr/src/cmd/sgs/link_audit/common/mapfile-vers-who (renamed from usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-who)33
-rw-r--r--usr/src/cmd/sgs/link_audit/i386/mapfile-vers-bindings46
-rw-r--r--usr/src/cmd/sgs/link_audit/i386/mapfile-vers-perfcnt47
-rw-r--r--usr/src/cmd/sgs/link_audit/i386/mapfile-vers-symbindrep47
-rw-r--r--usr/src/cmd/sgs/link_audit/i386/mapfile-vers-truss48
-rw-r--r--usr/src/cmd/sgs/link_audit/i386/mapfile-vers-who47
-rw-r--r--usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-perfcnt47
-rw-r--r--usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-symbindrep47
-rw-r--r--usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-truss48
-rw-r--r--usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-bindings46
-rw-r--r--usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-symbindrep47
-rw-r--r--usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-who47
-rw-r--r--usr/src/cmd/sgs/packages/common/SUNWonld-README1
-rw-r--r--usr/src/cmd/sgs/rtld/Makefile11
-rw-r--r--usr/src/cmd/sgs/rtld/Makefile.com5
-rw-r--r--usr/src/cmd/sgs/rtld/amd64/Makefile7
-rw-r--r--usr/src/cmd/sgs/rtld/common/mapfile-32-vers45
-rw-r--r--usr/src/cmd/sgs/rtld/common/mapfile-64-vers45
-rw-r--r--usr/src/cmd/sgs/rtld/common/mapfile-order-devpro26
-rw-r--r--usr/src/cmd/sgs/rtld/common/mapfile-order-gcc26
-rw-r--r--usr/src/cmd/sgs/rtld/common/mapfile-vers25
-rw-r--r--usr/src/cmd/sgs/rtld/i386/Makefile5
-rw-r--r--usr/src/cmd/sgs/rtld/mdbmod/common/mapfile33
-rw-r--r--usr/src/cmd/sgs/rtld/sparc/Makefile5
-rw-r--r--usr/src/cmd/sgs/rtld/sparcv9/Makefile5
-rw-r--r--usr/src/cmd/sgs/yacc/common/mapfile-vers7
-rw-r--r--usr/src/cmd/sh/mapfile-intf7
-rw-r--r--usr/src/cmd/ssh/sshd/mapfile-intf8
-rw-r--r--usr/src/cmd/syseventd/modules/mapfile-extern15
-rw-r--r--usr/src/cmd/tcpd/mapfile-intf-tcpdchk31
-rw-r--r--usr/src/cmd/tcpd/mapfile-intf-tcpdmatch23
-rw-r--r--usr/src/cmd/tcpd/mapfile-intf-tryfrom16
-rw-r--r--usr/src/cmd/tic/mapfile-intf9
-rw-r--r--usr/src/cmd/tplot/mapfile-intf13
-rw-r--r--usr/src/cmd/wbem/provider/c/filesystems/wbem_nfs/lib/mapfile8
-rw-r--r--usr/src/cmd/wbem/provider/c/wbem_disk/lib/mapfile8
-rw-r--r--usr/src/cmd/ypcmd/mapfile-intf9
-rw-r--r--usr/src/cmd/ypcmd/yppasswd/mapfile-intf39
124 files changed, 1320 insertions, 2322 deletions
diff --git a/usr/src/cmd/agents/snmp/agent/agent-mapfile-vers b/usr/src/cmd/agents/snmp/agent/agent-mapfile-vers
index e47f0bfbd4..1951c0946c 100644
--- a/usr/src/cmd/agents/snmp/agent/agent-mapfile-vers
+++ b/usr/src/cmd/agents/snmp/agent/agent-mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,7 +35,9 @@
# MAPFILE HEADER END
#
-SUNW_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNW_1.1 {
global:
SSAMain;
SSARegSubagent;
@@ -58,7 +59,7 @@ SUNW_1.1 {
*;
};
-SUNWprivate_1.1 {
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
load_enterprise_oid;
delete_manager_list;
diff --git a/usr/src/cmd/agents/snmp/snmplib/snmp-mapfile-vers b/usr/src/cmd/agents/snmp/snmplib/snmp-mapfile-vers
index 56d6cdf3fd..c8dfabd246 100644
--- a/usr/src/cmd/agents/snmp/snmplib/snmp-mapfile-vers
+++ b/usr/src/cmd/agents/snmp/snmplib/snmp-mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,7 +35,9 @@
# MAPFILE HEADER END
#
-SUNW_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNW_1.1 {
global:
SSAStringZero;
SSAStringInit;
@@ -55,7 +56,7 @@ SUNW_1.1 {
*;
};
-SUNWprivate_1.1 {
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
address_string;
delete_trap_destinator_list;
diff --git a/usr/src/cmd/agents/snmp/snmprelayd/mapfile-intf b/usr/src/cmd/agents/snmp/snmprelayd/mapfile-intf
index e43ba09897..e8f1ecfd71 100644
--- a/usr/src/cmd/agents/snmp/snmprelayd/mapfile-intf
+++ b/usr/src/cmd/agents/snmp/snmprelayd/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,10 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# snmpdx provides a couple of libssagent.so.1 functions.
-{
+SYMBOL_SCOPE {
global:
default_config_file;
default_error_file;
diff --git a/usr/src/cmd/captoinfo/mapfile-intf b/usr/src/cmd/captoinfo/mapfile-intf
index 7be83fc87a..66088bd323 100644
--- a/usr/src/cmd/captoinfo/mapfile-intf
+++ b/usr/src/cmd/captoinfo/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,9 +37,11 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# captoinfo interposes on cpr() and progname[].
-{
+SYMBOL_SCOPE {
global:
- cpr = INTERPOSE;
- progname = INTERPOSE;
+ cpr { FLAGS = INTERPOSE };
+ progname { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-minconn b/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-minconn
index eae4b1c6e8..e682b4f2d8 100644
--- a/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-minconn
+++ b/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-minconn
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# External declarations - used to suppress -zdefs errors.
@@ -18,9 +17,11 @@
# MAPFILE HEADER END
#
-{
- add_options = FUNCTION extern; # Provided by pppd.
- idle_time_hook = DATA extern; # " "
- idle_time_limit = DATA extern; # " "
- info = FUNCTION extern; # " "
+$mapfile_version 2
+
+SYMBOL_SCOPE {
+ add_options { TYPE = FUNCTION; FLAGS = extern }; # From pppd
+ idle_time_hook { TYPE = DATA; FLAGS = extern }; # " "
+ idle_time_limit { TYPE = DATA; FLAGS = extern }; # " "
+ info { TYPE = FUNCTION; FLAGS = extern }; # " "
};
diff --git a/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-passprompt b/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-passprompt
index 213e84c9d2..d487280955 100644
--- a/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-passprompt
+++ b/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-passprompt
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# External declarations - used to suppress -zdefs errors.
@@ -18,13 +17,15 @@
# MAPFILE HEADER END
#
-{
- add_options = FUNCTION extern; # Provided by pppd.
- detached = DATA extern; # " "
- error = FUNCTION extern; # " "
- pap_passwd_hook = DATA extern; # " "
- remote_name = DATA extern; # " "
- slprintf = FUNCTION extern; # " "
- sys_close = FUNCTION extern; # " "
- warn = FUNCTION extern; # " "
+$mapfile_version 2
+
+SYMBOL_SCOPE {
+ add_options { TYPE = FUNCTION; FLAGS = extern }; # From pppd
+ detached { TYPE = DATA; FLAGS = extern }; # " "
+ error { TYPE = FUNCTION; FLAGS = extern }; # " "
+ pap_passwd_hook { TYPE = DATA; FLAGS = extern }; # " "
+ remote_name { TYPE = DATA; FLAGS = extern }; # " "
+ slprintf { TYPE = FUNCTION; FLAGS = extern }; # " "
+ sys_close { TYPE = FUNCTION; FLAGS = extern }; # " "
+ warn { TYPE = FUNCTION; FLAGS = extern }; # " "
};
diff --git a/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-pppoe b/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-pppoe
index 9b697bc325..4a8abf3d30 100644
--- a/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-pppoe
+++ b/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/mapfile-pppoe
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -40,44 +39,46 @@
# External declarations - used to suppress -zdefs errors.
-{
- script_setenv = FUNCTION extern; # Provided by pppd.
- script_getenv = FUNCTION extern; # " "
- slprintf = FUNCTION extern; # " "
- option_error = FUNCTION extern; # " "
- warn = FUNCTION extern; # " "
- fatal = FUNCTION extern; # " "
- dbglog = FUNCTION extern; # " "
- absmax_mtu = DATA extern; # " "
- absmax_mru = DATA extern; # " "
- updown_script_hook = DATA extern; # " "
- devnam_info = DATA extern; # " "
- check_options_hook = DATA extern; # " "
- device_pipe_hook = DATA extern; # " "
- already_ppp = DATA extern; # " "
- devnam = DATA extern; # " "
- sys_read_packet_hook = DATA extern; # " "
- ifname = DATA extern; # " "
- fclose = FUNCTION extern; # " "
- ioctl = FUNCTION extern; # " "
- fdopen = FUNCTION extern; # " "
- close = FUNCTION extern; # " "
- open = FUNCTION extern; # " "
- strcmp = FUNCTION extern; # " "
- fgets = FUNCTION extern; # " "
- strlen = FUNCTION extern; # " "
- seteuid = FUNCTION extern; # " "
- ether_ntoa = FUNCTION extern; # " "
- ___errno = FUNCTION extern; # " "
- strdup = FUNCTION extern; # " "
- run_program = FUNCTION extern; # " "
- malloc = FUNCTION extern; # " "
- strrchr = FUNCTION extern; # " "
- strchr = FUNCTION extern; # " "
- error = FUNCTION extern; # " "
- free = FUNCTION extern; # " "
- strcpy = FUNCTION extern; # " "
- memcpy = FUNCTION extern; # " "
- script_unsetenv = FUNCTION extern; # " "
- ntohs = FUNCTION extern; # " "
+$mapfile_version 2
+
+SYMBOL_SCOPE {
+ script_setenv { TYPE = FUNCTION; FLAGS = extern }; # From pppd
+ script_getenv { TYPE = FUNCTION; FLAGS = extern }; # " "
+ slprintf { TYPE = FUNCTION; FLAGS = extern }; # " "
+ option_error { TYPE = FUNCTION; FLAGS = extern }; # " "
+ warn { TYPE = FUNCTION; FLAGS = extern }; # " "
+ fatal { TYPE = FUNCTION; FLAGS = extern }; # " "
+ dbglog { TYPE = FUNCTION; FLAGS = extern }; # " "
+ absmax_mtu { TYPE = DATA; FLAGS = extern }; # " "
+ absmax_mru { TYPE = DATA; FLAGS = extern }; # " "
+ updown_script_hook { TYPE = DATA; FLAGS = extern }; # " "
+ devnam_info { TYPE = DATA; FLAGS = extern }; # " "
+ check_options_hook { TYPE = DATA; FLAGS = extern }; # " "
+ device_pipe_hook { TYPE = DATA; FLAGS = extern }; # " "
+ already_ppp { TYPE = DATA; FLAGS = extern }; # " "
+ devnam { TYPE = DATA; FLAGS = extern }; # " "
+ sys_read_packet_hook { TYPE = DATA; FLAGS = extern }; # " "
+ ifname { TYPE = DATA; FLAGS = extern }; # " "
+ fclose { TYPE = FUNCTION; FLAGS = extern }; # " "
+ ioctl { TYPE = FUNCTION; FLAGS = extern }; # " "
+ fdopen { TYPE = FUNCTION; FLAGS = extern }; # " "
+ close { TYPE = FUNCTION; FLAGS = extern }; # " "
+ open { TYPE = FUNCTION; FLAGS = extern }; # " "
+ strcmp { TYPE = FUNCTION; FLAGS = extern }; # " "
+ fgets { TYPE = FUNCTION; FLAGS = extern }; # " "
+ strlen { TYPE = FUNCTION; FLAGS = extern }; # " "
+ seteuid { TYPE = FUNCTION; FLAGS = extern }; # " "
+ ether_ntoa { TYPE = FUNCTION; FLAGS = extern }; # " "
+ ___errno { TYPE = FUNCTION; FLAGS = extern }; # " "
+ strdup { TYPE = FUNCTION; FLAGS = extern }; # " "
+ run_program { TYPE = FUNCTION; FLAGS = extern }; # " "
+ malloc { TYPE = FUNCTION; FLAGS = extern }; # " "
+ strrchr { TYPE = FUNCTION; FLAGS = extern }; # " "
+ strchr { TYPE = FUNCTION; FLAGS = extern }; # " "
+ error { TYPE = FUNCTION; FLAGS = extern }; # " "
+ free { TYPE = FUNCTION; FLAGS = extern }; # " "
+ strcpy { TYPE = FUNCTION; FLAGS = extern }; # " "
+ memcpy { TYPE = FUNCTION; FLAGS = extern }; # " "
+ script_unsetenv { TYPE = FUNCTION; FLAGS = extern }; # " "
+ ntohs { TYPE = FUNCTION; FLAGS = extern }; # " "
};
diff --git a/usr/src/cmd/csh/mapfile-intf b/usr/src/cmd/csh/mapfile-intf
index 365537e94f..d66cd1f53e 100644
--- a/usr/src/cmd/csh/mapfile-intf
+++ b/usr/src/cmd/csh/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,9 +37,11 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# csh interposes on a couple of libc functions (printf and signal).
-{
+SYMBOL_SCOPE {
global:
- printf = INTERPOSE;
- signal = INTERPOSE;
+ printf { FLAGS = INTERPOSE };
+ signal { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/devfsadm/mapfile-vers b/usr/src/cmd/devfsadm/mapfile-vers
index 10a815f3ca..9c30e217de 100644
--- a/usr/src/cmd/devfsadm/mapfile-vers
+++ b/usr/src/cmd/devfsadm/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -35,30 +34,31 @@
#
# MAPFILE HEADER END
#
+$mapfile_version 2
# External interface requirements
-{
+SYMBOL_SCOPE {
global:
- devfsadm_devlink_cache = EXTERN;
- devfsadm_enumerate_char_start = EXTERN;
- devfsadm_enumerate_int = EXTERN;
- devfsadm_errprint = EXTERN;
- devfsadm_free_dev_names = EXTERN;
- devfsadm_have_reserved = EXTERN;
- devfsadm_is_reserved = EXTERN;
- devfsadm_link_valid = EXTERN;
- devfsadm_lookup_dev_names = EXTERN;
- devfsadm_mklink = EXTERN;
- devfsadm_noupdate = EXTERN;
- devfsadm_print = EXTERN;
- devfsadm_read_link = EXTERN;
- devfsadm_reserve_id_cache = EXTERN;
- devfsadm_rm_all = EXTERN;
- devfsadm_rm_link = EXTERN;
- devfsadm_rm_stale_links = EXTERN;
- devfsadm_root_path = EXTERN;
- devfsadm_secondary_link = EXTERN;
- disk_enumerate_int = EXTERN;
- s_strdup = EXTERN;
- system_labeled = EXTERN;
+ devfsadm_devlink_cache { FLAGS = EXTERN };
+ devfsadm_enumerate_char_start { FLAGS = EXTERN };
+ devfsadm_enumerate_int { FLAGS = EXTERN };
+ devfsadm_errprint { FLAGS = EXTERN };
+ devfsadm_free_dev_names { FLAGS = EXTERN };
+ devfsadm_have_reserved { FLAGS = EXTERN };
+ devfsadm_is_reserved { FLAGS = EXTERN };
+ devfsadm_link_valid { FLAGS = EXTERN };
+ devfsadm_lookup_dev_names { FLAGS = EXTERN };
+ devfsadm_mklink { FLAGS = EXTERN };
+ devfsadm_noupdate { FLAGS = EXTERN };
+ devfsadm_print { FLAGS = EXTERN };
+ devfsadm_read_link { FLAGS = EXTERN };
+ devfsadm_reserve_id_cache { FLAGS = EXTERN };
+ devfsadm_rm_all { FLAGS = EXTERN };
+ devfsadm_rm_link { FLAGS = EXTERN };
+ devfsadm_rm_stale_links { FLAGS = EXTERN };
+ devfsadm_root_path { FLAGS = EXTERN };
+ devfsadm_secondary_link { FLAGS = EXTERN };
+ disk_enumerate_int { FLAGS = EXTERN };
+ s_strdup { FLAGS = EXTERN };
+ system_labeled { FLAGS = EXTERN };
};
diff --git a/usr/src/cmd/expr/mapfile-intf b/usr/src/cmd/expr/mapfile-intf
index 695d09e221..1a481dd932 100644
--- a/usr/src/cmd/expr/mapfile-intf
+++ b/usr/src/cmd/expr/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,11 +37,13 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# expr provides its own versions of advance, compile, and step - define
# these explicitly as interposers.
-{
+SYMBOL_SCOPE {
global:
- advance = INTERPOSE;
- compile = INTERPOSE;
- step = INTERPOSE;
+ advance { FLAGS = INTERPOSE };
+ compile { FLAGS = INTERPOSE };
+ step { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/fm/fmd/common/fmd_api.map b/usr/src/cmd/fm/fmd/common/fmd_api.map
index 9c7314fca7..1280513880 100644
--- a/usr/src/cmd/fm/fmd/common/fmd_api.map
+++ b/usr/src/cmd/fm/fmd/common/fmd_api.map
@@ -18,114 +18,115 @@
#
# CDDL HEADER END
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
-{
- fmd_buf_create = FUNCTION extern;
- fmd_buf_destroy = FUNCTION extern;
- fmd_buf_read = FUNCTION extern;
- fmd_buf_size = FUNCTION extern;
- fmd_buf_write = FUNCTION extern;
+$mapfile_version 2
- fmd_case_add_ereport = FUNCTION extern;
- fmd_case_add_serd = FUNCTION extern;
- fmd_case_add_suspect = FUNCTION extern;
- fmd_case_close = FUNCTION extern;
- fmd_case_closed = FUNCTION extern;
- fmd_case_getprincipal = FUNCTION extern;
- fmd_case_getspecific = FUNCTION extern;
- fmd_case_next = FUNCTION extern;
- fmd_case_open = FUNCTION extern;
- fmd_case_prev = FUNCTION extern;
- fmd_case_reset = FUNCTION extern;
- fmd_case_setprincipal = FUNCTION extern;
- fmd_case_setspecific = FUNCTION extern;
- fmd_case_solve = FUNCTION extern;
- fmd_case_solved = FUNCTION extern;
- fmd_case_uuclose = FUNCTION extern;
- fmd_case_uuclosed = FUNCTION extern;
- fmd_case_uuid = FUNCTION extern;
- fmd_case_uulookup = FUNCTION extern;
- fmd_case_uuresolved = FUNCTION extern;
+SYMBOL_SCOPE {
+ fmd_buf_create { TYPE = function; FLAGS = extern };
+ fmd_buf_destroy { TYPE = function; FLAGS = extern };
+ fmd_buf_read { TYPE = function; FLAGS = extern };
+ fmd_buf_size { TYPE = function; FLAGS = extern };
+ fmd_buf_write { TYPE = function; FLAGS = extern };
- fmd_event_local = FUNCTION extern;
- fmd_event_ena_create = FUNCTION extern;
+ fmd_case_add_ereport { TYPE = function; FLAGS = extern };
+ fmd_case_add_serd { TYPE = function; FLAGS = extern };
+ fmd_case_add_suspect { TYPE = function; FLAGS = extern };
+ fmd_case_close { TYPE = function; FLAGS = extern };
+ fmd_case_closed { TYPE = function; FLAGS = extern };
+ fmd_case_getprincipal { TYPE = function; FLAGS = extern };
+ fmd_case_getspecific { TYPE = function; FLAGS = extern };
+ fmd_case_next { TYPE = function; FLAGS = extern };
+ fmd_case_open { TYPE = function; FLAGS = extern };
+ fmd_case_prev { TYPE = function; FLAGS = extern };
+ fmd_case_reset { TYPE = function; FLAGS = extern };
+ fmd_case_setprincipal { TYPE = function; FLAGS = extern };
+ fmd_case_setspecific { TYPE = function; FLAGS = extern };
+ fmd_case_solve { TYPE = function; FLAGS = extern };
+ fmd_case_solved { TYPE = function; FLAGS = extern };
+ fmd_case_uuclose { TYPE = function; FLAGS = extern };
+ fmd_case_uuclosed { TYPE = function; FLAGS = extern };
+ fmd_case_uuid { TYPE = function; FLAGS = extern };
+ fmd_case_uulookup { TYPE = function; FLAGS = extern };
+ fmd_case_uuresolved { TYPE = function; FLAGS = extern };
- fmd_hdl_abort = FUNCTION extern;
- fmd_hdl_alloc = FUNCTION extern;
- fmd_hdl_debug = FUNCTION extern;
- fmd_hdl_error = FUNCTION extern;
- fmd_hdl_free = FUNCTION extern;
- fmd_hdl_getspecific = FUNCTION extern;
- fmd_hdl_opendict = FUNCTION extern;
- fmd_hdl_register = FUNCTION extern;
- fmd_hdl_setspecific = FUNCTION extern;
- fmd_hdl_strdup = FUNCTION extern;
- fmd_hdl_strfree = FUNCTION extern;
- fmd_hdl_subscribe = FUNCTION extern;
- fmd_hdl_topo_hold = FUNCTION extern;
- fmd_hdl_topo_rele = FUNCTION extern;
- fmd_hdl_unregister = FUNCTION extern;
- fmd_hdl_unsubscribe = FUNCTION extern;
- fmd_hdl_vabort = FUNCTION extern;
- fmd_hdl_vdebug = FUNCTION extern;
- fmd_hdl_verror = FUNCTION extern;
- fmd_hdl_zalloc = FUNCTION extern;
+ fmd_event_local { TYPE = function; FLAGS = extern };
+ fmd_event_ena_create { TYPE = function; FLAGS = extern };
- fmd_nvl_alloc = FUNCTION extern;
- fmd_nvl_class_match = FUNCTION extern;
- fmd_nvl_create_fault = FUNCTION extern;
- fmd_nvl_dup = FUNCTION extern;
- fmd_nvl_fmri_expand = FUNCTION extern;
- fmd_nvl_fmri_present = FUNCTION extern;
- fmd_nvl_fmri_replaced = FUNCTION extern;
- fmd_nvl_fmri_unusable = FUNCTION extern;
- fmd_nvl_fmri_retire = FUNCTION extern;
- fmd_nvl_fmri_unretire = FUNCTION extern;
- fmd_nvl_fmri_service_state = FUNCTION extern;
- fmd_nvl_fmri_has_fault = FUNCTION extern;
- fmd_nvl_fmri_contains = FUNCTION extern;
- fmd_nvl_fmri_translate = FUNCTION extern;
+ fmd_hdl_abort { TYPE = function; FLAGS = extern };
+ fmd_hdl_alloc { TYPE = function; FLAGS = extern };
+ fmd_hdl_debug { TYPE = function; FLAGS = extern };
+ fmd_hdl_error { TYPE = function; FLAGS = extern };
+ fmd_hdl_free { TYPE = function; FLAGS = extern };
+ fmd_hdl_getspecific { TYPE = function; FLAGS = extern };
+ fmd_hdl_opendict { TYPE = function; FLAGS = extern };
+ fmd_hdl_register { TYPE = function; FLAGS = extern };
+ fmd_hdl_setspecific { TYPE = function; FLAGS = extern };
+ fmd_hdl_strdup { TYPE = function; FLAGS = extern };
+ fmd_hdl_strfree { TYPE = function; FLAGS = extern };
+ fmd_hdl_subscribe { TYPE = function; FLAGS = extern };
+ fmd_hdl_topo_hold { TYPE = function; FLAGS = extern };
+ fmd_hdl_topo_rele { TYPE = function; FLAGS = extern };
+ fmd_hdl_unregister { TYPE = function; FLAGS = extern };
+ fmd_hdl_unsubscribe { TYPE = function; FLAGS = extern };
+ fmd_hdl_vabort { TYPE = function; FLAGS = extern };
+ fmd_hdl_vdebug { TYPE = function; FLAGS = extern };
+ fmd_hdl_verror { TYPE = function; FLAGS = extern };
+ fmd_hdl_zalloc { TYPE = function; FLAGS = extern };
- fmd_prop_free_string = FUNCTION extern;
- fmd_prop_get_int32 = FUNCTION extern;
- fmd_prop_get_int64 = FUNCTION extern;
- fmd_prop_get_string = FUNCTION extern;
+ fmd_nvl_alloc { TYPE = function; FLAGS = extern };
+ fmd_nvl_class_match { TYPE = function; FLAGS = extern };
+ fmd_nvl_create_fault { TYPE = function; FLAGS = extern };
+ fmd_nvl_dup { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_expand { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_present { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_replaced { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_unusable { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_retire { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_unretire { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_service_state { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_has_fault { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_contains { TYPE = function; FLAGS = extern };
+ fmd_nvl_fmri_translate { TYPE = function; FLAGS = extern };
- fmd_repair_fru = FUNCTION extern;
- fmd_repair_asru = FUNCTION extern;
+ fmd_prop_free_string { TYPE = function; FLAGS = extern };
+ fmd_prop_get_int32 { TYPE = function; FLAGS = extern };
+ fmd_prop_get_int64 { TYPE = function; FLAGS = extern };
+ fmd_prop_get_string { TYPE = function; FLAGS = extern };
- fmd_serd_create = FUNCTION extern;
- fmd_serd_destroy = FUNCTION extern;
- fmd_serd_exists = FUNCTION extern;
- fmd_serd_fired = FUNCTION extern;
- fmd_serd_reset = FUNCTION extern;
- fmd_serd_record = FUNCTION extern;
- fmd_serd_empty = FUNCTION extern;
+ fmd_repair_fru { TYPE = function; FLAGS = extern };
+ fmd_repair_asru { TYPE = function; FLAGS = extern };
- fmd_stat_create = FUNCTION extern;
- fmd_stat_destroy = FUNCTION extern;
- fmd_stat_setstr = FUNCTION extern;
+ fmd_serd_create { TYPE = function; FLAGS = extern };
+ fmd_serd_destroy { TYPE = function; FLAGS = extern };
+ fmd_serd_exists { TYPE = function; FLAGS = extern };
+ fmd_serd_fired { TYPE = function; FLAGS = extern };
+ fmd_serd_reset { TYPE = function; FLAGS = extern };
+ fmd_serd_record { TYPE = function; FLAGS = extern };
+ fmd_serd_empty { TYPE = function; FLAGS = extern };
- fmd_thr_create = FUNCTION extern;
- fmd_thr_destroy = FUNCTION extern;
- fmd_thr_signal = FUNCTION extern;
- fmd_thr_checkpoint = FUNCTION extern;
+ fmd_stat_create { TYPE = function; FLAGS = extern };
+ fmd_stat_destroy { TYPE = function; FLAGS = extern };
+ fmd_stat_setstr { TYPE = function; FLAGS = extern };
- fmd_timer_install = FUNCTION extern;
- fmd_timer_remove = FUNCTION extern;
+ fmd_thr_create { TYPE = function; FLAGS = extern };
+ fmd_thr_destroy { TYPE = function; FLAGS = extern };
+ fmd_thr_signal { TYPE = function; FLAGS = extern };
+ fmd_thr_checkpoint { TYPE = function; FLAGS = extern };
- fmd_xprt_close = FUNCTION extern;
- fmd_xprt_error = FUNCTION extern;
- fmd_xprt_getspecific = FUNCTION extern;
- fmd_xprt_log = FUNCTION extern;
- fmd_xprt_open = FUNCTION extern;
- fmd_xprt_post = FUNCTION extern;
- fmd_xprt_resume = FUNCTION extern;
- fmd_xprt_setspecific = FUNCTION extern;
- fmd_xprt_suspend = FUNCTION extern;
- fmd_xprt_translate = FUNCTION extern;
- fmd_xprt_add_domain = FUNCTION extern;
+ fmd_timer_install { TYPE = function; FLAGS = extern };
+ fmd_timer_remove { TYPE = function; FLAGS = extern };
+
+ fmd_xprt_close { TYPE = function; FLAGS = extern };
+ fmd_xprt_error { TYPE = function; FLAGS = extern };
+ fmd_xprt_getspecific { TYPE = function; FLAGS = extern };
+ fmd_xprt_log { TYPE = function; FLAGS = extern };
+ fmd_xprt_open { TYPE = function; FLAGS = extern };
+ fmd_xprt_post { TYPE = function; FLAGS = extern };
+ fmd_xprt_resume { TYPE = function; FLAGS = extern };
+ fmd_xprt_setspecific { TYPE = function; FLAGS = extern };
+ fmd_xprt_suspend { TYPE = function; FLAGS = extern };
+ fmd_xprt_translate { TYPE = function; FLAGS = extern };
+ fmd_xprt_add_domain { TYPE = function; FLAGS = extern };
};
diff --git a/usr/src/cmd/fm/fmd/common/fmd_fmri.map b/usr/src/cmd/fm/fmd/common/fmd_fmri.map
index aec0c40e3a..52047ab39e 100644
--- a/usr/src/cmd/fm/fmd/common/fmd_fmri.map
+++ b/usr/src/cmd/fm/fmd/common/fmd_fmri.map
@@ -1,6 +1,5 @@
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -21,21 +20,22 @@
#
# CDDL HEADER END
#
-#ident "%Z%%M% %I% %E% SMI"
-{
- fmd_fmri_alloc = FUNCTION extern;
- fmd_fmri_zalloc = FUNCTION extern;
- fmd_fmri_free = FUNCTION extern;
- fmd_fmri_set_errno = FUNCTION extern;
- fmd_fmri_warn = FUNCTION extern;
- fmd_fmri_auth2str = FUNCTION extern;
- fmd_fmri_strescape = FUNCTION extern;
- fmd_fmri_strdup = FUNCTION extern;
- fmd_fmri_strfree = FUNCTION extern;
- fmd_fmri_get_rootdir = FUNCTION extern;
- fmd_fmri_get_platform = FUNCTION extern;
- fmd_fmri_get_drgen = FUNCTION extern;
- fmd_fmri_topo_hold = FUNCTION extern;
- fmd_fmri_topo_rele = FUNCTION extern;
+$mapfile_version 2
+
+SYMBOL_SCOPE {
+ fmd_fmri_alloc { TYPE = function; FLAGS = extern };
+ fmd_fmri_zalloc { TYPE = function; FLAGS = extern };
+ fmd_fmri_free { TYPE = function; FLAGS = extern };
+ fmd_fmri_set_errno { TYPE = function; FLAGS = extern };
+ fmd_fmri_warn { TYPE = function; FLAGS = extern };
+ fmd_fmri_auth2str { TYPE = function; FLAGS = extern };
+ fmd_fmri_strescape { TYPE = function; FLAGS = extern };
+ fmd_fmri_strdup { TYPE = function; FLAGS = extern };
+ fmd_fmri_strfree { TYPE = function; FLAGS = extern };
+ fmd_fmri_get_rootdir { TYPE = function; FLAGS = extern };
+ fmd_fmri_get_platform { TYPE = function; FLAGS = extern };
+ fmd_fmri_get_drgen { TYPE = function; FLAGS = extern };
+ fmd_fmri_topo_hold { TYPE = function; FLAGS = extern };
+ fmd_fmri_topo_rele { TYPE = function; FLAGS = extern };
};
diff --git a/usr/src/cmd/fmli/xx/mapfile-intf b/usr/src/cmd/fmli/xx/mapfile-intf
index 8f0ffd21c0..1a59617158 100644
--- a/usr/src/cmd/fmli/xx/mapfile-intf
+++ b/usr/src/cmd/fmli/xx/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,10 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# fmli interposes on exit() so identify this as an interposer.
-{
+SYMBOL_SCOPE {
global:
- exit = INTERPOSE;
+ exit { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/fs.d/udfs/fsdb/mapfile-intf b/usr/src/cmd/fs.d/udfs/fsdb/mapfile-intf
index bc6478ac3d..22e20671cb 100644
--- a/usr/src/cmd/fs.d/udfs/fsdb/mapfile-intf
+++ b/usr/src/cmd/fs.d/udfs/fsdb/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,10 +37,12 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# fsdb uses the -e option of lex, which generates additional lex interfaces
# that are not defined in the generic $(MAPFILE.LEX). These additional lex
# interfaces are exported here.
-{
+SYMBOL_SCOPE {
global:
yywinput;
yywleng;
diff --git a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers
index 4944d228e7..1f47dfb313 100644
--- a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers
+++ b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,15 +36,17 @@
# MAPFILE HEADER END
#
-SUNWprivate {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate {
global:
- fw_devices = PARENT;
- fw_pluginlist = PARENT;
- fwflash_debug = PARENT;
- rootnode = PARENT;
- self = PARENT;
- verifier = PARENT;
- logmsg = PARENT;
+ fw_devices { FLAGS = PARENT };
+ fw_pluginlist { FLAGS = PARENT };
+ fwflash_debug { FLAGS = PARENT };
+ rootnode { FLAGS = PARENT };
+ self { FLAGS = PARENT };
+ verifier { FLAGS = PARENT };
+ logmsg { FLAGS = PARENT };
drivername;
fw_devinfo;
fw_identify;
diff --git a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon
index d5415013d8..51281c9144 100644
--- a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon
+++ b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-hermon
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate {
global:
cnx_crc16;
cnx_is_magic_pattern_present;
diff --git a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus
index a5018ff9af..5891e2d43d 100644
--- a/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus
+++ b/usr/src/cmd/fwflash/plugins/transport/common/mapfile-vers-plus
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate {
global:
fw_cleanup;
};
diff --git a/usr/src/cmd/fwflash/plugins/vendor/mapfile-vers b/usr/src/cmd/fwflash/plugins/vendor/mapfile-vers
index 0592197c9c..db7500d08a 100644
--- a/usr/src/cmd/fwflash/plugins/vendor/mapfile-vers
+++ b/usr/src/cmd/fwflash/plugins/vendor/mapfile-vers
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,15 +36,17 @@
# MAPFILE HEADER END
#
-SUNWprivate {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate {
global:
- fw_devices = PARENT;
- fw_pluginlist = PARENT;
- fwflash_debug = PARENT;
- rootnode = PARENT;
- self = PARENT;
- verifier = PARENT;
- logmsg = PARENT;
+ fw_devices { FLAGS = PARENT };
+ fw_pluginlist { FLAGS = PARENT };
+ fwflash_debug { FLAGS = PARENT };
+ rootnode { FLAGS = PARENT };
+ self { FLAGS = PARENT };
+ verifier { FLAGS = PARENT };
+ logmsg { FLAGS = PARENT };
vendorvrfy;
vendor;
local:
diff --git a/usr/src/cmd/geniconvtbl/mapfile b/usr/src/cmd/geniconvtbl/mapfile
index dc5314a527..1f0e6e5560 100644
--- a/usr/src/cmd/geniconvtbl/mapfile
+++ b/usr/src/cmd/geniconvtbl/mapfile
@@ -1,5 +1,4 @@
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -35,8 +34,9 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
-{
+SYMBOL_SCOPE {
global:
_icv_open;
_icv_close;
diff --git a/usr/src/cmd/gss/gssd/mapfile-intf b/usr/src/cmd/gss/gssd/mapfile-intf
index 5e6505025f..c196cd89fa 100644
--- a/usr/src/cmd/gss/gssd/mapfile-intf
+++ b/usr/src/cmd/gss/gssd/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,10 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# gssd exports app_krb5_user_uid() - required by mech_krb5.
-{
+SYMBOL_SCOPE {
global:
app_krb5_user_uid;
};
diff --git a/usr/src/cmd/idmap/idmapd/mapfile-intf b/usr/src/cmd/idmap/idmapd/mapfile-intf
index 94a2393a01..1ab5c033d7 100644
--- a/usr/src/cmd/idmap/idmapd/mapfile-intf
+++ b/usr/src/cmd/idmap/idmapd/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,10 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# idmapd exports app_krb5_user_uid() - required by mech_krb5.
-{
+SYMBOL_SCOPE {
global:
app_krb5_user_uid;
};
diff --git a/usr/src/cmd/infocmp/mapfile-intf b/usr/src/cmd/infocmp/mapfile-intf
index 3e7a19c0a4..36428ba838 100644
--- a/usr/src/cmd/infocmp/mapfile-intf
+++ b/usr/src/cmd/infocmp/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,11 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# infocmp interposes on progname[], so identify this as an interposer.
-{
+
+SYMBOL_SCOPE {
global:
- progname = INTERPOSE;
+ progname { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/krb5/kadmin/gui/native/mapfile-vers b/usr/src/cmd/krb5/kadmin/gui/native/mapfile-vers
index 6628458e68..d1aa32ea2f 100644
--- a/usr/src/cmd/krb5/kadmin/gui/native/mapfile-vers
+++ b/usr/src/cmd/krb5/kadmin/gui/native/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
Java_Kadmin_sessionInit;
Java_Kadmin_sessionExit;
diff --git a/usr/src/cmd/krb5/kwarn/mapfile-intf b/usr/src/cmd/krb5/kwarn/mapfile-intf
index 06485a1c12..5d45e714a2 100644
--- a/usr/src/cmd/krb5/kwarn/mapfile-intf
+++ b/usr/src/cmd/krb5/kwarn/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,10 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# ktkt_warnd exports app_krb5_user_uid() - required by mech_krb5.
-{
+SYMBOL_SCOPE {
global:
app_krb5_user_uid;
};
diff --git a/usr/src/cmd/lp/lib/papi/mapfile b/usr/src/cmd/lp/lib/papi/mapfile
index ea4454c70f..a4eeffdaf6 100644
--- a/usr/src/cmd/lp/lib/papi/mapfile
+++ b/usr/src/cmd/lp/lib/papi/mapfile
@@ -18,8 +18,7 @@
#
# CDDL HEADER END
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Generic interface definition for usr/src/cmd/lp/lib/papi
#
@@ -38,34 +37,108 @@
# MAPFILE HEADER END
#
-SUNW_1.0 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNW_1.0 {
global:
# PAPI Attribute Calls
papiAttributeListAdd;
- papiAttributeListAddValue = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddBoolean = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddCollection = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddDatetime = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddInteger = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddMetadata = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddRange = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddResolution = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListAddString = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListDelete = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetValue = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetNext = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListFind = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetBoolean = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetCollection = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetDatetime = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetInteger = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetMetadata = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetRange = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetResolution = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListGetString = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListFromString = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListToString = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListFree = FUNCTION FILTER libpapi-common.so ;
+ papiAttributeListAddValue {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddBoolean {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddCollection {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddDatetime {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddInteger {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddMetadata {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddRange {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddResolution {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListAddString {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListDelete {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetValue {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetNext {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListFind {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetBoolean {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetCollection {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetDatetime {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetInteger {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetMetadata {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetRange {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetResolution {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListGetString {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListFromString {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListToString {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListFree {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
# PAPI Service Calls
papiServiceCreate;
@@ -112,22 +185,31 @@ SUNW_1.0 {
papiJobCancel;
papiJobHold;
papiJobRelease;
- papiJobRestart = FUNCTION FILTER libpapi-common.so ;
+ papiJobRestart {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
papiJobPromote;
papiJobGetAttributeList;
papiJobGetPrinterName;
papiJobGetId;
- papiJobGetJobTicket = FUNCTION FILTER libpapi-common.so ;
+ papiJobGetJobTicket {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
papiJobFree;
papiJobListFree;
# Misc. PAPI Calls
- papiStatusString = FUNCTION FILTER libpapi-common.so ;
+ papiStatusString {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
papiLibrarySupportedCall;
papiLibrarySupportedCalls;
};
-SUNWprivate_1.0 {
+SYMBOL_VERSION SUNWprivate_1.0 {
global:
papiServiceSetPeer; # used by to pass peer connection
papiJobCreate;
@@ -136,22 +218,55 @@ SUNWprivate_1.0 {
# Misc. supporting calls
# URI
- uri_from_string = FUNCTION FILTER libpapi-common.so ;
- uri_to_string = FUNCTION FILTER libpapi-common.so ;
- uri_free = FUNCTION FILTER libpapi-common.so ;
+ uri_from_string {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ uri_to_string {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ uri_free {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
# list
- list_remove = FUNCTION FILTER libpapi-common.so ;
- list_append = FUNCTION FILTER libpapi-common.so ;
- list_concatenate = FUNCTION FILTER libpapi-common.so ;
+ list_remove {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ list_append {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ list_concatenate {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
# NS
- getprinterbyname = FUNCTION FILTER libpapi-common.so ;
- is_localhost = FUNCTION FILTER libpapi-common.so ;
+ getprinterbyname {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ is_localhost {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
# extra Attribute Calls
- copy_attributes = FUNCTION FILTER libpapi-common.so ;
- split_and_copy_attributes = FUNCTION FILTER libpapi-common.so ;
- papiAttributeListPrint = FUNCTION FILTER libpapi-common.so ;
+ copy_attributes {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ split_and_copy_attributes {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
+ papiAttributeListPrint {
+ TYPE = FUNCTION;
+ FILTER = libpapi-common.so;
+ };
local:
*;
diff --git a/usr/src/cmd/mdb/common/kmdb/mapfile_skel b/usr/src/cmd/mdb/common/kmdb/mapfile_skel
index f91f91dac1..46ea67e874 100644
--- a/usr/src/cmd/mdb/common/kmdb/mapfile_skel
+++ b/usr/src/cmd/mdb/common/kmdb/mapfile_skel
@@ -20,12 +20,9 @@
*/
/* BEGIN PROLOGUE */
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* This file is used to limit the symbols that are to be exported from the
* debugger. This ensures that dmods follow the module API.
@@ -36,7 +33,9 @@
* entries for __ctype and errno below.
*/
-{
+$mapfile_version 2
+
+SYMBOL_SCOPE {
global:
/* END PROLOGUE */
diff --git a/usr/src/cmd/mdb/common/libstandctf/mapfile b/usr/src/cmd/mdb/common/libstandctf/mapfile
index 27d45b0318..e72c2ddbcf 100644
--- a/usr/src/cmd/mdb/common/libstandctf/mapfile
+++ b/usr/src/cmd/mdb/common/libstandctf/mapfile
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,7 +35,9 @@
# MAPFILE HEADER END
#
-{
+$mapfile_version 2
+
+SYMBOL_SCOPE {
global:
ctf_add_array;
ctf_add_member;
diff --git a/usr/src/cmd/mdb/common/modules/conf/mapfile b/usr/src/cmd/mdb/common/modules/conf/mapfile
index 8dc89576f6..aabdf38008 100644
--- a/usr/src/cmd/mdb/common/modules/conf/mapfile
+++ b/usr/src/cmd/mdb/common/modules/conf/mapfile
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,13 +35,15 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
#
# Module mapfile
#
# Modules aren't allowed to export any symbols
#
-{
+SYMBOL_SCOPE {
local:
*;
};
diff --git a/usr/src/cmd/mdb/common/modules/conf/mapfile-extern b/usr/src/cmd/mdb/common/modules/conf/mapfile-extern
index 92854282bb..256f4bed86 100644
--- a/usr/src/cmd/mdb/common/modules/conf/mapfile-extern
+++ b/usr/src/cmd/mdb/common/modules/conf/mapfile-extern
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,127 +35,129 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# External interface requirements
-{
+SYMBOL_SCOPE {
global:
-# Plwp_iter = EXTERN;
-# Pmapping_iter = EXTERN;
+# Plwp_iter { FLAGS = EXTERN };
+# Pmapping_iter { FLAGS = EXTERN };
- _mdb_ks_ncpu = EXTERN;
- _mdb_ks_pageshift = EXTERN;
- _mdb_ks_pagesize = EXTERN;
+ _mdb_ks_ncpu { FLAGS = EXTERN };
+ _mdb_ks_pageshift { FLAGS = EXTERN };
+ _mdb_ks_pagesize { FLAGS = EXTERN };
- mdb = EXTERN;
- mdb_add_walker = EXTERN;
- mdb_alloc = EXTERN;
- mdb_call_dcmd = EXTERN;
- mdb_callback_add = EXTERN;
- mdb_callback_remove = EXTERN;
- mdb_cpuset_find = EXTERN;
- mdb_ctf_array_info = EXTERN;
- mdb_ctf_enum_name = EXTERN;
- mdb_ctf_lookup_by_addr = EXTERN;
- mdb_ctf_lookup_by_name = EXTERN;
- mdb_ctf_member_iter = EXTERN;
- mdb_ctf_offsetof = EXTERN;
- mdb_ctf_type_cmp = EXTERN;
- mdb_ctf_type_invalidate = EXTERN;
- mdb_ctf_type_kind = EXTERN;
- mdb_ctf_type_name = EXTERN;
- mdb_ctf_type_reference = EXTERN;
- mdb_ctf_type_resolve = EXTERN;
- mdb_ctf_type_size = EXTERN;
- mdb_ctf_type_valid = EXTERN;
- mdb_ctf_vread = EXTERN;
- mdb_ddi_pathname = EXTERN;
- mdb_dec_indent = EXTERN;
- mdb_devinfo2driver = EXTERN;
- mdb_devinfo2statep = EXTERN;
- mdb_dlpi_prim = EXTERN;
- mdb_dump64 = EXTERN;
- mdb_dumpptr = EXTERN;
- mdb_eval = EXTERN;
- mdb_fdio_create_path = EXTERN;
- mdb_fdio_fileno = EXTERN;
- mdb_ffs = EXTERN;
- mdb_flush = EXTERN;
- mdb_fread = EXTERN;
- mdb_free = EXTERN;
- mdb_fwrite = EXTERN;
- mdb_gelf_create = EXTERN;
- mdb_gelf_destroy = EXTERN;
- mdb_gelf_sect_by_name = EXTERN;
- mdb_gelf_sect_load = EXTERN;
- mdb_get_dot = EXTERN;
- mdb_get_lbolt = EXTERN;
- mdb_get_pipe = EXTERN;
- mdb_get_soft_state_byaddr = EXTERN;
- mdb_get_state = EXTERN;
- mdb_get_xdata = EXTERN;
- mdb_gethrtime = EXTERN;
- mdb_getopts = EXTERN;
- mdb_inc_indent = EXTERN;
- mdb_inval_bits = EXTERN;
- mdb_io_destroy = EXTERN;
- mdb_iob_clrflags = EXTERN;
- mdb_iob_getflags = EXTERN;
- mdb_iob_resize = EXTERN;
- mdb_iob_setflags = EXTERN;
- mdb_layered_walk = EXTERN;
- mdb_lookup_by_addr = EXTERN;
- mdb_lookup_by_name = EXTERN;
- mdb_lookup_by_obj = EXTERN;
- mdb_mac_addr = EXTERN;
- mdb_major_to_name = EXTERN;
- mdb_mblk_count = EXTERN;
- mdb_memio_create = EXTERN;
- mdb_name_to_major = EXTERN;
- mdb_nhconvert = EXTERN;
- mdb_one_bit = EXTERN;
- mdb_page2pfn = EXTERN;
- mdb_page_lookup = EXTERN;
- mdb_pfn2page = EXTERN;
- mdb_pid2proc = EXTERN;
- mdb_pread = EXTERN;
- mdb_printf = EXTERN;
- mdb_prop_kernel = EXTERN;
- mdb_prop_postmortem = EXTERN;
- mdb_pwalk = EXTERN;
- mdb_pwalk_dcmd = EXTERN;
- mdb_pwrite = EXTERN;
- mdb_qinfo = EXTERN;
- mdb_qname = EXTERN;
- mdb_qops_install = EXTERN;
- mdb_qops_remove = EXTERN;
- mdb_qrnext_default = EXTERN;
- mdb_qwnext = EXTERN;
- mdb_qwnext_default = EXTERN;
- mdb_read_refstr = EXTERN;
- mdb_readstr = EXTERN;
- mdb_readsym = EXTERN;
- mdb_readvar = EXTERN;
- mdb_remove_walker = EXTERN;
- mdb_set_dot = EXTERN;
- mdb_set_pipe = EXTERN;
- mdb_snprintf = EXTERN;
- mdb_strtoull = EXTERN;
- mdb_tgt_notsup = EXTERN;
- mdb_vnode2path = EXTERN;
- mdb_vread = EXTERN;
- mdb_vtype2chr = EXTERN;
- mdb_vwrite = EXTERN;
- mdb_walk = EXTERN;
- mdb_walk_dcmd = EXTERN;
- mdb_warn = EXTERN;
- mdb_whatis_done = EXTERN;
- mdb_whatis_flags = EXTERN;
- mdb_whatis_match = EXTERN;
- mdb_whatis_overlaps = EXTERN;
- mdb_whatis_register = EXTERN;
- mdb_whatis_report_address = EXTERN;
- mdb_whatis_report_object = EXTERN;
- mdb_writestr = EXTERN;
- mdb_writesym = EXTERN;
- mdb_writevar = EXTERN;
- mdb_zalloc = EXTERN;
+ mdb { FLAGS = EXTERN };
+ mdb_add_walker { FLAGS = EXTERN };
+ mdb_alloc { FLAGS = EXTERN };
+ mdb_call_dcmd { FLAGS = EXTERN };
+ mdb_callback_add { FLAGS = EXTERN };
+ mdb_callback_remove { FLAGS = EXTERN };
+ mdb_cpuset_find { FLAGS = EXTERN };
+ mdb_ctf_array_info { FLAGS = EXTERN };
+ mdb_ctf_enum_name { FLAGS = EXTERN };
+ mdb_ctf_lookup_by_addr { FLAGS = EXTERN };
+ mdb_ctf_lookup_by_name { FLAGS = EXTERN };
+ mdb_ctf_member_iter { FLAGS = EXTERN };
+ mdb_ctf_offsetof { FLAGS = EXTERN };
+ mdb_ctf_type_cmp { FLAGS = EXTERN };
+ mdb_ctf_type_invalidate { FLAGS = EXTERN };
+ mdb_ctf_type_kind { FLAGS = EXTERN };
+ mdb_ctf_type_name { FLAGS = EXTERN };
+ mdb_ctf_type_reference { FLAGS = EXTERN };
+ mdb_ctf_type_resolve { FLAGS = EXTERN };
+ mdb_ctf_type_size { FLAGS = EXTERN };
+ mdb_ctf_type_valid { FLAGS = EXTERN };
+ mdb_ctf_vread { FLAGS = EXTERN };
+ mdb_ddi_pathname { FLAGS = EXTERN };
+ mdb_dec_indent { FLAGS = EXTERN };
+ mdb_devinfo2driver { FLAGS = EXTERN };
+ mdb_devinfo2statep { FLAGS = EXTERN };
+ mdb_dlpi_prim { FLAGS = EXTERN };
+ mdb_dump64 { FLAGS = EXTERN };
+ mdb_dumpptr { FLAGS = EXTERN };
+ mdb_eval { FLAGS = EXTERN };
+ mdb_fdio_create_path { FLAGS = EXTERN };
+ mdb_fdio_fileno { FLAGS = EXTERN };
+ mdb_ffs { FLAGS = EXTERN };
+ mdb_flush { FLAGS = EXTERN };
+ mdb_fread { FLAGS = EXTERN };
+ mdb_free { FLAGS = EXTERN };
+ mdb_fwrite { FLAGS = EXTERN };
+ mdb_gelf_create { FLAGS = EXTERN };
+ mdb_gelf_destroy { FLAGS = EXTERN };
+ mdb_gelf_sect_by_name { FLAGS = EXTERN };
+ mdb_gelf_sect_load { FLAGS = EXTERN };
+ mdb_get_dot { FLAGS = EXTERN };
+ mdb_get_lbolt { FLAGS = EXTERN };
+ mdb_get_pipe { FLAGS = EXTERN };
+ mdb_get_soft_state_byaddr { FLAGS = EXTERN };
+ mdb_get_state { FLAGS = EXTERN };
+ mdb_get_xdata { FLAGS = EXTERN };
+ mdb_gethrtime { FLAGS = EXTERN };
+ mdb_getopts { FLAGS = EXTERN };
+ mdb_inc_indent { FLAGS = EXTERN };
+ mdb_inval_bits { FLAGS = EXTERN };
+ mdb_io_destroy { FLAGS = EXTERN };
+ mdb_iob_clrflags { FLAGS = EXTERN };
+ mdb_iob_getflags { FLAGS = EXTERN };
+ mdb_iob_resize { FLAGS = EXTERN };
+ mdb_iob_setflags { FLAGS = EXTERN };
+ mdb_layered_walk { FLAGS = EXTERN };
+ mdb_lookup_by_addr { FLAGS = EXTERN };
+ mdb_lookup_by_name { FLAGS = EXTERN };
+ mdb_lookup_by_obj { FLAGS = EXTERN };
+ mdb_mac_addr { FLAGS = EXTERN };
+ mdb_major_to_name { FLAGS = EXTERN };
+ mdb_mblk_count { FLAGS = EXTERN };
+ mdb_memio_create { FLAGS = EXTERN };
+ mdb_name_to_major { FLAGS = EXTERN };
+ mdb_nhconvert { FLAGS = EXTERN };
+ mdb_one_bit { FLAGS = EXTERN };
+ mdb_page2pfn { FLAGS = EXTERN };
+ mdb_page_lookup { FLAGS = EXTERN };
+ mdb_pfn2page { FLAGS = EXTERN };
+ mdb_pid2proc { FLAGS = EXTERN };
+ mdb_pread { FLAGS = EXTERN };
+ mdb_printf { FLAGS = EXTERN };
+ mdb_prop_kernel { FLAGS = EXTERN };
+ mdb_prop_postmortem { FLAGS = EXTERN };
+ mdb_pwalk { FLAGS = EXTERN };
+ mdb_pwalk_dcmd { FLAGS = EXTERN };
+ mdb_pwrite { FLAGS = EXTERN };
+ mdb_qinfo { FLAGS = EXTERN };
+ mdb_qname { FLAGS = EXTERN };
+ mdb_qops_install { FLAGS = EXTERN };
+ mdb_qops_remove { FLAGS = EXTERN };
+ mdb_qrnext_default { FLAGS = EXTERN };
+ mdb_qwnext { FLAGS = EXTERN };
+ mdb_qwnext_default { FLAGS = EXTERN };
+ mdb_read_refstr { FLAGS = EXTERN };
+ mdb_readstr { FLAGS = EXTERN };
+ mdb_readsym { FLAGS = EXTERN };
+ mdb_readvar { FLAGS = EXTERN };
+ mdb_remove_walker { FLAGS = EXTERN };
+ mdb_set_dot { FLAGS = EXTERN };
+ mdb_set_pipe { FLAGS = EXTERN };
+ mdb_snprintf { FLAGS = EXTERN };
+ mdb_strtoull { FLAGS = EXTERN };
+ mdb_tgt_notsup { FLAGS = EXTERN };
+ mdb_vnode2path { FLAGS = EXTERN };
+ mdb_vread { FLAGS = EXTERN };
+ mdb_vtype2chr { FLAGS = EXTERN };
+ mdb_vwrite { FLAGS = EXTERN };
+ mdb_walk { FLAGS = EXTERN };
+ mdb_walk_dcmd { FLAGS = EXTERN };
+ mdb_warn { FLAGS = EXTERN };
+ mdb_whatis_done { FLAGS = EXTERN };
+ mdb_whatis_flags { FLAGS = EXTERN };
+ mdb_whatis_match { FLAGS = EXTERN };
+ mdb_whatis_overlaps { FLAGS = EXTERN };
+ mdb_whatis_register { FLAGS = EXTERN };
+ mdb_whatis_report_address { FLAGS = EXTERN };
+ mdb_whatis_report_object { FLAGS = EXTERN };
+ mdb_writestr { FLAGS = EXTERN };
+ mdb_writesym { FLAGS = EXTERN };
+ mdb_writevar { FLAGS = EXTERN };
+ mdb_zalloc { FLAGS = EXTERN };
};
diff --git a/usr/src/cmd/picl/plugins/lib/picld_pluginutil/mapfile-vers b/usr/src/cmd/picl/plugins/lib/picld_pluginutil/mapfile-vers
index dd88fd6bd8..38fed34ab8 100644
--- a/usr/src/cmd/picl/plugins/lib/picld_pluginutil/mapfile-vers
+++ b/usr/src/cmd/picl/plugins/lib/picld_pluginutil/mapfile-vers
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
picld_pluginutil_parse_config_file;
local:
diff --git a/usr/src/cmd/pools/poold/libjkstat/mapfile-vers b/usr/src/cmd/pools/poold/libjkstat/mapfile-vers
index 976fe5fad3..4491dae1c8 100644
--- a/usr/src/cmd/pools/poold/libjkstat/mapfile-vers
+++ b/usr/src/cmd/pools/poold/libjkstat/mapfile-vers
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
Java_com_sun_solaris_service_kstat_KstatCtl_chainUpdate;
Java_com_sun_solaris_service_kstat_KstatCtl_close;
diff --git a/usr/src/cmd/pools/poold/libjlgrp/mapfile-vers b/usr/src/cmd/pools/poold/libjlgrp/mapfile-vers
index 9e4f6fc4c3..6bdda6fcc8 100644
--- a/usr/src/cmd/pools/poold/libjlgrp/mapfile-vers
+++ b/usr/src/cmd/pools/poold/libjlgrp/mapfile-vers
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
Java_com_sun_solaris_service_locality_LocalityDomain_jl_1fini;
Java_com_sun_solaris_service_locality_LocalityDomain_jl_1init;
diff --git a/usr/src/cmd/pools/poold/libjpool/mapfile-vers b/usr/src/cmd/pools/poold/libjpool/mapfile-vers
index bf1fa7265a..ba7adbad6c 100644
--- a/usr/src/cmd/pools/poold/libjpool/mapfile-vers
+++ b/usr/src/cmd/pools/poold/libjpool/mapfile-vers
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
Java_com_sun_solaris_service_pools_Element_walkProps;
Java_com_sun_solaris_service_pools_HRTime_timestamp;
diff --git a/usr/src/cmd/pools/poold/libjsyslog/mapfile-vers b/usr/src/cmd/pools/poold/libjsyslog/mapfile-vers
index 76b8088695..ba46ab3693 100644
--- a/usr/src/cmd/pools/poold/libjsyslog/mapfile-vers
+++ b/usr/src/cmd/pools/poold/libjsyslog/mapfile-vers
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -37,7 +36,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
Java_com_sun_solaris_service_logging_SyslogHandler_closelog;
Java_com_sun_solaris_service_logging_SyslogHandler_openlog;
diff --git a/usr/src/cmd/rcm_daemon/common/mapfile-intf b/usr/src/cmd/rcm_daemon/common/mapfile-intf
index 0fda947714..8ca18f24a9 100644
--- a/usr/src/cmd/rcm_daemon/common/mapfile-intf
+++ b/usr/src/cmd/rcm_daemon/common/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,9 +37,11 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# rcm_daemon interposes on rcm_log_message() - a stub implementation
# existing in librcm.so.1.
-{
+SYMBOL_SCOPE {
global:
- rcm_log_message = INTERPOSE;
+ rcm_log_message { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/sendmail/src/mapfile-intf b/usr/src/cmd/sendmail/src/mapfile-intf
index 08c64b4d04..ecb755b888 100644
--- a/usr/src/cmd/sendmail/src/mapfile-intf
+++ b/usr/src/cmd/sendmail/src/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,11 +37,13 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# sendmail defines its own sleep() which pre-dates libc's sleep(), but is
# essentially the same. To maintain source compatibility, define only those
# symbols that must remain global, and therefore remove the sleep name-space
# clash.
-{
+SYMBOL_SCOPE {
global:
allow_severity; # required by libwrap
deny_severity; # required by libwrap
diff --git a/usr/src/cmd/sgs/elfedit/common/mapfile-vers b/usr/src/cmd/sgs/elfedit/common/mapfile-vers
index f5f6c52c96..86949d1cb7 100644
--- a/usr/src/cmd/sgs/elfedit/common/mapfile-vers
+++ b/usr/src/cmd/sgs/elfedit/common/mapfile-vers
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,14 +37,16 @@
# MAPFILE HEADER END
#
-{
+$mapfile_version 2
+
+SYMBOL_SCOPE {
global:
main; # debuggers seem to like this.
# liblddbg dbg_print() function
- dbg_print = NODIRECT;
+ dbg_print { FLAGS = NODIRECT };
diff --git a/usr/src/cmd/sgs/elfedit/modules/common/mapfile-vers b/usr/src/cmd/sgs/elfedit/modules/common/mapfile-vers
index 23fbf0fb37..0e4b73abe7 100644
--- a/usr/src/cmd/sgs/elfedit/modules/common/mapfile-vers
+++ b/usr/src/cmd/sgs/elfedit/modules/common/mapfile-vers
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -46,7 +45,9 @@
# The routines exported by elfedit for use by the modules
# are also defined here, using the PARENT mapfile keyword.
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
# Standard init routines exported by every module
elfedit32_init;
@@ -54,158 +55,158 @@ SUNWprivate_1.1 {
# liblddbg dbg_print() function
- dbg_print = PARENT NODIRECT;
+ dbg_print { FLAGS = PARENT NODIRECT };
# Core API
- elfedit_command_usage = PARENT;
- elfedit_cpl_match = PARENT;
- elfedit_cpl_ndx = PARENT;
- elfedit_elferr = PARENT;
- elfedit_flags = PARENT;
- elfedit_malloc = PARENT;
- elfedit_msg = PARENT;
- elfedit_outstyle = PARENT;
- elfedit_pager_init = PARENT;
- elfedit_printf = PARENT;
- elfedit_realloc = PARENT;
- elfedit_str_to_c_literal = PARENT;
- elfedit_write = PARENT;
+ elfedit_command_usage { FLAGS = PARENT };
+ elfedit_cpl_match { FLAGS = PARENT };
+ elfedit_cpl_ndx { FLAGS = PARENT };
+ elfedit_elferr { FLAGS = PARENT };
+ elfedit_flags { FLAGS = PARENT };
+ elfedit_malloc { FLAGS = PARENT };
+ elfedit_msg { FLAGS = PARENT };
+ elfedit_outstyle { FLAGS = PARENT };
+ elfedit_pager_init { FLAGS = PARENT };
+ elfedit_printf { FLAGS = PARENT };
+ elfedit_realloc { FLAGS = PARENT };
+ elfedit_str_to_c_literal { FLAGS = PARENT };
+ elfedit_write { FLAGS = PARENT };
# ato[u]i routines
- elfedit_const_to_atoui = PARENT;
+ elfedit_const_to_atoui { FLAGS = PARENT };
- elfedit_atoi = PARENT;
- elfedit_atoui = PARENT;
- elfedit_atoconst = PARENT;
+ elfedit_atoi { FLAGS = PARENT };
+ elfedit_atoui { FLAGS = PARENT };
+ elfedit_atoconst { FLAGS = PARENT };
- elfedit_atoi2 = PARENT;
- elfedit_atoui2 = PARENT;
- elfedit_atoconst2 = PARENT;
+ elfedit_atoi2 { FLAGS = PARENT };
+ elfedit_atoui2 { FLAGS = PARENT };
+ elfedit_atoconst2 { FLAGS = PARENT };
- elfedit_atoi_range = PARENT;
- elfedit_atoui_range = PARENT;
- elfedit_atoconst_range = PARENT;
+ elfedit_atoi_range { FLAGS = PARENT };
+ elfedit_atoui_range { FLAGS = PARENT };
+ elfedit_atoconst_range { FLAGS = PARENT };
- elfedit_atoi_range2 = PARENT;
- elfedit_atoui_range2 = PARENT;
- elfedit_atoconst_range2 = PARENT;
+ elfedit_atoi_range2 { FLAGS = PARENT };
+ elfedit_atoui_range2 { FLAGS = PARENT };
+ elfedit_atoconst_range2 { FLAGS = PARENT };
- elfedit_atoi_value_to_str = PARENT;
- elfedit_atoui_value_to_str = PARENT;
- elfedit_atoconst_value_to_str = PARENT;
+ elfedit_atoi_value_to_str { FLAGS = PARENT };
+ elfedit_atoui_value_to_str { FLAGS = PARENT };
+ elfedit_atoconst_value_to_str { FLAGS = PARENT };
- elfedit_cpl_atoi = PARENT;
- elfedit_cpl_atoui = PARENT;
- elfedit_cpl_atoconst = PARENT;
+ elfedit_cpl_atoi { FLAGS = PARENT };
+ elfedit_cpl_atoui { FLAGS = PARENT };
+ elfedit_cpl_atoconst { FLAGS = PARENT };
# Convenience functions built on top of the ato[u]i routines
- elfedit_atobool = PARENT;
- elfedit_atoshndx = PARENT;
+ elfedit_atobool { FLAGS = PARENT };
+ elfedit_atoshndx { FLAGS = PARENT };
# Getopt
- elfedit_getopt_init = PARENT;
- elfedit_getopt = PARENT;
+ elfedit_getopt_init { FLAGS = PARENT };
+ elfedit_getopt { FLAGS = PARENT };
# Utilities
- elfedit_array_elts_delete = PARENT;
+ elfedit_array_elts_delete { FLAGS = PARENT };
- elfedit_array_elts_move = PARENT;
+ elfedit_array_elts_move { FLAGS = PARENT };
- elfedit_bits_set = PARENT;
+ elfedit_bits_set { FLAGS = PARENT };
- elfedit32_dyn_elt_init = PARENT;
- elfedit64_dyn_elt_init = PARENT;
+ elfedit32_dyn_elt_init { FLAGS = PARENT };
+ elfedit64_dyn_elt_init { FLAGS = PARENT };
- elfedit32_dyn_elt_save = PARENT;
- elfedit64_dyn_elt_save = PARENT;
+ elfedit32_dyn_elt_save { FLAGS = PARENT };
+ elfedit64_dyn_elt_save { FLAGS = PARENT };
- elfedit32_dyn_offset_to_str = PARENT;
- elfedit64_dyn_offset_to_str = PARENT;
+ elfedit32_dyn_offset_to_str { FLAGS = PARENT };
+ elfedit64_dyn_offset_to_str { FLAGS = PARENT };
- elfedit32_dynstr_getpad = PARENT;
- elfedit64_dynstr_getpad = PARENT;
+ elfedit32_dynstr_getpad { FLAGS = PARENT };
+ elfedit64_dynstr_getpad { FLAGS = PARENT };
- elfedit32_dynstr_insert = PARENT;
- elfedit64_dynstr_insert = PARENT;
+ elfedit32_dynstr_insert { FLAGS = PARENT };
+ elfedit64_dynstr_insert { FLAGS = PARENT };
- elfedit32_modified_data = PARENT;
- elfedit64_modified_data = PARENT;
+ elfedit32_modified_data { FLAGS = PARENT };
+ elfedit64_modified_data { FLAGS = PARENT };
- elfedit32_modified_ehdr = PARENT;
- elfedit64_modified_ehdr = PARENT;
+ elfedit32_modified_ehdr { FLAGS = PARENT };
+ elfedit64_modified_ehdr { FLAGS = PARENT };
- elfedit32_modified_phdr = PARENT;
- elfedit64_modified_phdr = PARENT;
+ elfedit32_modified_phdr { FLAGS = PARENT };
+ elfedit64_modified_phdr { FLAGS = PARENT };
- elfedit32_modified_shdr = PARENT;
- elfedit64_modified_shdr = PARENT;
+ elfedit32_modified_shdr { FLAGS = PARENT };
+ elfedit64_modified_shdr { FLAGS = PARENT };
- elfedit32_name_to_shndx = PARENT;
- elfedit64_name_to_shndx = PARENT;
+ elfedit32_name_to_shndx { FLAGS = PARENT };
+ elfedit64_name_to_shndx { FLAGS = PARENT };
- elfedit32_name_to_symndx = PARENT;
- elfedit64_name_to_symndx = PARENT;
+ elfedit32_name_to_symndx { FLAGS = PARENT };
+ elfedit64_name_to_symndx { FLAGS = PARENT };
- elfedit32_offset_to_str = PARENT;
- elfedit64_offset_to_str = PARENT;
+ elfedit32_offset_to_str { FLAGS = PARENT };
+ elfedit64_offset_to_str { FLAGS = PARENT };
- elfedit32_sec_findstr = PARENT;
- elfedit64_sec_findstr = PARENT;
+ elfedit32_sec_findstr { FLAGS = PARENT };
+ elfedit64_sec_findstr { FLAGS = PARENT };
- elfedit32_sec_get = PARENT;
- elfedit64_sec_get = PARENT;
+ elfedit32_sec_get { FLAGS = PARENT };
+ elfedit64_sec_get { FLAGS = PARENT };
- elfedit32_sec_getcap = PARENT;
- elfedit64_sec_getcap = PARENT;
+ elfedit32_sec_getcap { FLAGS = PARENT };
+ elfedit64_sec_getcap { FLAGS = PARENT };
- elfedit32_sec_getdyn = PARENT;
- elfedit64_sec_getdyn = PARENT;
+ elfedit32_sec_getdyn { FLAGS = PARENT };
+ elfedit64_sec_getdyn { FLAGS = PARENT };
- elfedit32_sec_getstr = PARENT;
- elfedit64_sec_getstr = PARENT;
+ elfedit32_sec_getstr { FLAGS = PARENT };
+ elfedit64_sec_getstr { FLAGS = PARENT };
- elfedit32_sec_getsyminfo = PARENT;
- elfedit64_sec_getsyminfo = PARENT;
+ elfedit32_sec_getsyminfo { FLAGS = PARENT };
+ elfedit64_sec_getsyminfo { FLAGS = PARENT };
- elfedit32_sec_getsymtab = PARENT;
- elfedit64_sec_getsymtab = PARENT;
+ elfedit32_sec_getsymtab { FLAGS = PARENT };
+ elfedit64_sec_getsymtab { FLAGS = PARENT };
- elfedit32_sec_getversym = PARENT;
- elfedit64_sec_getversym = PARENT;
+ elfedit32_sec_getversym { FLAGS = PARENT };
+ elfedit64_sec_getversym { FLAGS = PARENT };
- elfedit32_sec_getxshndx = PARENT;
- elfedit64_sec_getxshndx = PARENT;
+ elfedit32_sec_getxshndx { FLAGS = PARENT };
+ elfedit64_sec_getxshndx { FLAGS = PARENT };
- elfedit32_sec_issymtab = PARENT;
- elfedit64_sec_issymtab = PARENT;
+ elfedit32_sec_issymtab { FLAGS = PARENT };
+ elfedit64_sec_issymtab { FLAGS = PARENT };
- elfedit32_shndx_to_name = PARENT;
- elfedit64_shndx_to_name = PARENT;
+ elfedit32_shndx_to_name { FLAGS = PARENT };
+ elfedit64_shndx_to_name { FLAGS = PARENT };
- elfedit32_sec_msgprefix = PARENT;
- elfedit64_sec_msgprefix = PARENT;
+ elfedit32_sec_msgprefix { FLAGS = PARENT };
+ elfedit64_sec_msgprefix { FLAGS = PARENT };
- elfedit32_strtab_insert = PARENT;
- elfedit64_strtab_insert = PARENT;
+ elfedit32_strtab_insert { FLAGS = PARENT };
+ elfedit64_strtab_insert { FLAGS = PARENT };
- elfedit32_strtab_insert_test = PARENT;
- elfedit64_strtab_insert_test = PARENT;
+ elfedit32_strtab_insert_test { FLAGS = PARENT };
+ elfedit64_strtab_insert_test { FLAGS = PARENT };
- elfedit32_test_osabi = PARENT;
- elfedit64_test_osabi = PARENT;
+ elfedit32_test_osabi { FLAGS = PARENT };
+ elfedit64_test_osabi { FLAGS = PARENT };
- elfedit32_type_to_shndx = PARENT;
- elfedit64_type_to_shndx = PARENT;
+ elfedit32_type_to_shndx { FLAGS = PARENT };
+ elfedit64_type_to_shndx { FLAGS = PARENT };
-local:
+ local:
*;
};
diff --git a/usr/src/cmd/sgs/ld/common/mapfile-intf b/usr/src/cmd/sgs/ld/common/mapfile-intf
index c144b7aa83..5f904c32cc 100644
--- a/usr/src/cmd/sgs/ld/common/mapfile-intf
+++ b/usr/src/cmd/sgs/ld/common/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Export eprintf for dependencies.
@@ -38,7 +37,10 @@
#
# MAPFILE HEADER END
#
-{
+
+$mapfile_version 2
+
+SYMBOL_SCOPE {
global:
eprintf;
};
diff --git a/usr/src/cmd/sgs/ldprof/Makefile.com b/usr/src/cmd/sgs/ldprof/Makefile.com
index dfad2b5c5e..f9406e08fc 100644
--- a/usr/src/cmd/sgs/ldprof/Makefile.com
+++ b/usr/src/cmd/sgs/ldprof/Makefile.com
@@ -20,8 +20,7 @@
#
#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
LIBRARY= ldprof.a
@@ -37,7 +36,7 @@ ROOTLIBDIR= $(ROOT)/usr/lib/link_audit
SGSPROTO= ../../proto/$(MACH)
-MAPFILES = mapfile-vers
+MAPFILES = ../common/mapfile-vers
DYNFLAGS += $(CC_USE_PROTO)
CPPFLAGS= -I. -I../common -I../../include \
diff --git a/usr/src/cmd/sgs/ldprof/amd64/mapfile-vers b/usr/src/cmd/sgs/ldprof/amd64/mapfile-vers
deleted file mode 100644
index dce5c3b389..0000000000
--- a/usr/src/cmd/sgs/ldprof/amd64/mapfile-vers
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objclose;
- la_objopen;
- la_amd64_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/ldprof/sparc/mapfile-vers b/usr/src/cmd/sgs/ldprof/common/mapfile-vers
index 1d0f6863eb..4df6afbfee 100644
--- a/usr/src/cmd/sgs/ldprof/sparc/mapfile-vers
+++ b/usr/src/cmd/sgs/ldprof/common/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,12 +35,39 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
la_version; # Audit interfaces
la_objclose;
la_objopen;
+
+ # There is a different pltenter function for every platform
+$if _sparc
+
+$if _ELF32
la_sparcv8_pltenter;
+$elif _ELF64
+ la_sparcv9_pltenter;
+$else
+$error unknown sparc ELFCLASS
+$endif
+
+$elif _x86
+
+$if _ELF32
+ la_i86_pltenter;
+$elif _ELF64
+ la_amd64_pltenter;
+$else
+$error unknown x86 ELFCLASS
+$endif
+
+$else
+$error unknown platform
+$endif
+
local:
*;
};
diff --git a/usr/src/cmd/sgs/ldprof/i386/mapfile-vers b/usr/src/cmd/sgs/ldprof/i386/mapfile-vers
deleted file mode 100644
index 587526bfb8..0000000000
--- a/usr/src/cmd/sgs/ldprof/i386/mapfile-vers
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objclose;
- la_objopen;
- la_i86_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/ldprof/sparcv9/mapfile-vers b/usr/src/cmd/sgs/ldprof/sparcv9/mapfile-vers
deleted file mode 100644
index 39062f9d36..0000000000
--- a/usr/src/cmd/sgs/ldprof/sparcv9/mapfile-vers
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objclose;
- la_objopen;
- la_sparcv9_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/lex/common/mapfile-vers b/usr/src/cmd/sgs/lex/common/mapfile-vers
index 7e94c71289..1e59867fcb 100644
--- a/usr/src/cmd/sgs/lex/common/mapfile-vers
+++ b/usr/src/cmd/sgs/lex/common/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -38,7 +37,9 @@
# MAPFILE HEADER END
#
-SUNW_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNW_1.1 {
global:
allprint;
allprint_w;
diff --git a/usr/src/cmd/sgs/libcrle/common/mapfile-vers b/usr/src/cmd/sgs/libcrle/common/mapfile-vers
index 83d2e0210e..672a80f5da 100644
--- a/usr/src/cmd/sgs/libcrle/common/mapfile-vers
+++ b/usr/src/cmd/sgs/libcrle/common/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,7 +35,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.3 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.3 {
global:
la_version; # Audit interfaces
la_objopen;
diff --git a/usr/src/cmd/sgs/libdl/Makefile.com b/usr/src/cmd/sgs/libdl/Makefile.com
index 90fe1ceb0e..eac0600bee 100644
--- a/usr/src/cmd/sgs/libdl/Makefile.com
+++ b/usr/src/cmd/sgs/libdl/Makefile.com
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
#
LIBRARY = libdl.a
@@ -29,4 +28,3 @@ VERS = .1
include $(SRC)/lib/Makefile.rootfs
LIBS += $(LINTLIB)
-MAPFILES += mapfile-vers
diff --git a/usr/src/cmd/sgs/libdl/amd64/mapfile-vers b/usr/src/cmd/sgs/libdl/amd64/mapfile-vers
deleted file mode 100644
index 9745625909..0000000000
--- a/usr/src/cmd/sgs/libdl/amd64/mapfile-vers
+++ /dev/null
@@ -1,65 +0,0 @@
-#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNW_1.6 {
- global:
- dl_iterate_phdr = FUNCTION;
-} SUNW_1.5;
-
-SUNW_1.5 {
- global:
- dlamd64getunwind = FUNCTION;
-} SUNW_1.4;
-
-SUNWprivate_1.1 {
- global:
- _dlamd64getunwind = FUNCTION;
-};
-
-SUNW_0.8 {
- global:
- dladdr = FUNCTION;
-} SUNW_0.7;
-
-SUNW_0.7 {
- global:
- dlclose = FUNCTION;
- dlerror = FUNCTION;
- dlopen = FUNCTION;
- dlsym = FUNCTION;
-};
diff --git a/usr/src/cmd/sgs/libdl/common/mapfile-vers b/usr/src/cmd/sgs/libdl/common/mapfile-vers
index 6dfa35cbc0..9251d2ab0b 100644
--- a/usr/src/cmd/sgs/libdl/common/mapfile-vers
+++ b/usr/src/cmd/sgs/libdl/common/mapfile-vers
@@ -20,8 +20,7 @@
#
#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,40 +37,96 @@
# MAPFILE HEADER END
#
-SUNW_1.4 {
- global:
- dladdr1 = FUNCTION;
- local:
- *;
+$mapfile_version 2
+
+$if _x86 && _ELF64
+$add amd64
+$endif
+
+# Starting with SUNW_1.5 and dlamd64getunwind(), the amd64
+# platform is one version ahead of the other platforms.
+$if amd64
+SYMBOL_VERSION SUNW_1.6 {
+$else
+SYMBOL_VERSION SUNW_1.5 {
+$endif
+ global:
+ dl_iterate_phdr { TYPE = FUNCTION };
+$if amd64
+} SUNW_1.5;
+
+SYMBOL_VERSION SUNW_1.5 {
+ global:
+ dlamd64getunwind { TYPE = FUNCTION };
+$endif
+} SUNW_1.4;
+
+SYMBOL_VERSION SUNW_1.4 {
+ global:
+ dladdr1 { TYPE = FUNCTION };
} SUNW_1.3;
-SUNW_1.3 {
- global:
- SUNW_1.3;
+SYMBOL_VERSION SUNW_1.3 {
+ global:
+ SUNW_1.3;
} SUNW_1.2;
-SUNW_1.2 {
- global:
- SUNW_1.2;
+SYMBOL_VERSION SUNW_1.2 {
+ global:
+ SUNW_1.2;
} SUNW_1.1;
-SUNW_1.1 {
- global:
- dldump = FUNCTION;
- dlinfo = FUNCTION;
- dlmopen = FUNCTION;
+SYMBOL_VERSION SUNW_1.1 {
+ global:
+ dldump { TYPE = FUNCTION };
+ dlinfo { TYPE = FUNCTION };
+ dlmopen { TYPE = FUNCTION };
} SUNW_0.8;
-SUNWprivate_1.1 {
- global:
- _ld_libc = FUNCTION;
- _dlinfo = FUNCTION;
- _dldump = FUNCTION;
- _dlmopen = FUNCTION;
- _dlopen = FUNCTION;
- _dlerror = FUNCTION;
- _dlsym = FUNCTION;
- _dlclose = FUNCTION;
- _dladdr = FUNCTION;
- _dladdr1 = FUNCTION;
+SYMBOL_VERSION SUNW_0.8 {
+ global:
+ dladdr { TYPE = FUNCTION };
+} SUNW_0.7;
+
+
+#
+# For most platforms, SUNW_0.7 contains dlclose, dlerror, dlopen, and dlsym.
+# For ABI reasons, 32-bit sparc puts them in SISCD_2.3 instead, and SUNW_0.7
+# exists solely so that SUNW_0.8 can inherit from it on all platforms.
+#
+SYMBOL_VERSION SUNW_0.7 {
+ global:
+$if _sparc && _ELF32
+ SUNW_0.7;
+} SISCD_2.3;
+
+SYMBOL_VERSION SISCD_2.3 {
+ global:
+$endif
+ dlclose { TYPE = FUNCTION };
+ dlerror { TYPE = FUNCTION };
+ dlopen { TYPE = FUNCTION };
+ dlsym { TYPE = FUNCTION };
+};
+
+
+SYMBOL_VERSION SUNWprivate_1.1 {
+ global:
+ _ld_libc { TYPE = FUNCTION };
+ _dlinfo { TYPE = FUNCTION };
+ _dldump { TYPE = FUNCTION };
+ _dlmopen { TYPE = FUNCTION };
+ _dlopen { TYPE = FUNCTION };
+ _dlerror { TYPE = FUNCTION };
+ _dlsym { TYPE = FUNCTION };
+ _dlclose { TYPE = FUNCTION };
+ _dladdr { TYPE = FUNCTION };
+ _dladdr1 { TYPE = FUNCTION };
+
+$if amd64
+ _dlamd64getunwind { TYPE = FUNCTION };
+$endif
+
+ local:
+ *;
};
diff --git a/usr/src/cmd/sgs/libdl/i386/mapfile-vers b/usr/src/cmd/sgs/libdl/i386/mapfile-vers
deleted file mode 100644
index 35a900b937..0000000000
--- a/usr/src/cmd/sgs/libdl/i386/mapfile-vers
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNW_1.5 {
- global:
- dl_iterate_phdr = FUNCTION;
-} SUNW_1.4;
-
-SUNW_0.8 {
- global:
- dladdr = FUNCTION;
-} SUNW_0.7;
-
-SUNW_0.7 {
- global:
- dlclose = FUNCTION;
- dlerror = FUNCTION;
- dlopen = FUNCTION;
- dlsym = FUNCTION;
-};
diff --git a/usr/src/cmd/sgs/libdl/sparc/mapfile-vers b/usr/src/cmd/sgs/libdl/sparc/mapfile-vers
deleted file mode 100644
index 7d87ae38ad..0000000000
--- a/usr/src/cmd/sgs/libdl/sparc/mapfile-vers
+++ /dev/null
@@ -1,60 +0,0 @@
-#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNW_1.5 {
- global:
- dl_iterate_phdr = FUNCTION;
-} SUNW_1.4;
-
-SUNW_0.8 {
- global:
- dladdr = FUNCTION;
-} SUNW_0.7;
-
-SUNW_0.7 {
- global:
- SUNW_0.7;
-} SISCD_2.3;
-
-SISCD_2.3 {
- global:
- dlclose = FUNCTION;
- dlerror = FUNCTION;
- dlopen = FUNCTION;
- dlsym = FUNCTION;
-};
diff --git a/usr/src/cmd/sgs/libdl/sparcv9/mapfile-vers b/usr/src/cmd/sgs/libdl/sparcv9/mapfile-vers
deleted file mode 100644
index dba7513b42..0000000000
--- a/usr/src/cmd/sgs/libdl/sparcv9/mapfile-vers
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNW_1.5 {
- global:
- dl_iterate_phdr = FUNCTION;
-} SUNW_1.4;
-
-SUNW_0.8 {
- global:
- dladdr = FUNCTION ;
-} SUNW_0.7;
-
-SUNW_0.7 {
- global:
- dlclose = FUNCTION ;
- dlerror = FUNCTION ;
- dlopen = FUNCTION ;
- dlsym = FUNCTION ;
-};
diff --git a/usr/src/cmd/sgs/libelf/Makefile.com b/usr/src/cmd/sgs/libelf/Makefile.com
index 087daaa7c0..0742e07592 100644
--- a/usr/src/cmd/sgs/libelf/Makefile.com
+++ b/usr/src/cmd/sgs/libelf/Makefile.com
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
#
LIBRARY= libelf.a
@@ -61,7 +60,7 @@ include $(SRC)/cmd/sgs/Makefile.com
WARLOCKFILES= $(OBJECTS:%.o=wlocks/%.ll)
-MAPFILES = ../common/mapfile-common
+MAPFILES = ../common/mapfile-vers
CLOBBERFILES +=
diff --git a/usr/src/cmd/sgs/libelf/common/mapfile-32 b/usr/src/cmd/sgs/libelf/common/mapfile-32
deleted file mode 100644
index 04689f6d1c..0000000000
--- a/usr/src/cmd/sgs/libelf/common/mapfile-32
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- elf_demangle;
-};
diff --git a/usr/src/cmd/sgs/libelf/common/mapfile-common b/usr/src/cmd/sgs/libelf/common/mapfile-vers
index 3ab6404aa2..6c46234e31 100644
--- a/usr/src/cmd/sgs/libelf/common/mapfile-common
+++ b/usr/src/cmd/sgs/libelf/common/mapfile-vers
@@ -36,25 +36,27 @@
# MAPFILE HEADER END
#
-SUNW_1.7 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNW_1.7 {
global:
elf_getphdrnum;
elf_getshdrnum;
elf_getshdrstrndx;
} SUNW_1.6;
-SUNW_1.6 {
+SYMBOL_VERSION SUNW_1.6 {
global:
elf_getphnum;
} SUNW_1.5;
-SUNW_1.5 {
+SYMBOL_VERSION SUNW_1.5 {
global:
gelf_getcap;
gelf_update_cap;
} SUNW_1.4;
-SUNW_1.4 {
+SYMBOL_VERSION SUNW_1.4 {
global:
elf_getshnum;
elf_getshstrndx;
@@ -62,14 +64,14 @@ SUNW_1.4 {
gelf_update_symshndx;
} SUNW_1.3;
-SUNW_1.3 {
+SYMBOL_VERSION SUNW_1.3 {
global:
elf32_checksum;
elf64_checksum;
gelf_checksum;
} SUNW_1.2;
-SUNW_1.2 {
+SYMBOL_VERSION SUNW_1.2 {
global:
elf64_fsize;
elf64_getehdr;
@@ -105,12 +107,12 @@ SUNW_1.2 {
gelf_update_rel;
} SUNW_1.1;
-SUNW_1.1 {
+SYMBOL_VERSION SUNW_1.1 {
global:
SUNW_1.1;
} SUNW_0.7;
-SUNW_0.7 {
+SYMBOL_VERSION SUNW_0.7 {
global:
elf_begin;
elf_end;
@@ -157,7 +159,7 @@ SUNW_0.7 {
*;
};
-SUNWprivate_1.1 {
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
_elf_execfill;
_elf_getarhdrbase;
@@ -167,4 +169,8 @@ SUNWprivate_1.1 {
_elf_sys_encoding;
_elf_swap_wrimage;
_gelf_getdyndtflags_1;
+
+$if _ELF32
+ elf_demangle;
+$endif
};
diff --git a/usr/src/cmd/sgs/libelf/i386/Makefile b/usr/src/cmd/sgs/libelf/i386/Makefile
index c68f2cfae5..be3bf8ab80 100644
--- a/usr/src/cmd/sgs/libelf/i386/Makefile
+++ b/usr/src/cmd/sgs/libelf/i386/Makefile
@@ -20,15 +20,11 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
#
-# ident "%Z%%M% %I% %E% SMI"
include ../Makefile.com
-MAPFILES += ../common/mapfile-32
-
SGSMSGTARG += $(SGSMSG32)
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/libelf/sparc/Makefile b/usr/src/cmd/sgs/libelf/sparc/Makefile
index c68f2cfae5..0cdef9272f 100644
--- a/usr/src/cmd/sgs/libelf/sparc/Makefile
+++ b/usr/src/cmd/sgs/libelf/sparc/Makefile
@@ -20,15 +20,11 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
#
-# ident "%Z%%M% %I% %E% SMI"
include ../Makefile.com
-MAPFILES += ../common/mapfile-32
-
SGSMSGTARG += $(SGSMSG32)
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/libld/common/mapfile-vers b/usr/src/cmd/sgs/libld/common/mapfile-vers
index 06d08ce207..8b16b20249 100644
--- a/usr/src/cmd/sgs/libld/common/mapfile-vers
+++ b/usr/src/cmd/sgs/libld/common/mapfile-vers
@@ -39,9 +39,13 @@
# MAPFILE HEADER END
#
-SUNWprivate_4.6 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_4.6 {
global:
- dbg_print = NODIRECT; # interposed - ld(1) and ld.so.1(1)
+ dbg_print { # interposed - ld(1) and ld.so.1(1)
+ FLAGS = NODIRECT;
+ };
ld_getopt;
@@ -77,7 +81,10 @@ SUNWprivate_4.6 {
# The following functions must be provided by our caller, or one of the
# callers dependencies.
-{
+SYMBOL_SCOPE {
global:
- eprintf = FUNCTION extern;
+ eprintf {
+ TYPE = FUNCTION;
+ FLAGS = extern;
+ };
};
diff --git a/usr/src/cmd/sgs/liblddbg/common/mapfile-vers b/usr/src/cmd/sgs/liblddbg/common/mapfile-vers
index 539eb861d8..164bfd75c8 100644
--- a/usr/src/cmd/sgs/liblddbg/common/mapfile-vers
+++ b/usr/src/cmd/sgs/liblddbg/common/mapfile-vers
@@ -40,10 +40,16 @@
# MAPFILE HEADER END
#
-SUNWprivate_4.81 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_4.81 {
global:
- dbg_desc = NODIRECT; # interposed - ld.so.1(1)
- dbg_print = NODIRECT; # interposed - ld(1) and ld.so.1(1)
+ dbg_desc { # interposed - ld.so.1(1)
+ FLAGS = NODIRECT;
+ };
+ dbg_print { # interposed - ld(1) and ld.so.1(1)
+ FLAGS = NODIRECT;
+ };
Dbg_args_file;
Dbg_args_option;
@@ -524,7 +530,7 @@ SUNWprivate_4.81 {
# this interface, and thus by separating in from the ever changing Dbg_*
# interfaces we can provide a stable versioning environment for this utility.
-SUNWprivate_3.23 {
+SYMBOL_VERSION SUNWprivate_3.23 {
global:
Elf_syminfo_entry;
Elf_syminfo_title;
diff --git a/usr/src/cmd/sgs/libldmake/common/mapfile-vers b/usr/src/cmd/sgs/libldmake/common/mapfile-vers
index e818789b59..5942a1cfcd 100644
--- a/usr/src/cmd/sgs/libldmake/common/mapfile-vers
+++ b/usr/src/cmd/sgs/libldmake/common/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,7 +35,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
ld_file;
ld_atexit;
diff --git a/usr/src/cmd/sgs/libldstab/amd64/Makefile b/usr/src/cmd/sgs/libldstab/amd64/Makefile
index 5b934c0606..f8560e93bf 100644
--- a/usr/src/cmd/sgs/libldstab/amd64/Makefile
+++ b/usr/src/cmd/sgs/libldstab/amd64/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,10 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
DUPOBJS= stab64.o
@@ -38,8 +34,6 @@ ROOTDYNLIB64= $(DYNLIB:%=$(ROOTLIBDIR)/%)
CONVLIBDIR= $(CONVLIBDIR64)
ELFLIBDIR= $(ELFLIBDIR64)
-MAPFILES += ../common/mapfile-64
-
LINTFLAGS64 += $(VAR_LINTFLAGS64)
all: $(DYNLIB)
diff --git a/usr/src/cmd/sgs/libldstab/common/mapfile-64 b/usr/src/cmd/sgs/libldstab/common/mapfile-64
deleted file mode 100644
index 8a8bdddc01..0000000000
--- a/usr/src/cmd/sgs/libldstab/common/mapfile-64
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-# ELF64 interface definition for usr/src/cmd/sgs/libldstab/sparc
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- ld_version64;
-};
diff --git a/usr/src/cmd/sgs/libldstab/common/mapfile-vers b/usr/src/cmd/sgs/libldstab/common/mapfile-vers
index d5fd8d6dcc..8946b08876 100644
--- a/usr/src/cmd/sgs/libldstab/common/mapfile-vers
+++ b/usr/src/cmd/sgs/libldstab/common/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -37,12 +36,15 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
ld_version;
+ ld_version64;
};
-{
+SYMBOL_SCOPE {
local:
*;
};
diff --git a/usr/src/cmd/sgs/libldstab/i386/Makefile b/usr/src/cmd/sgs/libldstab/i386/Makefile
index fd4297a9fa..32d67e8050 100644
--- a/usr/src/cmd/sgs/libldstab/i386/Makefile
+++ b/usr/src/cmd/sgs/libldstab/i386/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,18 +19,13 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
#
DUPOBJS= stab64.o
include ../Makefile.com
-MAPFILES += ../common/mapfile-64
-
.KEEP_STATE:
all: $(DYNLIB)
diff --git a/usr/src/cmd/sgs/libldstab/sparc/Makefile b/usr/src/cmd/sgs/libldstab/sparc/Makefile
index 8e15428f3d..9c4889da43 100644
--- a/usr/src/cmd/sgs/libldstab/sparc/Makefile
+++ b/usr/src/cmd/sgs/libldstab/sparc/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,18 +19,13 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
#
DUPOBJS= stab64.o
include ../Makefile.com
-MAPFILES += ../common/mapfile-64
-
.KEEP_STATE:
all: $(DYNLIB)
diff --git a/usr/src/cmd/sgs/libldstab/sparcv9/Makefile b/usr/src/cmd/sgs/libldstab/sparcv9/Makefile
index 4a2273ae52..e0841a6ee6 100644
--- a/usr/src/cmd/sgs/libldstab/sparcv9/Makefile
+++ b/usr/src/cmd/sgs/libldstab/sparcv9/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,10 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
#
DUPOBJS= stab64.o
@@ -38,8 +34,6 @@ ROOTDYNLIB64= $(DYNLIB:%=$(ROOTLIBDIR)/%)
CONVLIBDIR= $(CONVLIBDIR64)
ELFLIBDIR= $(ELFLIBDIR64)
-MAPFILES += ../common/mapfile-64
-
LINTFLAGS64 += $(VAR_LINTFLAGS64)
all: $(DYNLIB)
diff --git a/usr/src/cmd/sgs/librtld/amd64/Makefile b/usr/src/cmd/sgs/librtld/amd64/Makefile
index e0645150c2..b642bc3270 100644
--- a/usr/src/cmd/sgs/librtld/amd64/Makefile
+++ b/usr/src/cmd/sgs/librtld/amd64/Makefile
@@ -20,16 +20,12 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
#
include $(SRC)/cmd/sgs/librtld/Makefile.com
CPPFLAGS += -I../../../../uts/intel/amd64/krtld
-MAPFILES += ../common/mapfile-64-vers
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/librtld/common/mapfile-32-vers b/usr/src/cmd/sgs/librtld/common/mapfile-32-vers
deleted file mode 100644
index b15133bf3f..0000000000
--- a/usr/src/cmd/sgs/librtld/common/mapfile-32-vers
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-{
- global:
- do32_reloc_rtld = FUNCTION parent;
- reloc32_table = DATA parent;
-};
diff --git a/usr/src/cmd/sgs/librtld/common/mapfile-64-vers b/usr/src/cmd/sgs/librtld/common/mapfile-64-vers
deleted file mode 100644
index d8fcf65118..0000000000
--- a/usr/src/cmd/sgs/librtld/common/mapfile-64-vers
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-{
- global:
- do64_reloc_rtld = FUNCTION parent;
- reloc64_table = DATA parent;
-};
diff --git a/usr/src/cmd/sgs/librtld/common/mapfile-vers b/usr/src/cmd/sgs/librtld/common/mapfile-vers
index c8e8189a09..4c6768d3ac 100644
--- a/usr/src/cmd/sgs/librtld/common/mapfile-vers
+++ b/usr/src/cmd/sgs/librtld/common/mapfile-vers
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,21 +37,36 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.3 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.3 {
global:
rt_dldump;
};
-{
+SYMBOL_SCOPE {
global:
- alist_append = FUNCTION parent;
- elf_plt_write = FUNCTION parent;
- eprintf = FUNCTION parent;
- is_so_loaded = FUNCTION parent;
- lookup_sym = FUNCTION parent;
-
- ld_entry_cnt = DATA parent;
- lml_main = DATA parent;
+ alist_append { TYPE = FUNCTION; FLAGS = PARENT };
+ elf_plt_write { TYPE = FUNCTION; FLAGS = PARENT };
+ eprintf { TYPE = FUNCTION; FLAGS = PARENT };
+ is_so_loaded { TYPE = FUNCTION; FLAGS = PARENT };
+ lookup_sym { TYPE = FUNCTION; FLAGS = PARENT };
+
+ ld_entry_cnt { TYPE = DATA; FLAGS = PARENT };
+ lml_main { TYPE = DATA; FLAGS = PARENT };
+
+
+$if _ELF32
+ do32_reloc_rtld { TYPE = FUNCTION; FLAGS = PARENT };
+ reloc32_table { TYPE = DATA; FLAGS = PARENT };
+$elif _ELF64
+ do64_reloc_rtld { TYPE = FUNCTION; FLAGS = PARENT };
+ reloc64_table { TYPE = DATA; FLAGS = PARENT };
+$else
+$error unknown ELFCLASS
+$endif
+
+
local:
*;
};
diff --git a/usr/src/cmd/sgs/librtld/i386/Makefile b/usr/src/cmd/sgs/librtld/i386/Makefile
index d0972f0319..546a8504fe 100644
--- a/usr/src/cmd/sgs/librtld/i386/Makefile
+++ b/usr/src/cmd/sgs/librtld/i386/Makefile
@@ -20,16 +20,12 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
include $(SRC)/cmd/sgs/librtld/Makefile.com
CPPFLAGS += -I../../../../uts/intel/ia32/krtld
-MAPFILES += ../common/mapfile-32-vers
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/librtld/sparc/Makefile b/usr/src/cmd/sgs/librtld/sparc/Makefile
index 5d07608807..33efa5334e 100644
--- a/usr/src/cmd/sgs/librtld/sparc/Makefile
+++ b/usr/src/cmd/sgs/librtld/sparc/Makefile
@@ -20,16 +20,12 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
include $(SRC)/cmd/sgs/librtld/Makefile.com
CPPFLAGS += -I../../../../uts/sparc/krtld
-MAPFILES += ../common/mapfile-32-vers
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/librtld/sparcv9/Makefile b/usr/src/cmd/sgs/librtld/sparcv9/Makefile
index eba63918c2..0fdca1ad1f 100644
--- a/usr/src/cmd/sgs/librtld/sparcv9/Makefile
+++ b/usr/src/cmd/sgs/librtld/sparcv9/Makefile
@@ -20,16 +20,12 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
#
include $(SRC)/cmd/sgs/librtld/Makefile.com
CPPFLAGS += -I../../../../uts/sparc/krtld
-MAPFILES += ../common/mapfile-64-vers
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/librtld_db/amd64/Makefile b/usr/src/cmd/sgs/librtld_db/amd64/Makefile
index 90593524fd..21fbeff150 100644
--- a/usr/src/cmd/sgs/librtld_db/amd64/Makefile
+++ b/usr/src/cmd/sgs/librtld_db/amd64/Makefile
@@ -20,10 +20,7 @@
#
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
#
COMOBJS64 = rd_elf64.o
@@ -37,7 +34,6 @@ SGSMSGTARG += $(SGSMSGINTEL)
LINTFLAGS64 += $(VAR_LINTFLAGS64)
CPPFLAGS += -D_SYSCALL32
CONVLIBDIR = $(CONVLIBDIR64)
-DYNFLAGS += -M../common/mapfile-vers.64
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/librtld_db/common/mapfile-vers b/usr/src/cmd/sgs/librtld_db/common/mapfile-vers
index 6d80b56378..02ac13ea5d 100644
--- a/usr/src/cmd/sgs/librtld_db/common/mapfile-vers
+++ b/usr/src/cmd/sgs/librtld_db/common/mapfile-vers
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,7 +37,9 @@
# MAPFILE HEADER END
#
-SUNW_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNW_1.1 {
global:
rd_delete;
rd_errstr;
@@ -57,23 +58,30 @@ SUNW_1.1 {
*;
};
-SUNWprivate_1.1 {
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
_rd_get_dyns32;
_rd_get_ehdr32;
_rd_loadobj_iter32;
rd_get_dyns;
validate_rdebug32;
+
+$if _ELF64
+ _rd_get_dyns64;
+ _rd_get_ehdr64;
+ _rd_loadobj_iter64;
+ validate_rdebug64;
+$endif
};
#Externally defined symbols
-{
+SYMBOL_SCOPE {
global:
- ps_pauxv = NODIRECT PARENT;
- ps_pdmodel = NODIRECT PARENT;
- ps_pglobal_lookup = NODIRECT PARENT;
- ps_pglobal_sym = NODIRECT PARENT;
- ps_plog = NODIRECT PARENT;
- ps_pread = NODIRECT PARENT;
- ps_pwrite = NODIRECT PARENT;
+ ps_pauxv { FLAGS = NODIRECT PARENT };
+ ps_pdmodel { FLAGS = NODIRECT PARENT };
+ ps_pglobal_lookup { FLAGS = NODIRECT PARENT };
+ ps_pglobal_sym { FLAGS = NODIRECT PARENT };
+ ps_plog { FLAGS = NODIRECT PARENT };
+ ps_pread { FLAGS = NODIRECT PARENT };
+ ps_pwrite { FLAGS = NODIRECT PARENT };
};
diff --git a/usr/src/cmd/sgs/librtld_db/common/mapfile-vers.64 b/usr/src/cmd/sgs/librtld_db/common/mapfile-vers.64
deleted file mode 100644
index 5f7362e3ab..0000000000
--- a/usr/src/cmd/sgs/librtld_db/common/mapfile-vers.64
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- _rd_get_dyns64;
- _rd_get_ehdr64;
- _rd_loadobj_iter64;
- validate_rdebug64;
-};
diff --git a/usr/src/cmd/sgs/librtld_db/sparcv9/Makefile b/usr/src/cmd/sgs/librtld_db/sparcv9/Makefile
index de9be4eee9..cb2fb3b6d1 100644
--- a/usr/src/cmd/sgs/librtld_db/sparcv9/Makefile
+++ b/usr/src/cmd/sgs/librtld_db/sparcv9/Makefile
@@ -20,10 +20,7 @@
#
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
#
COMOBJS64 = rd_elf64.o
@@ -37,7 +34,6 @@ SGSMSGTARG += $(SGSMSGSPARCV9)
LINTFLAGS64 += $(VAR_LINTFLAGS64)
CPPFLAGS += -D_SYSCALL32
CONVLIBDIR = $(CONVLIBDIR64)
-DYNFLAGS += -M../common/mapfile-vers.64
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/link_audit/Makefile.com b/usr/src/cmd/sgs/link_audit/Makefile.com
index 6f213224a3..c15aa1e204 100644
--- a/usr/src/cmd/sgs/link_audit/Makefile.com
+++ b/usr/src/cmd/sgs/link_audit/Makefile.com
@@ -20,8 +20,7 @@
#
#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
#
include ../../../../lib/Makefile.lib
@@ -84,11 +83,11 @@ $(WHOLIB):= SONAME = $(WHOLIB)
$(SYMBINDREP):= SONAME = $(SYMBINDREP)
$(BINDLIB):= SONAME = $(BINDLIB)
-$(TRUSSLIB):= MAPFILES = mapfile-vers-truss
-$(PERFLIB):= MAPFILES = mapfile-vers-perfcnt
-$(WHOLIB):= MAPFILES = mapfile-vers-who
-$(SYMBINDREP):= MAPFILES = mapfile-vers-symbindrep
-$(BINDLIB):= MAPFILES = mapfile-vers-bindings
+$(TRUSSLIB):= MAPFILES = ../common/mapfile-vers-truss
+$(PERFLIB):= MAPFILES = ../common/mapfile-vers-perfcnt
+$(WHOLIB):= MAPFILES = ../common/mapfile-vers-who
+$(SYMBINDREP):= MAPFILES = ../common/mapfile-vers-symbindrep
+$(BINDLIB):= MAPFILES = ../common/mapfile-vers-bindings
$(ROOTCCSLIB) := DIRMODE = 755
diff --git a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-bindings b/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-bindings
deleted file mode 100644
index 046a851f7e..0000000000
--- a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-bindings
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_amd64_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-perfcnt b/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-perfcnt
deleted file mode 100644
index 4c4ae67fbb..0000000000
--- a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-perfcnt
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_amd64_pltenter;
- la_pltexit64;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-truss b/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-truss
deleted file mode 100644
index 7344d35745..0000000000
--- a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-truss
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_pltexit64;
- la_amd64_pltenter;
- la_symbind64;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-who b/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-who
deleted file mode 100644
index 3e98f53cbf..0000000000
--- a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-who
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_objclose;
- la_amd64_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-bindings b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-bindings
index 3e2cc4802c..be0b1a58af 100644
--- a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-bindings
+++ b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-bindings
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,11 +35,36 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
la_version; # Audit interfaces
la_objopen;
+$if _sparc
+
+$if _ELF32
la_sparcv8_pltenter;
+$elif _ELF64
+ la_sparcv9_pltenter;
+$else
+$error unknown sparc ELFCLASS
+$endif
+
+$elif _x86
+
+$if _ELF32
+ la_i86_pltenter;
+$elif _ELF64
+ la_amd64_pltenter;
+$else
+$error unknown x86 ELFCLASS
+$endif
+
+$else
+$error unknown platform
+$endif
+
local:
*;
};
diff --git a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-perfcnt b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-perfcnt
index 2d9582ebfc..c109e91197 100644
--- a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-perfcnt
+++ b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-perfcnt
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,12 +35,48 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
la_version; # Audit interfaces
la_objopen;
- la_sparcv9_pltenter;
+
+
+$if _ELF32
+ la_pltexit;
+$elif _ELF64
la_pltexit64;
+$else
+$error unknown ELFCLASS
+$endif
+
+
+$if _sparc
+
+$if _ELF32
+ la_sparcv8_pltenter;
+$elif _ELF64
+ la_sparcv9_pltenter;
+$else
+$error unknown sparc ELFCLASS
+$endif
+
+$elif _x86
+
+$if _ELF32
+ la_i86_pltenter;
+$elif _ELF64
+ la_amd64_pltenter;
+$else
+$error unknown x86 ELFCLASS
+$endif
+
+$else
+$error unknown platform
+$endif
+
+
local:
*;
};
diff --git a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-symbindrep b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-symbindrep
index 7bfa9eb78f..a5bdce7d2b 100644
--- a/usr/src/cmd/sgs/link_audit/amd64/mapfile-vers-symbindrep
+++ b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-symbindrep
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,12 +35,24 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
la_version; # Audit interfaces
la_objopen;
la_preinit;
+
+
+$if _ELF32
+ la_symbind32;
+$elif _ELF64
la_symbind64;
+$else
+$error unknown ELFCLASS
+$endif
+
+
local:
*;
};
diff --git a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-truss b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-truss
index 848e9fc37e..428e7b2e0c 100644
--- a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-truss
+++ b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-truss
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,13 +35,50 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
la_version; # Audit interfaces
la_objopen;
+
+
+$if _ELF32
+ la_pltexit;
+ la_symbind32;
+$elif _ELF64
la_pltexit64;
- la_sparcv9_pltenter;
la_symbind64;
+$else
+$error unknown ELFCLASS
+$endif
+
+
+$if _sparc
+
+$if _ELF32
+ la_sparcv8_pltenter;
+$elif _ELF64
+ la_sparcv9_pltenter;
+$else
+$error unknown sparc ELFCLASS
+$endif
+
+$elif _x86
+
+$if _ELF32
+ la_i86_pltenter;
+$elif _ELF64
+ la_amd64_pltenter;
+$else
+$error unknown x86 ELFCLASS
+$endif
+
+$else
+$error unknown platform
+$endif
+
+
local:
*;
};
diff --git a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-who b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-who
index 0c3c0a6cd0..ac57ecab9d 100644
--- a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-who
+++ b/usr/src/cmd/sgs/link_audit/common/mapfile-vers-who
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,12 +35,40 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
la_version; # Audit interfaces
la_objopen;
la_objclose;
+
+
+$if _sparc
+
+$if _ELF32
la_sparcv8_pltenter;
+$elif _ELF64
+ la_sparcv9_pltenter;
+$else
+$error unknown sparc ELFCLASS
+$endif
+
+$elif _x86
+
+$if _ELF32
+ la_i86_pltenter;
+$elif _ELF64
+ la_amd64_pltenter;
+$else
+$error unknown x86 ELFCLASS
+$endif
+
+$else
+$error unknown platform
+$endif
+
+
local:
*;
};
diff --git a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-bindings b/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-bindings
deleted file mode 100644
index 4e52244c59..0000000000
--- a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-bindings
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_i86_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-perfcnt b/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-perfcnt
deleted file mode 100644
index f4e9eb19a5..0000000000
--- a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-perfcnt
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_pltexit;
- la_i86_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-symbindrep b/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-symbindrep
deleted file mode 100644
index a0c0285e6c..0000000000
--- a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-symbindrep
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_preinit;
- la_symbind32;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-truss b/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-truss
deleted file mode 100644
index f0059132ef..0000000000
--- a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-truss
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_pltexit;
- la_i86_pltenter;
- la_symbind32;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-who b/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-who
deleted file mode 100644
index da495875bf..0000000000
--- a/usr/src/cmd/sgs/link_audit/i386/mapfile-vers-who
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_objclose;
- la_i86_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-perfcnt b/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-perfcnt
deleted file mode 100644
index 240f11877a..0000000000
--- a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-perfcnt
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_pltexit;
- la_sparcv8_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-symbindrep b/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-symbindrep
deleted file mode 100644
index a0c0285e6c..0000000000
--- a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-symbindrep
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_preinit;
- la_symbind32;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-truss b/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-truss
deleted file mode 100644
index 0b36ae5c33..0000000000
--- a/usr/src/cmd/sgs/link_audit/sparc/mapfile-vers-truss
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_pltexit;
- la_sparcv8_pltenter;
- la_symbind32;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-bindings b/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-bindings
deleted file mode 100644
index bde87f53fd..0000000000
--- a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-bindings
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_sparcv9_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-symbindrep b/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-symbindrep
deleted file mode 100644
index 7bfa9eb78f..0000000000
--- a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-symbindrep
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_preinit;
- la_symbind64;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-who b/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-who
deleted file mode 100644
index 4b22b79b5d..0000000000
--- a/usr/src/cmd/sgs/link_audit/sparcv9/mapfile-vers-who
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- la_version; # Audit interfaces
- la_objopen;
- la_objclose;
- la_sparcv9_pltenter;
- local:
- *;
-};
diff --git a/usr/src/cmd/sgs/packages/common/SUNWonld-README b/usr/src/cmd/sgs/packages/common/SUNWonld-README
index 61e44e562c..a511b81869 100644
--- a/usr/src/cmd/sgs/packages/common/SUNWonld-README
+++ b/usr/src/cmd/sgs/packages/common/SUNWonld-README
@@ -1595,3 +1595,4 @@ Bugid Risk Synopsis
6961755 ld.so.1's -e arguments should take precedence over environment
variables. (D)
6748925 moe returns wrong hwcap library in some circumstances
+6916796 OSnet mapfiles should use version 2 link-editor syntax
diff --git a/usr/src/cmd/sgs/rtld/Makefile b/usr/src/cmd/sgs/rtld/Makefile
index fa9e77db0e..9d3176b398 100644
--- a/usr/src/cmd/sgs/rtld/Makefile
+++ b/usr/src/cmd/sgs/rtld/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -19,11 +18,9 @@
#
# CDDL HEADER END
#
+
#
-#ident "%Z%%M% %I% %E% SMI"
-#
-# Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
#
include $(SRC)/cmd/sgs/Makefile.com
diff --git a/usr/src/cmd/sgs/rtld/Makefile.com b/usr/src/cmd/sgs/rtld/Makefile.com
index c0229116ae..687f72006f 100644
--- a/usr/src/cmd/sgs/rtld/Makefile.com
+++ b/usr/src/cmd/sgs/rtld/Makefile.com
@@ -20,8 +20,7 @@
#
#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
#
RTLD= ld.so.1
@@ -54,7 +53,7 @@ PLAT = $(VAR_PLAT_$(BASEPLAT))
# DTrace needs an executable data segment.
MAPFILE.NED=
-MAPFILES += $(MAPFILE-ORDER) $(MAPFILE-PLAT)
+MAPFILES += $(MAPFILE-ORDER)
# For the libc/libthread unified world:
# This library needs to be placed in /lib to allow
diff --git a/usr/src/cmd/sgs/rtld/amd64/Makefile b/usr/src/cmd/sgs/rtld/amd64/Makefile
index c9b8af20ca..053171045d 100644
--- a/usr/src/cmd/sgs/rtld/amd64/Makefile
+++ b/usr/src/cmd/sgs/rtld/amd64/Makefile
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
BASEPLAT = amd64
@@ -61,8 +60,6 @@ include $(SRC)/lib/Makefile.lib.64
MAPFILE-ORDER = ../common/mapfile-order-devpro
$(__GNUC64)MAPFILE-ORDER = ../common/mapfile-order-gcc
-MAPFILE-PLAT = mapfile-amd64-vers
-
# Add any machine specific flags.
CFLAGS += -xregs=no%appl
@@ -83,8 +80,6 @@ CPICLIB = $(CPICLIB64)
LDDBGLIBDIR = $(LDDBGLIBDIR64)
CONVLIBDIR = $(CONVLIBDIR64)
-MAPFILES += ../common/mapfile-64-vers
-
.KEEP_STATE:
all: $(RTLD)
diff --git a/usr/src/cmd/sgs/rtld/common/mapfile-32-vers b/usr/src/cmd/sgs/rtld/common/mapfile-32-vers
deleted file mode 100644
index 5bbfddabc7..0000000000
--- a/usr/src/cmd/sgs/rtld/common/mapfile-32-vers
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.3 {
- protected:
- do32_reloc_rtld; # Required to support librtld.so
- reloc32_table;
-};
diff --git a/usr/src/cmd/sgs/rtld/common/mapfile-64-vers b/usr/src/cmd/sgs/rtld/common/mapfile-64-vers
deleted file mode 100644
index 3de22585c3..0000000000
--- a/usr/src/cmd/sgs/rtld/common/mapfile-64-vers
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.3 {
- protected:
- do64_reloc_rtld; # Required to support librtld.so
- reloc64_table;
-};
diff --git a/usr/src/cmd/sgs/rtld/common/mapfile-order-devpro b/usr/src/cmd/sgs/rtld/common/mapfile-order-devpro
index 95f8df5e4d..59fdaa0be5 100644
--- a/usr/src/cmd/sgs/rtld/common/mapfile-order-devpro
+++ b/usr/src/cmd/sgs/rtld/common/mapfile-order-devpro
@@ -20,10 +20,7 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Note: This mapfile is used to place r_debug as the
# very first data item inside of the run-time linker.
@@ -41,6 +38,21 @@
# devpro mapfile: rtld/common/mapfile-order-devpro
#
-data = LOAD ?RWXO;
-data : .data : pics/debugdata.o;
-data | .data;
+$mapfile_version 2
+
+LOAD_SEGMENT data {
+ FLAGS = READ WRITE EXECUTE;
+
+ # .data sections from pics/debugdata.o go to data segment
+ ASSIGN_SECTION dbg_data {
+ IS_NAME = .data;
+ FILE_PATH = pics/debugdata.o;
+ };
+
+ # Put .data sections from pics/debugdata.o ahead of any other
+ # .data input sections in the .data output section.
+ IS_ORDER = dbg_data;
+
+ # Put .data output section at top of data segment
+ OS_ORDER = .data;
+};
diff --git a/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc b/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc
index c719599999..f466ea9e8e 100644
--- a/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc
+++ b/usr/src/cmd/sgs/rtld/common/mapfile-order-gcc
@@ -20,10 +20,7 @@
#
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Note: This mapfile is used to place r_debug as the
# very first data item inside of the run-time linker.
@@ -41,6 +38,21 @@
# devpro mapfile: rtld/common/mapfile-order-devpro
#
-data = LOAD ?RWXO;
-data : .data.rel : pics/debugdata.o;
-data | .data.rel;
+$mapfile_version 2
+
+LOAD_SEGMENT data {
+ FLAGS = READ WRITE EXECUTE;
+
+ # .data.rel sections from pics/debugdata.o go to data segment
+ ASSIGN_SECTION dbg_data {
+ IS_NAME = .data.rel;
+ FILE_PATH = pics/debugdata.o;
+ };
+
+ # Put .data.rel sections from pics/debugdata.o ahead of any other
+ # .data.rel input sections in the .data.rel output section.
+ IS_ORDER = dbg_data;
+
+ # Put .data.rel output section at top of data segment
+ OS_ORDER = .data.rel;
+};
diff --git a/usr/src/cmd/sgs/rtld/common/mapfile-vers b/usr/src/cmd/sgs/rtld/common/mapfile-vers
index 9864da20d1..606964553c 100644
--- a/usr/src/cmd/sgs/rtld/common/mapfile-vers
+++ b/usr/src/cmd/sgs/rtld/common/mapfile-vers
@@ -20,8 +20,7 @@
#
#
-# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Generic interface definition for usr/src/cmd/sgs/rtld.
#
@@ -40,10 +39,12 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
#
# All symbols in ld.so.1 are private as no-one should bind to these directly.
#
-SUNWprivate_1.3 {
+SYMBOL_VERSION SUNWprivate_1.3 {
protected:
dladdr; # Standard dlopen(3x) family
dladdr1;
@@ -110,6 +111,24 @@ SUNWprivate_1.3 {
___errno;
qsort;
dl_iterate_phdr;
+
+$if _x86 && _ELF64
+ # amd64 ABI exception unwinding
+ _dlamd64getunwind;
+ dlamd64getunwind;
+$endif
+
+ # doXX_reloc_rtld and relocXX_table are required to
+ # support librtld.so.
+$if _ELF32
+ do32_reloc_rtld;
+ reloc32_table;
+$elif _ELF64
+ do64_reloc_rtld;
+ reloc64_table;
+$else
+$error unknown ELFCLASS
+$endif
local:
*;
};
diff --git a/usr/src/cmd/sgs/rtld/i386/Makefile b/usr/src/cmd/sgs/rtld/i386/Makefile
index 50ebf15c23..21b5fc74f9 100644
--- a/usr/src/cmd/sgs/rtld/i386/Makefile
+++ b/usr/src/cmd/sgs/rtld/i386/Makefile
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
#
BASEPLAT = i386
@@ -71,8 +70,6 @@ SONAME= $(VAR_RTLD_SONAME)
SGSMSGTARG += $(SGSMSGINTEL) $(SGSMSGINTEL32) $(SGSMSG32)
-MAPFILES += ../common/mapfile-32-vers
-
.KEEP_STATE:
all: $(RTLD)
diff --git a/usr/src/cmd/sgs/rtld/mdbmod/common/mapfile b/usr/src/cmd/sgs/rtld/mdbmod/common/mapfile
index 127d9bb27c..9f42664fc6 100644
--- a/usr/src/cmd/sgs/rtld/mdbmod/common/mapfile
+++ b/usr/src/cmd/sgs/rtld/mdbmod/common/mapfile
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,7 +35,9 @@
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
#
# Exported Interface
@@ -46,20 +47,20 @@ SUNWprivate_1.1 {
*;
};
-{
+SYMBOL_SCOPE {
#
# Imported Interface
#
- mdb_alloc = EXTERN;
- mdb_call_dcmd = EXTERN;
- mdb_dec_indent = EXTERN;
- mdb_getopts = EXTERN;
- mdb_inc_indent = EXTERN;
- mdb_lookup_by_obj = EXTERN;
- mdb_printf = EXTERN;
- mdb_pwalk = EXTERN;
- mdb_readstr = EXTERN;
- mdb_set_dot = EXTERN;
- mdb_vread = EXTERN;
- mdb_warn = EXTERN;
+ mdb_alloc { FLAGS = EXTERN };
+ mdb_call_dcmd { FLAGS = EXTERN };
+ mdb_dec_indent { FLAGS = EXTERN };
+ mdb_getopts { FLAGS = EXTERN };
+ mdb_inc_indent { FLAGS = EXTERN };
+ mdb_lookup_by_obj { FLAGS = EXTERN };
+ mdb_printf { FLAGS = EXTERN };
+ mdb_pwalk { FLAGS = EXTERN };
+ mdb_readstr { FLAGS = EXTERN };
+ mdb_set_dot { FLAGS = EXTERN };
+ mdb_vread { FLAGS = EXTERN };
+ mdb_warn { FLAGS = EXTERN };
};
diff --git a/usr/src/cmd/sgs/rtld/sparc/Makefile b/usr/src/cmd/sgs/rtld/sparc/Makefile
index e0e74ed0c4..ef605236f9 100644
--- a/usr/src/cmd/sgs/rtld/sparc/Makefile
+++ b/usr/src/cmd/sgs/rtld/sparc/Makefile
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Object lists are organized into primary (most frequently used code) and
@@ -76,8 +75,6 @@ ADBGENFLAGS += -milp32
ADBSUB= $(ADBSUB32)
SONAME= $(VAR_RTLD_SONAME)
-MAPFILES += ../common/mapfile-32-vers
-
SGSMSGTARG += $(SGSMSGSPARC) $(SGSMSGSPARC32) $(SGSMSG32)
.KEEP_STATE:
diff --git a/usr/src/cmd/sgs/rtld/sparcv9/Makefile b/usr/src/cmd/sgs/rtld/sparcv9/Makefile
index ce13492f59..a414aebbca 100644
--- a/usr/src/cmd/sgs/rtld/sparcv9/Makefile
+++ b/usr/src/cmd/sgs/rtld/sparcv9/Makefile
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Object lists are organized into primary (most frequently used code) and
@@ -77,8 +76,6 @@ CPPFLAGS += -D_ELF64
LINTFLAGS64 += $(VAR_LINTFLAGS64)
SONAME= $(VAR_RTLD_V9_SONAME)
-MAPFILES += ../common/mapfile-64-vers
-
SGSMSGTARG += $(SGSMSGSPARC) $(SGSMSGSPARC64) $(SGSMSG64)
LDLIB = -L ../../libld/$(MACH64)
diff --git a/usr/src/cmd/sgs/yacc/common/mapfile-vers b/usr/src/cmd/sgs/yacc/common/mapfile-vers
index a33180dea2..0dd3e28202 100644
--- a/usr/src/cmd/sgs/yacc/common/mapfile-vers
+++ b/usr/src/cmd/sgs/yacc/common/mapfile-vers
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -38,7 +37,9 @@
# MAPFILE HEADER END
#
-SUNW_1.1 {
+$mapfile_version 2
+
+SYMBOL_VERSION SUNW_1.1 {
global:
main;
yyerror;
diff --git a/usr/src/cmd/sh/mapfile-intf b/usr/src/cmd/sh/mapfile-intf
index fb6a3c077e..3989e36460 100644
--- a/usr/src/cmd/sh/mapfile-intf
+++ b/usr/src/cmd/sh/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,9 +37,11 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# The shell has a name clash (exp, hcreate). Demote everything to local
# besides the malloc family that must be exported.
-{
+SYMBOL_SCOPE {
global:
free;
malloc;
diff --git a/usr/src/cmd/ssh/sshd/mapfile-intf b/usr/src/cmd/ssh/sshd/mapfile-intf
index 4e92d243dc..6981212730 100644
--- a/usr/src/cmd/ssh/sshd/mapfile-intf
+++ b/usr/src/cmd/ssh/sshd/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
# sshd defines its own log(), as do various other ssh utilities, thus their
# symbols are reduced to locals via MAPFILE.NGB in Makefile-ssh.common. sshd
@@ -40,7 +39,10 @@
#
# MAPFILE HEADER END
#
-{
+
+$mapfile_version 2
+
+SYMBOL_SCOPE {
global:
allow_severity; # required by libwrap
deny_severity; # required by libwrap
diff --git a/usr/src/cmd/syseventd/modules/mapfile-extern b/usr/src/cmd/syseventd/modules/mapfile-extern
index 1bf5974857..40ac2430c9 100644
--- a/usr/src/cmd/syseventd/modules/mapfile-extern
+++ b/usr/src/cmd/syseventd/modules/mapfile-extern
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -36,11 +35,13 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# External interface requirements
-{
+SYMBOL_SCOPE {
global:
- debug_level = EXTERN;
- root_dir = EXTERN;
- syseventd_err_print = EXTERN;
- syseventd_print = EXTERN;
+ debug_level { FLAGS = EXTERN };
+ root_dir { FLAGS = EXTERN };
+ syseventd_err_print { FLAGS = EXTERN };
+ syseventd_print { FLAGS = EXTERN };
};
diff --git a/usr/src/cmd/tcpd/mapfile-intf-tcpdchk b/usr/src/cmd/tcpd/mapfile-intf-tcpdchk
index 395d2a06af..dbccafc10f 100644
--- a/usr/src/cmd/tcpd/mapfile-intf-tcpdchk
+++ b/usr/src/cmd/tcpd/mapfile-intf-tcpdchk
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,22 +37,24 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# tcpdchk interposes on numerous routines, and must export other data
# structures to satisfy external dependency requirements.
-{
+SYMBOL_SCOPE {
global:
- clean_exit = INTERPOSE;
- closelog = INTERPOSE;
- hosts_access_verbose = INTERPOSE;
- hosts_allow_table = INTERPOSE;
- hosts_deny_table = INTERPOSE;
- openlog = INTERPOSE;
- resident = INTERPOSE;
- rfc931 = INTERPOSE;
- rfc931_timeout = INTERPOSE;
- shell_cmd = INTERPOSE;
- syslog = INTERPOSE;
- vsyslog = INTERPOSE;
+ clean_exit { FLAGS = INTERPOSE };
+ closelog { FLAGS = INTERPOSE };
+ hosts_access_verbose { FLAGS = INTERPOSE };
+ hosts_allow_table { FLAGS = INTERPOSE };
+ hosts_deny_table { FLAGS = INTERPOSE };
+ openlog { FLAGS = INTERPOSE };
+ resident { FLAGS = INTERPOSE };
+ rfc931 { FLAGS = INTERPOSE };
+ rfc931_timeout { FLAGS = INTERPOSE };
+ shell_cmd { FLAGS = INTERPOSE };
+ syslog { FLAGS = INTERPOSE };
+ vsyslog { FLAGS = INTERPOSE };
allow_severity; # required by libwrap
deny_severity; # required by libwrap
diff --git a/usr/src/cmd/tcpd/mapfile-intf-tcpdmatch b/usr/src/cmd/tcpd/mapfile-intf-tcpdmatch
index f784cae9e4..c3397493e3 100644
--- a/usr/src/cmd/tcpd/mapfile-intf-tcpdmatch
+++ b/usr/src/cmd/tcpd/mapfile-intf-tcpdmatch
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,18 +37,20 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# tcpdmatch interposes on numerous routines, and must export other data
# structures to satisfy external dependency requirements.
-{
+SYMBOL_SCOPE {
global:
- clean_exit = INTERPOSE;
- closelog = INTERPOSE;
- openlog = INTERPOSE;
- rfc931 = INTERPOSE;
- rfc931_timeout = INTERPOSE;
- shell_cmd = INTERPOSE;
- syslog = INTERPOSE;
- vsyslog = INTERPOSE;
+ clean_exit { FLAGS = INTERPOSE };
+ closelog { FLAGS = INTERPOSE };
+ openlog { FLAGS = INTERPOSE };
+ rfc931 { FLAGS = INTERPOSE };
+ rfc931_timeout { FLAGS = INTERPOSE };
+ shell_cmd { FLAGS = INTERPOSE };
+ syslog { FLAGS = INTERPOSE };
+ vsyslog { FLAGS = INTERPOSE };
allow_severity; # required by libwrap
deny_severity; # required by libwrap
diff --git a/usr/src/cmd/tcpd/mapfile-intf-tryfrom b/usr/src/cmd/tcpd/mapfile-intf-tryfrom
index a4f78265fa..2035dffedd 100644
--- a/usr/src/cmd/tcpd/mapfile-intf-tryfrom
+++ b/usr/src/cmd/tcpd/mapfile-intf-tryfrom
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
# try-from interposes on numerous routines, and must export other data
# structures to satisfy external dependency requirements.
@@ -39,12 +38,15 @@
#
# MAPFILE HEADER END
#
-{
+
+$mapfile_version 2
+
+SYMBOL_SCOPE {
global:
- closelog = INTERPOSE;
- openlog = INTERPOSE;
- syslog = INTERPOSE;
- vsyslog = INTERPOSE;
+ closelog { FLAGS = INTERPOSE };
+ openlog { FLAGS = INTERPOSE };
+ syslog { FLAGS = INTERPOSE };
+ vsyslog { FLAGS = INTERPOSE };
allow_severity; # required by libwrap
deny_severity; # required by libwrap
diff --git a/usr/src/cmd/tic/mapfile-intf b/usr/src/cmd/tic/mapfile-intf
index 9a0e281f7f..8745cc14c5 100644
--- a/usr/src/cmd/tic/mapfile-intf
+++ b/usr/src/cmd/tic/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,10 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# tic interposes on progname[], so identify this as an interposer.
-{
+SYMBOL_SCOPE {
global:
- progname = INTERPOSE;
+ progname { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/tplot/mapfile-intf b/usr/src/cmd/tplot/mapfile-intf
index a281db0a93..c9bbff820a 100644
--- a/usr/src/cmd/tplot/mapfile-intf
+++ b/usr/src/cmd/tplot/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,10 +37,12 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# t* utilities interpose on a couple of libm and libt* items.
-{
+SYMBOL_SCOPE {
global:
- matherr = INTERPOSE;
- deltx = INTERPOSE;
- delty = INTERPOSE;
+ matherr { FLAGS = INTERPOSE };
+ deltx { FLAGS = INTERPOSE };
+ delty { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/wbem/provider/c/filesystems/wbem_nfs/lib/mapfile b/usr/src/cmd/wbem/provider/c/filesystems/wbem_nfs/lib/mapfile
index 502b92e993..207df3fa2f 100644
--- a/usr/src/cmd/wbem/provider/c/filesystems/wbem_nfs/lib/mapfile
+++ b/usr/src/cmd/wbem/provider/c/filesystems/wbem_nfs/lib/mapfile
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -35,7 +34,10 @@
#
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
cp_associatorNames ;
cp_associators ;
diff --git a/usr/src/cmd/wbem/provider/c/wbem_disk/lib/mapfile b/usr/src/cmd/wbem/provider/c/wbem_disk/lib/mapfile
index f219602bae..9d8868fa73 100644
--- a/usr/src/cmd/wbem/provider/c/wbem_disk/lib/mapfile
+++ b/usr/src/cmd/wbem/provider/c/wbem_disk/lib/mapfile
@@ -1,6 +1,5 @@
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
@@ -35,7 +34,10 @@
#
# MAPFILE HEADER END
#
-SUNWprivate_1.1 {
+
+$mapfile_version 2
+
+SYMBOL_VERSION SUNWprivate_1.1 {
global:
cp_associatorNames ;
cp_associators ;
diff --git a/usr/src/cmd/ypcmd/mapfile-intf b/usr/src/cmd/ypcmd/mapfile-intf
index b211154a6b..394d487a39 100644
--- a/usr/src/cmd/ypcmd/mapfile-intf
+++ b/usr/src/cmd/ypcmd/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,8 +37,10 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# makedbm interposes on _close.
-{
+SYMBOL_SCOPE {
global:
- _close = INTERPOSE;
+ _close { FLAGS = INTERPOSE };
};
diff --git a/usr/src/cmd/ypcmd/yppasswd/mapfile-intf b/usr/src/cmd/ypcmd/yppasswd/mapfile-intf
index 2337b3c840..c58c52c741 100644
--- a/usr/src/cmd/ypcmd/yppasswd/mapfile-intf
+++ b/usr/src/cmd/ypcmd/yppasswd/mapfile-intf
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -38,25 +37,27 @@
# MAPFILE HEADER END
#
+$mapfile_version 2
+
# rpc.yppasswdd interposes on a number of routines from libnisdb and libnsl, so
# define these as interposers. Note, libnisdb is itself an interposer, so
# these rpc.yppasswdd definitions are required to override libnisdb.
-{
+SYMBOL_SCOPE {
global:
- delete_map = INTERPOSE;
- hash = INTERPOSE;
- init_lock_map = INTERPOSE;
- lock_core = INTERPOSE;
- lock_map = INTERPOSE;
- mflag = INTERPOSE;
- nogecos = INTERPOSE;
- nopw = INTERPOSE;
- noshell = INTERPOSE;
- rename_map = INTERPOSE;
- single = INTERPOSE;
- unlock_core = INTERPOSE;
- unlock_map = INTERPOSE;
- validloginshell = INTERPOSE;
- validstr = INTERPOSE;
- xdr_yppasswd = INTERPOSE;
+ delete_map { FLAGS = INTERPOSE };
+ hash { FLAGS = INTERPOSE };
+ init_lock_map { FLAGS = INTERPOSE };
+ lock_core { FLAGS = INTERPOSE };
+ lock_map { FLAGS = INTERPOSE };
+ mflag { FLAGS = INTERPOSE };
+ nogecos { FLAGS = INTERPOSE };
+ nopw { FLAGS = INTERPOSE };
+ noshell { FLAGS = INTERPOSE };
+ rename_map { FLAGS = INTERPOSE };
+ single { FLAGS = INTERPOSE };
+ unlock_core { FLAGS = INTERPOSE };
+ unlock_map { FLAGS = INTERPOSE };
+ validloginshell { FLAGS = INTERPOSE };
+ validstr { FLAGS = INTERPOSE };
+ xdr_yppasswd { FLAGS = INTERPOSE };
};