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# 235253169eSAli Bahrami# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 24cf2fa554SDan McDonald# Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved. 25e8921a52SAndy Fiddaman# Copyright 2018 OmniOS Community Edition (OmniOSce) Association. 26c4ccc1f9SPeter Tribble# Copyright 2019 Peter Tribble. 2775ce41a5SAli Bahrami# 2875ce41a5SAli Bahrami 2975ce41a5SAli Bahrami# This file provides exceptions to the usual rules applied to ELF objects by 3075ce41a5SAli Bahrami# check_rtime. All strings are Perl regular expressions that are compared to 3175ce41a5SAli Bahrami# file paths. In addition to the standard Perl syntax, there is one extension: 3275ce41a5SAli Bahrami# 3375ce41a5SAli Bahrami# MACH(dir) 3475ce41a5SAli Bahrami# 3575ce41a5SAli Bahrami# is expanded into a regular expression that matches the given 3675ce41a5SAli Bahrami# directory, or a 64-bit subdirectory of the directory with the 3775ce41a5SAli Bahrami# name of a 64-bit architecture. For example, MACH(lib) will match 3875ce41a5SAli Bahrami# any of the following: 3975ce41a5SAli Bahrami# 4075ce41a5SAli Bahrami# lib 4175ce41a5SAli Bahrami# lib/amd64 4275ce41a5SAli Bahrami# lib/sparcv9 4375ce41a5SAli Bahrami 4475ce41a5SAli Bahrami 4575ce41a5SAli Bahrami# Directory hierarchies to skip completely 4675ce41a5SAli BahramiSKIP ^usr/lib/libc/ # optimized libc 4775ce41a5SAli BahramiSKIP ^usr/lib/rcm/ # 4426119 4875ce41a5SAli BahramiSKIP ^usr/perl5/ # alan's taking care of these :-) 4975ce41a5SAli BahramiSKIP ^usr/src/ # no objects in source code 5075ce41a5SAli Bahrami 5175ce41a5SAli Bahrami# Individual files that we don't examine 5275ce41a5SAli BahramiSKIP ^boot/grub/bin/grub$ 5375ce41a5SAli Bahrami# USIII specific extns. cause ldd noise on USII bld. m/c 5475ce41a5SAli BahramiSKIP ^usr/lib/fps/sun4u/UltraSPARC.*/fptest$ 5575ce41a5SAli BahramiSKIP ^usr/MACH(lib)/lddstub$ # lddstub has no dependencies 5675ce41a5SAli BahramiSKIP ^usr/MACH(lib)/libssagent\.so\.1$ # 4328854 5775ce41a5SAli BahramiSKIP ^usr/lib/MACH(iconv)/geniconvtbl.so$ # 4384329 5875ce41a5SAli Bahrami 5975ce41a5SAli Bahrami# picl file exclusions (4385799) 6075ce41a5SAli BahramiSKIP ^usr/platform/.*/libpsvcplugin_psr\.so\.1 6175ce41a5SAli BahramiSKIP ^usr/platform/.*/libpsvcpolicy_psr\.so\.1 6275ce41a5SAli BahramiSKIP ^usr/platform/.*/libpsvcpolicy\.so\.1 6375ce41a5SAli BahramiSKIP ^usr/lib/sysevent/modules/picl_slm.so$ 6475ce41a5SAli Bahrami 65*cd62a92dSRobert Mustacchi# 66*cd62a92dSRobert Mustacchi# The stdio tests all link against libumem to interpose on libc's 67*cd62a92dSRobert Mustacchi# malloc; however, they do not actually reference the object. 68*cd62a92dSRobert Mustacchi# 69*cd62a92dSRobert MustacchiSKIP ^opt/libc-tests/tests/stdio/ 70*cd62a92dSRobert Mustacchi 715253169eSAli Bahrami# Objects that are allowed to have executable data segments 725253169eSAli BahramiEXEC_DATA ^MACH(lib)/ld\.so\.1$ 735253169eSAli BahramiEXEC_DATA ^lib/libc\.so\.1$ # 6524709, 32-bit, needed for x86 only 749e593677SRichard LoweEXEC_DATA ^MACH(lib)/libumem\.so\.1$ # ptcumem 755253169eSAli BahramiEXEC_DATA ^opt/SUNWdtrt/tst/.*/ustack/tst\.helper\.exe$ 765253169eSAli BahramiEXEC_DATA ^platform/.*/MACH(kernel)/unix$ 775253169eSAli Bahrami 785253169eSAli Bahrami# Objects that are allowed to have an executable stack 7975ce41a5SAli BahramiEXEC_STACK ^platform/.*/MACH(kernel)/unix$ 8075ce41a5SAli BahramiEXEC_STACK ^platform/.*/multiboot$ 81d2a70789SRichard LoweEXEC_STACK ^opt/os-tests/tests/secflags/stacky$ 8275ce41a5SAli Bahrami 8375ce41a5SAli Bahrami# Objects for which we allow relocations to the text segment 8475ce41a5SAli BahramiTEXTREL ^platform/.*/MACH(kernel)/unix$ 8575ce41a5SAli Bahrami 8675ce41a5SAli Bahrami# Directories and files that are allowed to have no direct bound symbols 8775ce41a5SAli BahramiNODIRECT ^platform/.*/MACH(kernel)/unix$ 8875ce41a5SAli BahramiNODIRECT ^usr/ucb 8975ce41a5SAli BahramiNODIRECT ^usr/4lib/sbcp$ 9075ce41a5SAli Bahrami 9175ce41a5SAli Bahrami# Identify any files that should be skipped when building a crle(1) 9275ce41a5SAli Bahrami# configuration file. As the hwcap libraries can be loop-back mounted onto 9375ce41a5SAli Bahrami# libc, these can confuse crle(1) because of their identical dev/inode. 9475ce41a5SAli BahramiNOCRLEALT ^usr/lib/libc/libc_hwcap[1-3].so.1$ 9575ce41a5SAli Bahrami 9675ce41a5SAli Bahrami# Files that should contain debugging information. 9775ce41a5SAli BahramiSTAB ^platform/.*/MACH(kernel)/unix$ 9875ce41a5SAli Bahrami 9975ce41a5SAli Bahrami# Files that are allowed undefined references 10075ce41a5SAli BahramiUNDEF_REF ^usr/lib/libnisdb\.so\.2$ 10175ce41a5SAli Bahrami 10275ce41a5SAli Bahrami# Objects allowed to have unused dependencies 10375ce41a5SAli BahramiUNUSED_DEPS ^usr/lib/picl/plugins/ # require devtree dependencies 10475ce41a5SAli Bahrami 105e3dc7d16SDan McDonald# libnetsnmphelpers.so is empty in some net-snmp versions 106e3dc7d16SDan McDonaldUNUSED_OBJ unused object=.*/libnetsnmphelpers\.so\..* 107cf2fa554SDan McDonaldUNREF_OBJ unreferenced object=.*/libnetsnmphelpers\.so\..* 108e3dc7d16SDan McDonald 10975ce41a5SAli Bahrami# Unused runpaths due to dlopen() use 11075ce41a5SAli BahramiUNUSED_RPATH /usr/lib/fs/autofs.*\ from\ .automountd 11175ce41a5SAli BahramiUNUSED_RPATH /etc/ppp/plugins.*\ from\ .*pppd 11275ce41a5SAli BahramiUNUSED_RPATH /usr/lib/inet/ppp.*\ from\ .*pppd 11375ce41a5SAli BahramiUNUSED_RPATH /usr/platform/.*rsmlib.*\ from\ .*librsm\.so\.2 11475ce41a5SAli BahramiUNUSED_RPATH \$ORIGIN.*\ from\ .*fcode.so 11575ce41a5SAli BahramiUNUSED_RPATH /opt/VRTSvxvm/lib.*\ from\ .*libdiskmgt\.so\.1 11675ce41a5SAli Bahrami 11775ce41a5SAli Bahrami# Unused runpaths in picl code 11875ce41a5SAli BahramiUNUSED_RPATH /usr/platform/.*\ from\ .*/usr/platform 11975ce41a5SAli BahramiUNUSED_RPATH /usr/lib/picl/.*\ from\ .*/usr/platform 12075ce41a5SAli BahramiUNUSED_RPATH /usr/platform/.*\ from\ .*/usr/lib/picl 12175ce41a5SAli Bahrami 12275ce41a5SAli Bahrami# Unused runpaths in non-OSNET objects we can't change 12375ce41a5SAli BahramiUNUSED_RPATH /usr/lib/mps.*\ from\ .*libnss3\.so 124e64d0ff9SAli BahramiUNUSED_RPATH /usr/lib/mps.*\ from\ .*libnssutil3\.so 125e64d0ff9SAli BahramiUNUSED_RPATH /usr/lib/mps.*\ from\ .*libsmime3\.so 126e64d0ff9SAli BahramiUNUSED_RPATH /usr/lib/mps.*\ from\ .*libssl3\.so 127b2db26f3SRichard LoweUNUSED_RPATH /usr/lib.*\ from\ .*/usr/lib/mps 1289f923083SAlexander PyhalovUNUSED_RPATH /usr/gnu/lib.*\ from\ .*/usr/lib/libpython2\.. 1299f923083SAlexander PyhalovUNUSED_RPATH /usr/gnu/lib.*\ from\ .*/usr/lib/64/libpython2\.. 130e8921a52SAndy FiddamanUNUSED_RPATH /usr/gnu/lib.*\ from\ .*/usr/lib/64/libpython3\.. 131cf2fa554SDan McDonaldUNUSED_RPATH /usr/snadm/lib.*\ from\ .*/usr/snadm/lib/libspmicommon\.so\.1 1320b794c39SAlexander PyhalovUNUSED_RPATH /usr/gcc/.*/lib.*\ from\ .* 133cf2fa554SDan McDonald 13475ce41a5SAli Bahrami# Unused runpaths for reasons not captured above 13575ce41a5SAli BahramiUNUSED_RPATH /usr/lib/smbsrv.*\ from\ .*libsmb\.so\.1 # future needs 13675ce41a5SAli Bahrami 13775ce41a5SAli Bahrami# Unreferenced objects of non-OSnet objects we can't change 13875ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libcimapi\.so 139f6abcda3SOndrej KubeckaUNREF_OBJ /lib.*\ of\ .*libdbus-1\.so\.3 140f6abcda3SOndrej KubeckaUNREF_OBJ /lib.*\ of\ .*libdbus-glib-1\.so\.2 141cf2fa554SDan McDonaldUNREF_OBJ /lib.*\ of\ .*libgio-2.0\.so\.0 14201143f78SJohn BeckUNREF_OBJ /lib.*\ of\ .*libglib-2.0\.so\.0 14301143f78SJohn BeckUNREF_OBJ /lib.*\ of\ .*libgobject-2.0\.so\.0 144f6abcda3SOndrej KubeckaUNREF_OBJ /lib.*\ of\ .*libgthread-2\.0\.so\.0 14575ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libjvm\.so 146e3dc7d16SDan McDonaldUNREF_OBJ /lib.*\ of\ .*libnetsnmp\.so\..* 147e3dc7d16SDan McDonaldUNREF_OBJ /lib.*\ of\ .*libnetsnmpagent\.so\..* 148e3dc7d16SDan McDonaldUNREF_OBJ /lib.*\ of\ .*libnetsnmpmibs\.so\..* 149e3dc7d16SDan McDonaldUNREF_OBJ /lib.*\ of\ .*libnetsnmphelpers\.so\..* 15075ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libnspr4\.so 15175ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libpq\.so\.5 15275ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libsoftokn3\.so 15375ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libspmicommon\.so\.1 15475ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libspmocommon\.so\.1 15575ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libssl3\.so 15675ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libtspi\.so\.1 15775ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libxml2\.so\.2 15875ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libxslt\.so\.1 15975ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libpq\.so\.4 16075ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*libpython2\.4\.so\.1\.0 161cf2fa554SDan McDonaldUNREF_OBJ /lib.*\ of\ .*libpython2\.6\.so\.1\.0 162d3147737SDan McDonaldUNREF_OBJ /lib.*\ of\ .*libpython2\.7\.so\.1\.0 163f4b3fdc1SToomas SoomeUNREF_OBJ /lib.*\ of\ .*libpython3\.[5678]m?\.so\.1\.0 1646a3e8e86SRichard LoweUNREF_OBJ /libgcc_s.*\ of\ .*libstdc\+\+\.so\.6 165cf2fa554SDan McDonaldUNREF_OBJ /libgcc_s.*\ of\ .*libgmodule-2\.0\.so\.0 16675ce41a5SAli Bahrami 16775ce41a5SAli Bahrami# Unreferenced object of objects we can't change for other reasons 16875ce41a5SAli BahramiUNREF_OBJ /libmapmalloc\.so\.1;\ unused\ dependency\ of # interposer 16975ce41a5SAli BahramiUNREF_OBJ /libstdc\+\+\.so\.6;\ unused\ dependency\ of # gcc build 17049169a56SRichard LoweUNREF_OBJ /libgcc_s\.so\.1;\ unused\ dependency\ of # gcc build 171cf2fa554SDan McDonaldUNREF_OBJ /libgcc_s\.so\.1.*\ of\ .*libstdc\+\+\.so\.6 # omnios gcc mix 17275ce41a5SAli BahramiUNREF_OBJ /libm\.so\.2.*\ of\ .*libstdc\+\+\.so\.6 # gcc build 17375ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*/lib/picl/plugins/ # picl 17475ce41a5SAli BahramiUNREF_OBJ /lib.*\ of\ .*kcfd # interposer 17575ce41a5SAli BahramiUNREF_OBJ /libpkcs11\.so\.1; .*\ of\ .*libkmf\.so\.1 # interposed 1766a3e8e86SRichard Lowe# Referenced by the Studio build, not the GCC build. GCC eliminates the unused 1776a3e8e86SRichard Lowe# statics which have the dependence. 1786a3e8e86SRichard LoweUNREF_OBJ /libc\.so\.1.*\ of\ .*kldap\.so\.1 1796a3e8e86SRichard Lowe 18075ce41a5SAli Bahrami 18175ce41a5SAli Bahrami# Objects that used to contain system functionalty that has since 18275ce41a5SAli Bahrami# migrated to libc. We preserve these libraries as pure filters for 18375ce41a5SAli Bahrami# backward compatability but nothing needs to link to them. 18475ce41a5SAli BahramiOLDDEP libaio\.so\.1 # onnv build 44 18575ce41a5SAli BahramiOLDDEP libdl\.so\.1 # on10 build 49 18675ce41a5SAli BahramiOLDDEP libdoor\.so\.1 # onnv build 12 18775ce41a5SAli BahramiOLDDEP libintl\.so\.1 # on297 build 7 18875ce41a5SAli BahramiOLDDEP libpthread\.so\.1 # on10 build 53 18975ce41a5SAli BahramiOLDDEP librt\.so\.1 # onnv build 44 19075ce41a5SAli BahramiOLDDEP libsched\.so\.1 # on10 build 36 19175ce41a5SAli BahramiOLDDEP libthread\.so\.1 # on10 build 53 19275ce41a5SAli BahramiOLDDEP libw\.so\.1 # on297 build 7 19375ce41a5SAli Bahrami 19475ce41a5SAli Bahrami# Files for which we skip checking of duplicate addresses in the 19575ce41a5SAli Bahrami# symbol sort sections. Such exceptions should be rare --- most code will 19675ce41a5SAli Bahrami# not have duplicate addresses, since it takes assember or a "#pragma weak" 19775ce41a5SAli Bahrami# to do such aliasing in C. C++ is different: The compiler generates aliases 19875ce41a5SAli Bahrami# for implementation reasons, and the mangled names used to encode argument 19975ce41a5SAli Bahrami# and return value types are difficult to handle well in mapfiles. 20075ce41a5SAli Bahrami# Furthermore, the Sun compiler and gcc use different and incompatible 2019e593677SRichard Lowe# name mangling conventions. Since illumos must be buildable by either, we 20275ce41a5SAli Bahrami# would have to maintain two sets of mapfiles for each such object. 2039e593677SRichard Lowe# C++ use is rare in illumos, so this is not worth pursuing. 20475ce41a5SAli Bahrami# 20575ce41a5SAli BahramiNOSYMSORT opt/SUNWdtrt/tst/common/pid/tst.weak2.exe # DTrace test 20675ce41a5SAli BahramiNOSYMSORT ld\.so\.1 # libc_pic.a user 20749169a56SRichard LoweNOSYMSORT usr/bin/audioconvert # C++ 20849169a56SRichard LoweNOSYMSORT usr/bin/make # C++ 2099e593677SRichard LoweNOSYMSORT usr/MACH(lib)/libsun_fc\.so\.1 # C++ 2109e593677SRichard LoweNOSYMSORT usr/MACH(lib)/libfru\.so\.1 # C++ 21149169a56SRichard LoweNOSYMSORT usr/lib/libnisdb\.so\.2 # C++ 21275ce41a5SAli Bahrami 2139e593677SRichard Lowe# The majority of illumos deliverables should not depend on the GCC runtime 2149e593677SRichard Lowe# (any necessary runtime symbol should be provided by libc.so, instead). 2159e593677SRichard Lowe# However, the GNU C++ runtime requires the GCC runtime, so certain objects 2169e593677SRichard Lowe# must be excepted. 2179e593677SRichard LoweFORBIDDEN libgcc_s\.so 2189e593677SRichard LoweFORBIDDEN_DEP usr/bin/audioconvert # C++ 2199e593677SRichard LoweFORBIDDEN_DEP usr/bin/make # C++ 2209e593677SRichard LoweFORBIDDEN_DEP usr/MACH(lib)/libfru.so.1 # C++ 2219e593677SRichard LoweFORBIDDEN_DEP usr/MACH(lib)/libsun_fc.so.1 # C++ 2229e593677SRichard LoweFORBIDDEN_DEP usr/lib/netsvc/yp/rpc.yppasswdd # C++ 2239e593677SRichard LoweFORBIDDEN_DEP usr/lib/netsvc/yp/ypserv # C++ 2249e593677SRichard LoweFORBIDDEN_DEP usr/lib/netsvc/yp/ypxfr # C++ 2259e593677SRichard LoweFORBIDDEN_DEP usr/lib/netsvc/yp/ypxfrd # C++ 2269e593677SRichard Lowe 2279e593677SRichard Lowe# libfakekernel is a test environment, not intended for general use 2289e593677SRichard LoweFORBIDDEN libfakekernel\.so 2299e593677SRichard LoweFORBIDDEN_DEP usr/MACH(lib)/libzpool.so.1 2309e593677SRichard LoweFORBIDDEN_DEP usr/bin/amd64/ztest 2319e593677SRichard LoweFORBIDDEN_DEP usr/bin/i86/ztest 2329e593677SRichard LoweFORBIDDEN_DEP usr/bin/sparcv7/ztest 2339e593677SRichard LoweFORBIDDEN_DEP usr/bin/sparcv9/ztest 2348329232eSGordon RossFORBIDDEN_DEP usr/lib/MACH(smbfs)/libfknsmb.so.1 2358329232eSGordon RossFORBIDDEN_DEP usr/lib/MACH(smbfs)/libfksmbfs.so.1 2369e593677SRichard LoweFORBIDDEN_DEP usr/lib/MACH(smbsrv)/libfksmbsrv.so.1 2379e593677SRichard LoweFORBIDDEN_DEP usr/lib/smbsrv/fksmbd 2387d1ffc32SGordon RossFORBIDDEN_DEP usr/lib/smbsrv/test-msgbuf 23994047d49SGordon RossFORBIDDEN_DEP usr/lib/smbsrv/testoplock 2409e593677SRichard LoweFORBIDDEN_DEP usr/sbin/amd64/zdb 2419e593677SRichard LoweFORBIDDEN_DEP usr/sbin/i86/zdb 2429e593677SRichard LoweFORBIDDEN_DEP usr/sbin/sparcv7/zdb 2439e593677SRichard LoweFORBIDDEN_DEP usr/sbin/sparcv9/zdb 2449e593677SRichard Lowe 2459e593677SRichard Lowe# libucb is intended for legacy compatibility, not general use 2469e593677SRichard LoweFORBIDDEN libucb\.so 2479e593677SRichard LoweFORBIDDEN_DEP usr/ucb/ 2489e593677SRichard LoweFORBIDDEN_DEP usr/ucblib/ 2499e593677SRichard Lowe 2509e593677SRichard Lowe# Older versions of libraries only provided for binary compatibility 2519e593677SRichard LoweFORBIDDEN libm\.so\.1 2529e593677SRichard LoweFORBIDDEN libresolv\.so\.1 2539e593677SRichard LoweFORBIDDEN libxcurses\.so\.1 25469b1fd3fSRichard Lowe 25569b1fd3fSRichard Lowe# 25669b1fd3fSRichard Lowe# the SUNWonld directory contains built versions of demos, built only to 25769b1fd3fSRichard Lowe# ensure their correctness. 25869b1fd3fSRichard Lowe# 25969b1fd3fSRichard LoweEXEC_STACK ^opt/SUNWonld 26069b1fd3fSRichard LoweEXEC_DATA ^opt/SUNWonld 26169b1fd3fSRichard LoweNODIRECT ^opt/SUNWonld 262