110355SAli.Bahrami@Sun.COM# 210355SAli.Bahrami@Sun.COM# CDDL HEADER START 310355SAli.Bahrami@Sun.COM# 410355SAli.Bahrami@Sun.COM# The contents of this file are subject to the terms of the 510355SAli.Bahrami@Sun.COM# Common Development and Distribution License (the "License"). 610355SAli.Bahrami@Sun.COM# You may not use this file except in compliance with the License. 710355SAli.Bahrami@Sun.COM# 810355SAli.Bahrami@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 910355SAli.Bahrami@Sun.COM# or http://www.opensolaris.org/os/licensing. 1010355SAli.Bahrami@Sun.COM# See the License for the specific language governing permissions 1110355SAli.Bahrami@Sun.COM# and limitations under the License. 1210355SAli.Bahrami@Sun.COM# 1310355SAli.Bahrami@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 1410355SAli.Bahrami@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1510355SAli.Bahrami@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 1610355SAli.Bahrami@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 1710355SAli.Bahrami@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 1810355SAli.Bahrami@Sun.COM# 1910355SAli.Bahrami@Sun.COM# CDDL HEADER END 2010355SAli.Bahrami@Sun.COM# 2110355SAli.Bahrami@Sun.COM 2210355SAli.Bahrami@Sun.COM# 2312478SAli.Bahrami@Oracle.COM# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 2410355SAli.Bahrami@Sun.COM# 2510355SAli.Bahrami@Sun.COM 2610355SAli.Bahrami@Sun.COM# This file provides exceptions to the usual rules applied to ELF objects by 2710355SAli.Bahrami@Sun.COM# check_rtime. All strings are Perl regular expressions that are compared to 2810355SAli.Bahrami@Sun.COM# file paths. In addition to the standard Perl syntax, there is one extension: 2910355SAli.Bahrami@Sun.COM# 3010355SAli.Bahrami@Sun.COM# MACH(dir) 3110355SAli.Bahrami@Sun.COM# 3210355SAli.Bahrami@Sun.COM# is expanded into a regular expression that matches the given 3310355SAli.Bahrami@Sun.COM# directory, or a 64-bit subdirectory of the directory with the 3410355SAli.Bahrami@Sun.COM# name of a 64-bit architecture. For example, MACH(lib) will match 3510355SAli.Bahrami@Sun.COM# any of the following: 3610355SAli.Bahrami@Sun.COM# 3710355SAli.Bahrami@Sun.COM# lib 3810355SAli.Bahrami@Sun.COM# lib/amd64 3910355SAli.Bahrami@Sun.COM# lib/sparcv9 4010355SAli.Bahrami@Sun.COM 4110355SAli.Bahrami@Sun.COM 4210355SAli.Bahrami@Sun.COM# Directory hierarchies to skip completely 4310355SAli.Bahrami@Sun.COMSKIP ^usr/lib/libc/ # optimized libc 4410355SAli.Bahrami@Sun.COMSKIP ^usr/lib/rcm/ # 4426119 4510355SAli.Bahrami@Sun.COMSKIP ^usr/perl5/ # alan's taking care of these :-) 4610355SAli.Bahrami@Sun.COMSKIP ^usr/src/ # no objects in source code 4710355SAli.Bahrami@Sun.COM 4810355SAli.Bahrami@Sun.COM# Individual files that we don't examine 4910355SAli.Bahrami@Sun.COMSKIP ^boot/grub/bin/grub$ 5010355SAli.Bahrami@Sun.COMSKIP ^usr/apache/libexec/mod_ipp.so$ # Apache loadable module 5110355SAli.Bahrami@Sun.COM# USIII specific extns. cause ldd noise on USII bld. m/c 5210355SAli.Bahrami@Sun.COMSKIP ^usr/lib/fps/sun4u/UltraSPARC.*/fptest$ 5310355SAli.Bahrami@Sun.COMSKIP ^usr/MACH(lib)/lddstub$ # lddstub has no dependencies 5410355SAli.Bahrami@Sun.COMSKIP ^usr/MACH(lib)/libssagent\.so\.1$ # 4328854 5510355SAli.Bahrami@Sun.COMSKIP ^usr/lib/MACH(iconv)/geniconvtbl.so$ # 4384329 5610355SAli.Bahrami@Sun.COM 5710355SAli.Bahrami@Sun.COM# picl file exclusions (4385799) 5810355SAli.Bahrami@Sun.COMSKIP ^usr/platform/.*/libpsvcplugin_psr\.so\.1 5910355SAli.Bahrami@Sun.COMSKIP ^usr/platform/.*/libpsvcpolicy_psr\.so\.1 6010355SAli.Bahrami@Sun.COMSKIP ^usr/platform/.*/libpsvcpolicy\.so\.1 6110355SAli.Bahrami@Sun.COMSKIP ^usr/lib/sysevent/modules/picl_slm.so$ 6210355SAli.Bahrami@Sun.COM 6312478SAli.Bahrami@Oracle.COM# Objects that are allowed to have executable data segments 6412478SAli.Bahrami@Oracle.COMEXEC_DATA ^MACH(lib)/ld\.so\.1$ 6512478SAli.Bahrami@Oracle.COMEXEC_DATA ^lib/libc\.so\.1$ # 6524709, 32-bit, needed for x86 only 6612478SAli.Bahrami@Oracle.COMEXEC_DATA ^opt/SUNWdtrt/tst/.*/ustack/tst\.helper\.exe$ 6712478SAli.Bahrami@Oracle.COMEXEC_DATA ^platform/.*/MACH(kernel)/unix$ 6812478SAli.Bahrami@Oracle.COMEXEC_DATA ^platform/.*/multiboot$ 6912478SAli.Bahrami@Oracle.COM 7012478SAli.Bahrami@Oracle.COM# Objects that are allowed to have an executable stack 7110355SAli.Bahrami@Sun.COMEXEC_STACK ^platform/.*/MACH(kernel)/unix$ 7210355SAli.Bahrami@Sun.COMEXEC_STACK ^platform/.*/multiboot$ 7310355SAli.Bahrami@Sun.COM 7410355SAli.Bahrami@Sun.COM# Objects for which we allow relocations to the text segment 7510355SAli.Bahrami@Sun.COMTEXTREL ^platform/.*/MACH(kernel)/unix$ 7610355SAli.Bahrami@Sun.COM 7710355SAli.Bahrami@Sun.COM# Directories and files that are allowed to have no direct bound symbols 7810355SAli.Bahrami@Sun.COMNODIRECT ^platform/.*/MACH(kernel)/unix$ 7910355SAli.Bahrami@Sun.COMNODIRECT ^usr/ucb 8010355SAli.Bahrami@Sun.COMNODIRECT ^usr/4lib/sbcp$ 8110355SAli.Bahrami@Sun.COM 8210355SAli.Bahrami@Sun.COM# Identify any files that should be skipped when building a crle(1) 8310355SAli.Bahrami@Sun.COM# configuration file. As the hwcap libraries can be loop-back mounted onto 8410355SAli.Bahrami@Sun.COM# libc, these can confuse crle(1) because of their identical dev/inode. 8510355SAli.Bahrami@Sun.COMNOCRLEALT ^usr/lib/libc/libc_hwcap[1-3].so.1$ 8610355SAli.Bahrami@Sun.COM 8710355SAli.Bahrami@Sun.COM# Files that should contain debugging information. 8810355SAli.Bahrami@Sun.COMSTAB ^platform/.*/MACH(kernel)/unix$ 8910355SAli.Bahrami@Sun.COM 9010355SAli.Bahrami@Sun.COM# Files that are allowed undefined references 9110355SAli.Bahrami@Sun.COMUNDEF_REF ^usr/lib/libnisdb\.so\.2$ 9210355SAli.Bahrami@Sun.COMUNDEF_REF ^usr/snadm/lib/libsvm\.so\.1$ 9310355SAli.Bahrami@Sun.COM 9410355SAli.Bahrami@Sun.COM# Objects allowed to have unused dependencies 9510355SAli.Bahrami@Sun.COMUNUSED_DEPS ^usr/lib/picl/plugins/ # require devtree dependencies 9610355SAli.Bahrami@Sun.COMUNUSED_DEPS ^usr/lib/libp # profile libc makes libm an unused dep of libc 9710355SAli.Bahrami@Sun.COM 9810355SAli.Bahrami@Sun.COM# libm.so.2 dependency 9910355SAli.Bahrami@Sun.COMUNUSED_OBJ unused object=.*MACH(libm)/libm_hwcap1\.so\.2 10010355SAli.Bahrami@Sun.COM 10110355SAli.Bahrami@Sun.COM# Unused runpaths due to dlopen() use 10210355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/fs/autofs.*\ from\ .automountd 10310355SAli.Bahrami@Sun.COMUNUSED_RPATH /etc/ppp/plugins.*\ from\ .*pppd 10410355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/inet/ppp.*\ from\ .*pppd 10510355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libipsecutil\.so\.1 10610355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/platform/.*rsmlib.*\ from\ .*librsm\.so\.2 10710355SAli.Bahrami@Sun.COMUNUSED_RPATH \$ORIGIN.*\ from\ .*fcode.so 10810355SAli.Bahrami@Sun.COMUNUSED_RPATH /opt/VRTSvxvm/lib.*\ from\ .*libdiskmgt\.so\.1 10910355SAli.Bahrami@Sun.COM 11010355SAli.Bahrami@Sun.COM# Unused runpaths in picl code 11110355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/platform/.*\ from\ .*/usr/platform 11210355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/picl/.*\ from\ .*/usr/platform 11310355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/platform/.*\ from\ .*/usr/lib/picl 11410355SAli.Bahrami@Sun.COM 11510355SAli.Bahrami@Sun.COM# Unused runpaths in non-OSNET objects we can't change 11610355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/mps.*\ from\ .*libnss3\.so 11711227SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/mps.*\ from\ .*libnssutil3\.so 11811227SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/mps.*\ from\ .*libsmime3\.so 11911227SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/mps.*\ from\ .*libssl3\.so 12010355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libdbus-1\.so\.3 12110355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libdbus-glib-1\.so\.2 12210355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libglib-2\.0\.so\.0 12310355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/X11/lib.*\ from\ .*libglib-2\.0\.so\.0 12410355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgmodule-2\.0\.so\.0 12510355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/X11/lib.*\ from\ .*libgmodule-2\.0\.so\.0 12610355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgnomevfs-2\.so\.0 12710355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgobject-2\.0\.so\.0 12810355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/X11/lib.*\ from\ .*libgobject-2\.0\.so\.0 12910355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgthread-2\.0\.so\.0 13010355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/X11/lib.*\ from\ .*libgthread-2\.0\.so\.0 13110355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libcrypto\.so\.0\.9\.8 13210355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libnetsnmp\.so\.15 13310355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libgcc_s\.so\.1 13410355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/postgres/8.3/lib.*\ from\ .*libpq\.so\.5 13510355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/sfw/lib.*\ from\ .*libpq\.so\.5 13610355SAli.Bahrami@Sun.COM 13710355SAli.Bahrami@Sun.COM# Unused runpaths for reasons not captured above 13810355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr/lib/smbsrv.*\ from\ .*libsmb\.so\.1 # future needs 13910355SAli.Bahrami@Sun.COMUNUSED_RPATH /usr.*\ from\ .*tst\.gcc\.exe # gcc built 14010355SAli.Bahrami@Sun.COM 14110355SAli.Bahrami@Sun.COM 14210355SAli.Bahrami@Sun.COM# Unreferenced objects of non-OSnet objects we can't change 14310355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libcimapi\.so 14411741SOndrej.Kubecka@Sun.COMUNREF_OBJ /lib.*\ of\ .*libdbus-1\.so\.3 14511741SOndrej.Kubecka@Sun.COMUNREF_OBJ /lib.*\ of\ .*libdbus-glib-1\.so\.2 14611741SOndrej.Kubecka@Sun.COMUNREF_OBJ /lib.*\ of\ .*libgconf-2\.so\.4 14712501SJohn.Beck@Oracle.COMUNREF_OBJ /lib.*\ of\ .*libglib-2.0\.so\.0 14812501SJohn.Beck@Oracle.COMUNREF_OBJ /lib.*\ of\ .*libgmodule-2.0\.so\.0 14912501SJohn.Beck@Oracle.COMUNREF_OBJ /lib.*\ of\ .*libgobject-2.0\.so\.0 15011741SOndrej.Kubecka@Sun.COMUNREF_OBJ /lib.*\ of\ .*libgnomevfs-2\.so\.0 15111741SOndrej.Kubecka@Sun.COMUNREF_OBJ /lib.*\ of\ .*libgthread-2\.0\.so\.0 15210355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libjvm\.so 15310355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libnetsnmp\.so\.15 15410355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libnetsnmpagent\.so\.15 15510355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libnetsnmpmibs\.so\.15 15610355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libnetsnmphelpers\.so\.15 15710355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libnspr4\.so 15811741SOndrej.Kubecka@Sun.COMUNREF_OBJ /lib.*\ of\ .*libORBit-2\.so\.0 15910355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libpq\.so\.5 16010355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libsoftokn3\.so 16110355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libspmicommon\.so\.1 16210355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libspmocommon\.so\.1 16310355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libssl3\.so 16410355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libtspi\.so\.1 16510355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libxml2\.so\.2 16610355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libxslt\.so\.1 16710355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libpq\.so\.4 16810355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*libpython2\.4\.so\.1\.0 16910355SAli.Bahrami@Sun.COM 17010355SAli.Bahrami@Sun.COM# Unreferenced object of objects we can't change for other reasons 17110355SAli.Bahrami@Sun.COMUNREF_OBJ /libmapmalloc\.so\.1;\ unused\ dependency\ of # interposer 17210355SAli.Bahrami@Sun.COMUNREF_OBJ /libstdc\+\+\.so\.6;\ unused\ dependency\ of # gcc build 17310355SAli.Bahrami@Sun.COMUNREF_OBJ /libm\.so\.2.*\ of\ .*libstdc\+\+\.so\.6 # gcc build 17410355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*/lib/picl/plugins/ # picl 17510355SAli.Bahrami@Sun.COMUNREF_OBJ /lib.*\ of\ .*kcfd # interposer 17610355SAli.Bahrami@Sun.COMUNREF_OBJ /libpkcs11\.so\.1; .*\ of\ .*libkmf\.so\.1 # interposed 17710355SAli.Bahrami@Sun.COM 17810355SAli.Bahrami@Sun.COM# Objects that used to contain system functionalty that has since 17910355SAli.Bahrami@Sun.COM# migrated to libc. We preserve these libraries as pure filters for 18010355SAli.Bahrami@Sun.COM# backward compatability but nothing needs to link to them. 18110355SAli.Bahrami@Sun.COMOLDDEP libaio\.so\.1 # onnv build 44 18210355SAli.Bahrami@Sun.COMOLDDEP libdl\.so\.1 # on10 build 49 18310355SAli.Bahrami@Sun.COMOLDDEP libdoor\.so\.1 # onnv build 12 18410355SAli.Bahrami@Sun.COMOLDDEP libintl\.so\.1 # on297 build 7 18510355SAli.Bahrami@Sun.COMOLDDEP libpthread\.so\.1 # on10 build 53 18610355SAli.Bahrami@Sun.COMOLDDEP librt\.so\.1 # onnv build 44 18710355SAli.Bahrami@Sun.COMOLDDEP libsched\.so\.1 # on10 build 36 18810355SAli.Bahrami@Sun.COMOLDDEP libthread\.so\.1 # on10 build 53 18910355SAli.Bahrami@Sun.COMOLDDEP libw\.so\.1 # on297 build 7 19010355SAli.Bahrami@Sun.COM 19110355SAli.Bahrami@Sun.COM# Files for which we skip checking of duplicate addresses in the 19210355SAli.Bahrami@Sun.COM# symbol sort sections. Such exceptions should be rare --- most code will 19310355SAli.Bahrami@Sun.COM# not have duplicate addresses, since it takes assember or a "#pragma weak" 19410355SAli.Bahrami@Sun.COM# to do such aliasing in C. C++ is different: The compiler generates aliases 19510355SAli.Bahrami@Sun.COM# for implementation reasons, and the mangled names used to encode argument 19610355SAli.Bahrami@Sun.COM# and return value types are difficult to handle well in mapfiles. 19710355SAli.Bahrami@Sun.COM# Furthermore, the Sun compiler and gcc use different and incompatible 19810355SAli.Bahrami@Sun.COM# name mangling conventions. Since ON must be buildable by either, we 19910355SAli.Bahrami@Sun.COM# would have to maintain two sets of mapfiles for each such object. 20010355SAli.Bahrami@Sun.COM# C++ use is rare in ON, so this is not worth pursuing. 20110355SAli.Bahrami@Sun.COM# 20210355SAli.Bahrami@Sun.COMNOSYMSORT opt/SUNWdtrt/tst/common/pid/tst.weak2.exe # DTrace test 20310355SAli.Bahrami@Sun.COMNOSYMSORT lib/amd64/libnsl\.so\.1 # C++ 20410355SAli.Bahrami@Sun.COMNOSYMSORT lib/sparcv9/libnsl\.so\.1 # C++ 20510355SAli.Bahrami@Sun.COMNOSYMSORT lib/sparcv9/libfru\.so\.1 # C++ 20610355SAli.Bahrami@Sun.COMNOSYMSORT usr/lib/sgml/nsgmls # C++ 20710355SAli.Bahrami@Sun.COMNOSYMSORT usr/lib/lms # C++ 20810355SAli.Bahrami@Sun.COMNOSYMSORT ld\.so\.1 # libc_pic.a user 20910355SAli.Bahrami@Sun.COMNOSYMSORT lib/libsun_fc\.so\.1 # C++ 21010355SAli.Bahrami@Sun.COMNOSYMSORT lib/amd64/libsun_fc\.so\.1 # C++ 21110355SAli.Bahrami@Sun.COMNOSYMSORT lib/sparcv9/libsun_fc\.so\.1 # C++ 21211015SSundeep.Panicker@Sun.COMNOSYMSORT usr/lib/amd64/libfru\.so\.1 # C++ 213*12720SWyllys.Ingersoll@Sun.COMNOSYMSORT usr/lib/libkmsagent\.so\.1 # C++ 214*12720SWyllys.Ingersoll@Sun.COMNOSYMSORT usr/lib/amd64/libkmsagent\.so\.1 # C++ 215*12720SWyllys.Ingersoll@Sun.COMNOSYMSORT usr/lib/sparcv9/libkmsagent\.so\.1 # C++ 21610355SAli.Bahrami@Sun.COM 21710355SAli.Bahrami@Sun.COM 21810355SAli.Bahrami@Sun.COM# The libprtdiag_psr.so.1 objects built under usr/src/lib/libprtdiag_psr 21910355SAli.Bahrami@Sun.COM# are a family, all built using the same makefile, targeted at different 22010355SAli.Bahrami@Sun.COM# sparc hardware variants. There are a small number of cases where this 22110355SAli.Bahrami@Sun.COM# one size fits all approach causes an object to be linked against an 22210355SAli.Bahrami@Sun.COM# unneeded library. 22310355SAli.Bahrami@Sun.COMUNREF_OBJ lib/(libdevinfo|libcfgadm)\.so\.1; .*\ of\ .*SUNW,Netra-CP2300/lib/libprtdiag_psr\.so\.1 22410355SAli.Bahrami@Sun.COM 22510355SAli.Bahrami@Sun.COM 226