check_rtime revision 4f14b0f29aa144cc03efdde5508ae126ae197acf
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
873N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A#
4426N/A
6027N/A# This file provides exceptions to the usual rules applied to ELF objects by
0N/A# check_rtime. All strings are Perl regular expressions that are compared to
0N/A# file paths. In addition to the standard Perl syntax, there is one extension:
0N/A#
0N/A# MACH(dir)
1689N/A#
0N/A# is expanded into a regular expression that matches the given
0N/A# directory, or a 64-bit subdirectory of the directory with the
0N/A# name of a 64-bit architecture. For example, MACH(lib) will match
6027N/A# any of the following:
773N/A#
0N/A# lib
0N/A# lib/amd64
0N/A# lib/sparcv9
0N/A
0N/A
0N/A# Directory hierarchies to skip completely
0N/ASKIP ^usr/lib/libc/ # optimized libc
2390N/ASKIP ^usr/lib/rcm/ # 4426119
0N/ASKIP ^usr/perl5/ # alan's taking care of these :-)
0N/ASKIP ^usr/src/ # no objects in source code
1689N/A
3861N/A# Individual files that we don't examine
1689N/ASKIP ^boot/grub/bin/grub$
4134N/ASKIP ^usr/apache/libexec/mod_ipp.so$ # Apache loadable module
2390N/A# USIII specific extns. cause ldd noise on USII bld. m/c
2390N/ASKIP ^usr/lib/fps/sun4u/UltraSPARC.*/fptest$
2390N/ASKIP ^usr/MACH(lib)/lddstub$ # lddstub has no dependencies
2390N/ASKIP ^usr/MACH(lib)/libssagent\.so\.1$ # 4328854
2390N/ASKIP ^usr/lib/MACH(iconv)/geniconvtbl.so$ # 4384329
2390N/A
2390N/A# picl file exclusions (4385799)
6153N/ASKIP ^usr/platform/.*/libpsvcplugin_psr\.so\.1
2390N/ASKIP ^usr/platform/.*/libpsvcpolicy_psr\.so\.1
2390N/ASKIP ^usr/platform/.*/libpsvcpolicy\.so\.1
2390N/ASKIP ^usr/lib/sysevent/modules/picl_slm.so$
0N/A
0N/A# Objects that are allowed to have executable data segments
0N/AEXEC_DATA ^MACH(lib)/ld\.so\.1$
0N/AEXEC_DATA ^lib/libc\.so\.1$ # 6524709, 32-bit, needed for x86 only
0N/AEXEC_DATA ^opt/SUNWdtrt/tst/.*/ustack/tst\.helper\.exe$
0N/AEXEC_DATA ^platform/.*/MACH(kernel)/unix$
0N/AEXEC_DATA ^platform/.*/multiboot$
2095N/A
2095N/A# Objects that are allowed to have an executable stack
2095N/AEXEC_STACK ^platform/.*/MACH(kernel)/unix$
2095N/AEXEC_STACK ^platform/.*/multiboot$
2095N/A
2095N/A# Objects for which we allow relocations to the text segment
0N/ATEXTREL ^platform/.*/MACH(kernel)/unix$
0N/A
1079N/A# Directories and files that are allowed to have no direct bound symbols
1400N/ANODIRECT ^platform/.*/MACH(kernel)/unix$
1400N/ANODIRECT ^usr/ucb
1400N/ANODIRECT ^usr/4lib/sbcp$
1400N/A
1400N/A# Identify any files that should be skipped when building a crle(1)
6027N/A# configuration file. As the hwcap libraries can be loop-back mounted onto
1079N/A# libc, these can confuse crle(1) because of their identical dev/inode.
1079N/ANOCRLEALT ^usr/lib/libc/libc_hwcap[1-3].so.1$
1079N/A
1079N/A# Files that should contain debugging information.
1079N/ASTAB ^platform/.*/MACH(kernel)/unix$
1079N/A
1079N/A# Files that are allowed undefined references
6153N/AUNDEF_REF ^usr/lib/libnisdb\.so\.2$
0N/AUNDEF_REF ^usr/snadm/lib/libsvm\.so\.1$
0N/A
6153N/A# Objects allowed to have unused dependencies
0N/AUNUSED_DEPS ^usr/lib/picl/plugins/ # require devtree dependencies
0N/AUNUSED_DEPS ^usr/lib/libp # profile libc makes libm an unused dep of libc
6153N/A
0N/A# libm.so.2 dependency
0N/AUNUSED_OBJ unused object=.*MACH(libm)/libm_hwcap1\.so\.2
6153N/A
0N/A# Unused runpaths due to dlopen() use
0N/AUNUSED_RPATH /usr/lib/fs/autofs.*\ from\ .automountd
6153N/AUNUSED_RPATH /etc/ppp/plugins.*\ from\ .*pppd
6027N/AUNUSED_RPATH /usr/lib/inet/ppp.*\ from\ .*pppd
0N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libipsecutil\.so\.1
0N/AUNUSED_RPATH /usr/platform/.*rsmlib.*\ from\ .*librsm\.so\.2
0N/AUNUSED_RPATH \$ORIGIN.*\ from\ .*fcode.so
0N/AUNUSED_RPATH /opt/VRTSvxvm/lib.*\ from\ .*libdiskmgt\.so\.1
0N/A
0N/A# Unused runpaths in picl code
0N/AUNUSED_RPATH /usr/platform/.*\ from\ .*/usr/platform
0N/AUNUSED_RPATH /usr/lib/picl/.*\ from\ .*/usr/platform
0N/AUNUSED_RPATH /usr/platform/.*\ from\ .*/usr/lib/picl
0N/A
0N/A# Unused runpaths in non-OSNET objects we can't change
0N/AUNUSED_RPATH /usr/lib/mps.*\ from\ .*libnss3\.so
0N/AUNUSED_RPATH /usr/lib/mps.*\ from\ .*libnssutil3\.so
0N/AUNUSED_RPATH /usr/lib/mps.*\ from\ .*libsmime3\.so
0N/AUNUSED_RPATH /usr/lib/mps.*\ from\ .*libssl3\.so
0N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libdbus-1\.so\.3
0N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libdbus-glib-1\.so\.2
765N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libglib-2\.0\.so\.0
0N/AUNUSED_RPATH /usr/X11/lib.*\ from\ .*libglib-2\.0\.so\.0
0N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgmodule-2\.0\.so\.0
0N/AUNUSED_RPATH /usr/X11/lib.*\ from\ .*libgmodule-2\.0\.so\.0
0N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgnomevfs-2\.so\.0
3861N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgobject-2\.0\.so\.0
3861N/AUNUSED_RPATH /usr/X11/lib.*\ from\ .*libgobject-2\.0\.so\.0
0N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgthread-2\.0\.so\.0
0N/AUNUSED_RPATH /usr/X11/lib.*\ from\ .*libgthread-2\.0\.so\.0
773N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libcrypto\.so\.0\.9\.8
773N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libnetsnmp\.so\.15
773N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgcc_s\.so\.1
0N/AUNUSED_RPATH /usr/postgres/8.3/lib.*\ from\ .*libpq\.so\.5
0N/AUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libpq\.so\.5
773N/A
773N/A# Unused runpaths for reasons not captured above
773N/AUNUSED_RPATH /usr/lib/smbsrv.*\ from\ .*libsmb\.so\.1 # future needs
773N/AUNUSED_RPATH /usr.*\ from\ .*tst\.gcc\.exe # gcc built
773N/A
773N/A
773N/A# Unreferenced objects of non-OSnet objects we can't change
773N/AUNREF_OBJ /lib.*\ of\ .*libcimapi\.so
773N/AUNREF_OBJ /lib.*\ of\ .*libdbus-1\.so\.3
773N/AUNREF_OBJ /lib.*\ of\ .*libdbus-glib-1\.so\.2
773N/AUNREF_OBJ /lib.*\ of\ .*libgconf-2\.so\.4
773N/AUNREF_OBJ /lib.*\ of\ .*libglib-2.0\.so\.0
773N/AUNREF_OBJ /lib.*\ of\ .*libgmodule-2.0\.so\.0
773N/AUNREF_OBJ /lib.*\ of\ .*libgobject-2.0\.so\.0
773N/AUNREF_OBJ /lib.*\ of\ .*libgnomevfs-2\.so\.0
773N/AUNREF_OBJ /lib.*\ of\ .*libgthread-2\.0\.so\.0
773N/AUNREF_OBJ /lib.*\ of\ .*libjvm\.so
773N/AUNREF_OBJ /lib.*\ of\ .*libnetsnmp\.so\.15
773N/AUNREF_OBJ /lib.*\ of\ .*libnetsnmpagent\.so\.15
773N/AUNREF_OBJ /lib.*\ of\ .*libnetsnmpmibs\.so\.15
773N/AUNREF_OBJ /lib.*\ of\ .*libnetsnmphelpers\.so\.15
773N/AUNREF_OBJ /lib.*\ of\ .*libnspr4\.so
773N/AUNREF_OBJ /lib.*\ of\ .*libORBit-2\.so\.0
773N/AUNREF_OBJ /lib.*\ of\ .*libpq\.so\.5
3853N/AUNREF_OBJ /lib.*\ of\ .*libsoftokn3\.so
3853N/AUNREF_OBJ /lib.*\ of\ .*libspmicommon\.so\.1
773N/AUNREF_OBJ /lib.*\ of\ .*libspmocommon\.so\.1
773N/AUNREF_OBJ /lib.*\ of\ .*libssl3\.so
773N/AUNREF_OBJ /lib.*\ of\ .*libtspi\.so\.1
3853N/AUNREF_OBJ /lib.*\ of\ .*libxml2\.so\.2
773N/AUNREF_OBJ /lib.*\ of\ .*libxslt\.so\.1
773N/AUNREF_OBJ /lib.*\ of\ .*libpq\.so\.4
773N/AUNREF_OBJ /lib.*\ of\ .*libpython2\.4\.so\.1\.0
3853N/A
3853N/A# Unreferenced object of objects we can't change for other reasons
3853N/AUNREF_OBJ /libmapmalloc\.so\.1;\ unused\ dependency\ of # interposer
773N/AUNREF_OBJ /libstdc\+\+\.so\.6;\ unused\ dependency\ of # gcc build
773N/AUNREF_OBJ /libm\.so\.2.*\ of\ .*libstdc\+\+\.so\.6 # gcc build
773N/AUNREF_OBJ /lib.*\ of\ .*/lib/picl/plugins/ # picl
773N/AUNREF_OBJ /lib.*\ of\ .*kcfd # interposer
773N/AUNREF_OBJ /libpkcs11\.so\.1; .*\ of\ .*libkmf\.so\.1 # interposed
773N/A
1712N/A# Objects that used to contain system functionalty that has since
1712N/A# migrated to libc. We preserve these libraries as pure filters for
1712N/A# backward compatability but nothing needs to link to them.
1712N/AOLDDEP libaio\.so\.1 # onnv build 44
3853N/AOLDDEP libdl\.so\.1 # on10 build 49
1712N/AOLDDEP libdoor\.so\.1 # onnv build 12
1712N/AOLDDEP libintl\.so\.1 # on297 build 7
4134N/AOLDDEP libpthread\.so\.1 # on10 build 53
1712N/AOLDDEP librt\.so\.1 # onnv build 44
1712N/AOLDDEP libsched\.so\.1 # on10 build 36
3853N/AOLDDEP libthread\.so\.1 # on10 build 53
1712N/AOLDDEP libw\.so\.1 # on297 build 7
1712N/A
1712N/A# Files for which we skip checking of duplicate addresses in the
773N/A# symbol sort sections. Such exceptions should be rare --- most code will
773N/A# not have duplicate addresses, since it takes assember or a "#pragma weak"
773N/A# to do such aliasing in C. C++ is different: The compiler generates aliases
773N/A# for implementation reasons, and the mangled names used to encode argument
773N/A# and return value types are difficult to handle well in mapfiles.
0N/A# Furthermore, the Sun compiler and gcc use different and incompatible
195N/A# name mangling conventions. Since ON must be buildable by either, we
773N/A# would have to maintain two sets of mapfiles for each such object.
776N/A# C++ use is rare in ON, so this is not worth pursuing.
1057N/A#
1057N/ANOSYMSORT opt/SUNWdtrt/tst/common/pid/tst.weak2.exe # DTrace test
2095N/ANOSYMSORT lib/amd64/libnsl\.so\.1 # C++
1057N/ANOSYMSORT lib/sparcv9/libnsl\.so\.1 # C++
0N/ANOSYMSORT lib/sparcv9/libfru\.so\.1 # C++
0N/ANOSYMSORT usr/lib/sgml/nsgmls # C++
0N/ANOSYMSORT usr/lib/lms # C++
868N/ANOSYMSORT ld\.so\.1 # libc_pic.a user
868N/ANOSYMSORT lib/libsun_fc\.so\.1 # C++
1400N/ANOSYMSORT lib/amd64/libsun_fc\.so\.1 # C++
868N/ANOSYMSORT lib/sparcv9/libsun_fc\.so\.1 # C++
0N/ANOSYMSORT usr/lib/amd64/libfru\.so\.1 # C++
2086N/ANOSYMSORT usr/lib/libkmsagent\.so\.1 # C++
2086N/ANOSYMSORT usr/lib/amd64/libkmsagent\.so\.1 # C++
0N/ANOSYMSORT usr/lib/sparcv9/libkmsagent\.so\.1 # C++
0N/A
0N/A
0N/A# The libprtdiag_psr.so.1 objects built under usr/src/lib/libprtdiag_psr
0N/A# are a family, all built using the same makefile, targeted at different
0N/A# sparc hardware variants. There are a small number of cases where this
0N/A# one size fits all approach causes an object to be linked against an
0N/A# unneeded library.
0N/AUNREF_OBJ lib/(libdevinfo|libcfgadm)\.so\.1; .*\ of\ .*SUNW,Netra-CP2300/lib/libprtdiag_psr\.so\.1
0N/A
0N/A
0N/A