summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorAli Bahrami <Ali.Bahrami@Oracle.COM>2010-06-28 09:11:16 -0600
committerAli Bahrami <Ali.Bahrami@Oracle.COM>2010-06-28 09:11:16 -0600
commitd24e1a1da37e9f5e4c5b11a5da612fdd70d873f0 (patch)
tree9bc922e827c991be933bea050fcd99934de9fa7c /usr/src
parent0673ac10697e2637ba66951f5005ae24e0c40f5c (diff)
downloadillumos-gate-d24e1a1da37e9f5e4c5b11a5da612fdd70d873f0.tar.gz
6916796 OSnet mapfiles should use version 2 link-editor syntax (fix mapfilechk,unref)
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/sgs/rtld/amd64/mapfile-amd64-vers43
-rw-r--r--usr/src/lib/brand/shared/librtld_db/common/mapfile-vers.6442
-rw-r--r--usr/src/tools/onbld/hgext/cdm.py7
3 files changed, 5 insertions, 87 deletions
diff --git a/usr/src/cmd/sgs/rtld/amd64/mapfile-amd64-vers b/usr/src/cmd/sgs/rtld/amd64/mapfile-amd64-vers
deleted file mode 100644
index 839800b4a0..0000000000
--- a/usr/src/cmd/sgs/rtld/amd64/mapfile-amd64-vers
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.3 {
- protected:
- _dlamd64getunwind;
- dlamd64getunwind;
-};
diff --git a/usr/src/lib/brand/shared/librtld_db/common/mapfile-vers.64 b/usr/src/lib/brand/shared/librtld_db/common/mapfile-vers.64
deleted file mode 100644
index ca437818fc..0000000000
--- a/usr/src/lib/brand/shared/librtld_db/common/mapfile-vers.64
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-SUNWprivate_1.1 {
- global:
- rtld_db_brand_ops64;
-};
diff --git a/usr/src/tools/onbld/hgext/cdm.py b/usr/src/tools/onbld/hgext/cdm.py
index 577da5544d..2241519f26 100644
--- a/usr/src/tools/onbld/hgext/cdm.py
+++ b/usr/src/tools/onbld/hgext/cdm.py
@@ -351,15 +351,18 @@ def cdm_mapfilechk(ui, repo, *args, **opts):
# - Ends with '.map'
# We don't want to match unless these things occur in final path segment
# because directory names with these strings don't indicate a mapfile.
- MapfileRE = re.compile(r'.*((mapfile[^/]*)|(/map\.*[^/]*)|(\.map))$',
+ # We also ignore files with suffixes that tell us that the files
+ # are not mapfiles.
+ MapfileRE = re.compile(r'.*((mapfile[^/]*)|(/map\.+[^/]*)|(\.map))$',
re.IGNORECASE)
+ NotMapSuffixRE = re.compile(r'.*\.[ch]$', re.IGNORECASE)
ui.write('Mapfile comment check:\n')
for f, e in filelist:
if e and e.is_removed():
continue
- elif not MapfileRE.match(f):
+ elif (not MapfileRE.match(f)) or NotMapSuffixRE.match(f):
continue
elif (e or opts.get('honour_nots')) and exclude(f):
ui.status('Skipping %s...\n' % f)