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