xref: /titanic_41/exception_lists/check_rtime (revision e64d0ff97a1fb57a6e93e6d31ea549511c90b318)
175ce41a5SAli Bahrami#
275ce41a5SAli Bahrami# CDDL HEADER START
375ce41a5SAli Bahrami#
475ce41a5SAli Bahrami# The contents of this file are subject to the terms of the
575ce41a5SAli Bahrami# Common Development and Distribution License (the "License").
675ce41a5SAli Bahrami# You may not use this file except in compliance with the License.
775ce41a5SAli Bahrami#
875ce41a5SAli Bahrami# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
975ce41a5SAli Bahrami# or http://www.opensolaris.org/os/licensing.
1075ce41a5SAli Bahrami# See the License for the specific language governing permissions
1175ce41a5SAli Bahrami# and limitations under the License.
1275ce41a5SAli Bahrami#
1375ce41a5SAli Bahrami# When distributing Covered Code, include this CDDL HEADER in each
1475ce41a5SAli Bahrami# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1575ce41a5SAli Bahrami# If applicable, add the following below this CDDL HEADER, with the
1675ce41a5SAli Bahrami# fields enclosed by brackets "[]" replaced with your own identifying
1775ce41a5SAli Bahrami# information: Portions Copyright [yyyy] [name of copyright owner]
1875ce41a5SAli Bahrami#
1975ce41a5SAli Bahrami# CDDL HEADER END
2075ce41a5SAli Bahrami#
2175ce41a5SAli Bahrami
2275ce41a5SAli Bahrami#
2375ce41a5SAli Bahrami# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2475ce41a5SAli Bahrami# Use is subject to license terms.
2575ce41a5SAli Bahrami#
2675ce41a5SAli Bahrami
2775ce41a5SAli Bahrami# This file provides exceptions to the usual rules applied to ELF objects by
2875ce41a5SAli Bahrami# check_rtime. All strings are Perl regular expressions that are compared to
2975ce41a5SAli Bahrami# file paths. In addition to the standard Perl syntax, there is one extension:
3075ce41a5SAli Bahrami#
3175ce41a5SAli Bahrami#	MACH(dir)
3275ce41a5SAli Bahrami#
3375ce41a5SAli Bahrami# is expanded into a regular expression that matches the given
3475ce41a5SAli Bahrami# directory, or a 64-bit subdirectory of the directory with the
3575ce41a5SAli Bahrami# name of a 64-bit architecture. For example, MACH(lib) will match
3675ce41a5SAli Bahrami# any of the following:
3775ce41a5SAli Bahrami#
3875ce41a5SAli Bahrami#	lib
3975ce41a5SAli Bahrami#	lib/amd64
4075ce41a5SAli Bahrami#	lib/sparcv9
4175ce41a5SAli Bahrami
4275ce41a5SAli Bahrami
4375ce41a5SAli Bahrami# Directory hierarchies to skip completely
4475ce41a5SAli BahramiSKIP		^usr/lib/libc/			# optimized libc
4575ce41a5SAli BahramiSKIP		^usr/lib/rcm/			# 4426119
4675ce41a5SAli BahramiSKIP		^usr/perl5/			# alan's taking care of these :-)
4775ce41a5SAli BahramiSKIP		^usr/src/			# no objects in source code
4875ce41a5SAli Bahrami
4975ce41a5SAli Bahrami# Individual files that we don't examine
5075ce41a5SAli BahramiSKIP		^boot/grub/bin/grub$
5175ce41a5SAli BahramiSKIP		^usr/apache/libexec/mod_ipp.so$	# Apache loadable module
5275ce41a5SAli Bahrami# USIII specific extns. cause ldd noise on USII bld. m/c
5375ce41a5SAli BahramiSKIP		^usr/lib/fps/sun4u/UltraSPARC.*/fptest$
5475ce41a5SAli BahramiSKIP		^usr/MACH(lib)/lddstub$		# lddstub has no dependencies
5575ce41a5SAli BahramiSKIP		^usr/MACH(lib)/libssagent\.so\.1$	# 4328854
5675ce41a5SAli BahramiSKIP		^usr/lib/MACH(iconv)/geniconvtbl.so$	# 4384329
5775ce41a5SAli Bahrami
5875ce41a5SAli Bahrami# picl file exclusions (4385799)
5975ce41a5SAli BahramiSKIP		^usr/platform/.*/libpsvcplugin_psr\.so\.1
6075ce41a5SAli BahramiSKIP		^usr/platform/.*/libpsvcpolicy_psr\.so\.1
6175ce41a5SAli BahramiSKIP		^usr/platform/.*/libpsvcpolicy\.so\.1
6275ce41a5SAli BahramiSKIP		^usr/lib/sysevent/modules/picl_slm.so$
6375ce41a5SAli Bahrami
6475ce41a5SAli Bahrami# Objects that don't require a non-executable stack definition
6575ce41a5SAli BahramiEXEC_STACK	^platform/.*/MACH(kernel)/unix$
6675ce41a5SAli BahramiEXEC_STACK	^platform/.*/multiboot$
6775ce41a5SAli Bahrami
6875ce41a5SAli Bahrami# Objects for which we allow relocations to the text segment
6975ce41a5SAli BahramiTEXTREL		^platform/.*/MACH(kernel)/unix$
7075ce41a5SAli Bahrami
7175ce41a5SAli Bahrami# Directories and files that are allowed to have no direct bound symbols
7275ce41a5SAli BahramiNODIRECT	^platform/.*/MACH(kernel)/unix$
7375ce41a5SAli BahramiNODIRECT	^usr/ucb
7475ce41a5SAli BahramiNODIRECT	^usr/4lib/sbcp$
7575ce41a5SAli Bahrami
7675ce41a5SAli Bahrami# Identify any files that should be skipped when building a crle(1)
7775ce41a5SAli Bahrami# configuration file.  As the hwcap libraries can be loop-back mounted onto
7875ce41a5SAli Bahrami# libc, these can confuse crle(1) because of their identical dev/inode.
7975ce41a5SAli BahramiNOCRLEALT	^usr/lib/libc/libc_hwcap[1-3].so.1$
8075ce41a5SAli Bahrami
8175ce41a5SAli Bahrami# Files that should contain debugging information.
8275ce41a5SAli BahramiSTAB	^platform/.*/MACH(kernel)/unix$
8375ce41a5SAli Bahrami
8475ce41a5SAli Bahrami# Files that are allowed undefined references
8575ce41a5SAli BahramiUNDEF_REF	^usr/lib/libnisdb\.so\.2$
8675ce41a5SAli BahramiUNDEF_REF	^usr/snadm/lib/libsvm\.so\.1$
8775ce41a5SAli Bahrami
8875ce41a5SAli Bahrami# Objects allowed to have unused dependencies
8975ce41a5SAli BahramiUNUSED_DEPS	^usr/lib/picl/plugins/		# require devtree dependencies
9075ce41a5SAli BahramiUNUSED_DEPS	^usr/lib/libp	# profile libc makes libm an unused dep of libc
9175ce41a5SAli Bahrami
9275ce41a5SAli Bahrami# libm.so.2 dependency
9375ce41a5SAli BahramiUNUSED_OBJ	unused object=.*MACH(libm)/libm_hwcap1\.so\.2
9475ce41a5SAli Bahrami
9575ce41a5SAli Bahrami# Unused runpaths due to dlopen() use
9675ce41a5SAli BahramiUNUSED_RPATH	/usr/lib/fs/autofs.*\ from\ .automountd
9775ce41a5SAli BahramiUNUSED_RPATH	/etc/ppp/plugins.*\ from\ .*pppd
9875ce41a5SAli BahramiUNUSED_RPATH	/usr/lib/inet/ppp.*\ from\ .*pppd
9975ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libipsecutil\.so\.1
10075ce41a5SAli BahramiUNUSED_RPATH	/usr/platform/.*rsmlib.*\ from\ .*librsm\.so\.2
10175ce41a5SAli BahramiUNUSED_RPATH	\$ORIGIN.*\ from\ .*fcode.so
10275ce41a5SAli BahramiUNUSED_RPATH	/opt/VRTSvxvm/lib.*\ from\ .*libdiskmgt\.so\.1
10375ce41a5SAli Bahrami
10475ce41a5SAli Bahrami# Unused runpaths in picl code
10575ce41a5SAli BahramiUNUSED_RPATH	/usr/platform/.*\ from\ .*/usr/platform
10675ce41a5SAli BahramiUNUSED_RPATH	/usr/lib/picl/.*\ from\ .*/usr/platform
10775ce41a5SAli BahramiUNUSED_RPATH	/usr/platform/.*\ from\ .*/usr/lib/picl
10875ce41a5SAli Bahrami
10975ce41a5SAli Bahrami# Unused runpaths in non-OSNET objects we can't change
11075ce41a5SAli BahramiUNUSED_RPATH	/usr/lib/mps.*\ from\ .*libnss3\.so
111*e64d0ff9SAli BahramiUNUSED_RPATH	/usr/lib/mps.*\ from\ .*libnssutil3\.so
112*e64d0ff9SAli BahramiUNUSED_RPATH	/usr/lib/mps.*\ from\ .*libsmime3\.so
113*e64d0ff9SAli BahramiUNUSED_RPATH	/usr/lib/mps.*\ from\ .*libssl3\.so
11475ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libdbus-1\.so\.3
11575ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libdbus-glib-1\.so\.2
11675ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libglib-2\.0\.so\.0
11775ce41a5SAli BahramiUNUSED_RPATH	/usr/X11/lib.*\ from\ .*libglib-2\.0\.so\.0
11875ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libgmodule-2\.0\.so\.0
11975ce41a5SAli BahramiUNUSED_RPATH	/usr/X11/lib.*\ from\ .*libgmodule-2\.0\.so\.0
12075ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libgnomevfs-2\.so\.0
12175ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libgobject-2\.0\.so\.0
12275ce41a5SAli BahramiUNUSED_RPATH	/usr/X11/lib.*\ from\ .*libgobject-2\.0\.so\.0
12375ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libgthread-2\.0\.so\.0
12475ce41a5SAli BahramiUNUSED_RPATH	/usr/X11/lib.*\ from\ .*libgthread-2\.0\.so\.0
12575ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libcrypto\.so\.0\.9\.8
12675ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libnetsnmp\.so\.15
12775ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libgcc_s\.so\.1
12875ce41a5SAli BahramiUNUSED_RPATH	/usr/postgres/8.3/lib.*\ from\ .*libpq\.so\.5
12975ce41a5SAli BahramiUNUSED_RPATH	/usr/sfw/lib.*\ from\ .*libpq\.so\.5
13075ce41a5SAli Bahrami
13175ce41a5SAli Bahrami# Unused runpaths for reasons not captured above
13275ce41a5SAli BahramiUNUSED_RPATH	/usr/lib/smbsrv.*\ from\ .*libsmb\.so\.1 	# future needs
13375ce41a5SAli BahramiUNUSED_RPATH	/usr.*\ from\ .*tst\.gcc\.exe			# gcc built
13475ce41a5SAli Bahrami
13575ce41a5SAli Bahrami
13675ce41a5SAli Bahrami# Unreferenced objects of non-OSnet objects we can't change
13775ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libcimapi\.so
13875ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libjvm\.so
13975ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libnetsnmp\.so\.15
14075ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libnetsnmpagent\.so\.15
14175ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libnetsnmpmibs\.so\.15
14275ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libnetsnmphelpers\.so\.15
14375ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libnspr4\.so
14475ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libpq\.so\.5
14575ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libsoftokn3\.so
14675ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libspmicommon\.so\.1
14775ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libspmocommon\.so\.1
14875ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libssl3\.so
14975ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libtspi\.so\.1
15075ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libxml2\.so\.2
15175ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libxslt\.so\.1
15275ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libpq\.so\.4
15375ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*libpython2\.4\.so\.1\.0
15475ce41a5SAli Bahrami
15575ce41a5SAli Bahrami# Unreferenced object of objects we can't change for other reasons
15675ce41a5SAli BahramiUNREF_OBJ	/libmapmalloc\.so\.1;\ unused\ dependency\ of	# interposer
15775ce41a5SAli BahramiUNREF_OBJ	/libstdc\+\+\.so\.6;\ unused\ dependency\ of	# gcc build
15875ce41a5SAli BahramiUNREF_OBJ	/libm\.so\.2.*\ of\ .*libstdc\+\+\.so\.6	# gcc build
15975ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*/lib/picl/plugins/		# picl
16075ce41a5SAli BahramiUNREF_OBJ	/lib.*\ of\ .*kcfd				# interposer
16175ce41a5SAli BahramiUNREF_OBJ	/libpkcs11\.so\.1; .*\ of\ .*libkmf\.so\.1	# interposed
16275ce41a5SAli Bahrami
16375ce41a5SAli Bahrami# Objects that used to contain system functionalty that has since
16475ce41a5SAli Bahrami# migrated to libc. We preserve these libraries as pure filters for
16575ce41a5SAli Bahrami# backward compatability but nothing needs to link to them.
16675ce41a5SAli BahramiOLDDEP		libaio\.so\.1			# onnv build 44
16775ce41a5SAli BahramiOLDDEP		libdl\.so\.1			# on10 build 49
16875ce41a5SAli BahramiOLDDEP		libdoor\.so\.1			# onnv build 12
16975ce41a5SAli BahramiOLDDEP		libintl\.so\.1			# on297 build 7
17075ce41a5SAli BahramiOLDDEP		libpthread\.so\.1		# on10 build 53
17175ce41a5SAli BahramiOLDDEP		librt\.so\.1			# onnv build 44
17275ce41a5SAli BahramiOLDDEP		libsched\.so\.1			# on10 build 36
17375ce41a5SAli BahramiOLDDEP		libthread\.so\.1		# on10 build 53
17475ce41a5SAli BahramiOLDDEP		libw\.so\.1			# on297 build 7
17575ce41a5SAli Bahrami
17675ce41a5SAli Bahrami# Files for which we skip checking of duplicate addresses in the
17775ce41a5SAli Bahrami# symbol sort sections. Such exceptions should be rare --- most code will
17875ce41a5SAli Bahrami# not have duplicate addresses, since it takes assember or a "#pragma weak"
17975ce41a5SAli Bahrami# to do such aliasing in C. C++ is different: The compiler generates aliases
18075ce41a5SAli Bahrami# for implementation reasons, and the mangled names used to encode argument
18175ce41a5SAli Bahrami# and return value types are difficult to handle well in mapfiles.
18275ce41a5SAli Bahrami# Furthermore, the Sun compiler and gcc use different and incompatible
18375ce41a5SAli Bahrami# name mangling conventions. Since ON must be buildable by either, we
18475ce41a5SAli Bahrami# would have to maintain two sets of mapfiles for each such object.
18575ce41a5SAli Bahrami# C++ use is rare in ON, so this is not worth pursuing.
18675ce41a5SAli Bahrami#
18775ce41a5SAli BahramiNOSYMSORT	opt/SUNWdtrt/tst/common/pid/tst.weak2.exe	# DTrace test
18875ce41a5SAli BahramiNOSYMSORT	lib/amd64/libnsl\.so\.1				# C++
18975ce41a5SAli BahramiNOSYMSORT	lib/sparcv9/libnsl\.so\.1			# C++
19075ce41a5SAli BahramiNOSYMSORT	lib/sparcv9/libfru\.so\.1			# C++
19175ce41a5SAli BahramiNOSYMSORT	usr/lib/sgml/nsgmls				# C++
19275ce41a5SAli BahramiNOSYMSORT	usr/lib/lms					# C++
19375ce41a5SAli BahramiNOSYMSORT	ld\.so\.1					# libc_pic.a user
19475ce41a5SAli BahramiNOSYMSORT	lib/libsun_fc\.so\.1				# C++
19575ce41a5SAli BahramiNOSYMSORT	lib/amd64/libsun_fc\.so\.1			# C++
19675ce41a5SAli BahramiNOSYMSORT	lib/sparcv9/libsun_fc\.so\.1 			# C++
1976bbe0590SSundeep PanickerNOSYMSORT	usr/lib/amd64/libfru\.so\.1			# C++
19875ce41a5SAli Bahrami
19975ce41a5SAli Bahrami
20075ce41a5SAli Bahrami# The libprtdiag_psr.so.1 objects built under usr/src/lib/libprtdiag_psr
20175ce41a5SAli Bahrami# are a family, all built using the same makefile, targeted at different
20275ce41a5SAli Bahrami# sparc hardware variants. There are a small number of cases where this
20375ce41a5SAli Bahrami# one size fits all approach causes an object to be linked against an
20475ce41a5SAli Bahrami# unneeded library.
20575ce41a5SAli BahramiUNREF_OBJ	lib/(libdevinfo|libcfgadm)\.so\.1; .*\ of\ .*SUNW,Netra-CP2300/lib/libprtdiag_psr\.so\.1
20675ce41a5SAli Bahrami
20775ce41a5SAli Bahrami
208