1*0Sstevel@tonic-gate# 2*0Sstevel@tonic-gate#pragma ident "%Z%%M% %I% %E% SMI" 3*0Sstevel@tonic-gate# 4*0Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 5*0Sstevel@tonic-gate# Use is subject to license terms. 6*0Sstevel@tonic-gate# 7*0Sstevel@tonic-gate# CDDL HEADER START 8*0Sstevel@tonic-gate# 9*0Sstevel@tonic-gate# The contents of this file are subject to the terms of the 10*0Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 11*0Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 12*0Sstevel@tonic-gate# with the License. 13*0Sstevel@tonic-gate# 14*0Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 15*0Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 16*0Sstevel@tonic-gate# See the License for the specific language governing permissions 17*0Sstevel@tonic-gate# and limitations under the License. 18*0Sstevel@tonic-gate# 19*0Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 20*0Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 21*0Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 22*0Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 23*0Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 24*0Sstevel@tonic-gate# 25*0Sstevel@tonic-gate# CDDL HEADER END 26*0Sstevel@tonic-gate# 27*0Sstevel@tonic-gate# Note: This mapfile is used to place r_debug as the 28*0Sstevel@tonic-gate# very first data item inside of the run-time linker. 29*0Sstevel@tonic-gate# This is required for the ld.so.1 <--> rtld_db bootstraping 30*0Sstevel@tonic-gate# for debuggers. 31*0Sstevel@tonic-gate# 32*0Sstevel@tonic-gate# The issue with this is that gcc/devpro do not agree on the 33*0Sstevel@tonic-gate# name of the section this data should be placed in. So - 34*0Sstevel@tonic-gate# we must have a mapfile for each. 35*0Sstevel@tonic-gate# 36*0Sstevel@tonic-gate# If you update this file - make sure you update 37*0Sstevel@tonic-gate# the matching file: 38*0Sstevel@tonic-gate# 39*0Sstevel@tonic-gate# gcc mapfile: rtld/common/mapfile-order-gcc 40*0Sstevel@tonic-gate# devpro mapfile: rtld/common/mapfile-order-devpro 41*0Sstevel@tonic-gate# 42*0Sstevel@tonic-gate 43*0Sstevel@tonic-gatedata = LOAD ?RWXO; 44*0Sstevel@tonic-gatedata : .data.rel : pics/debugdata.o; 45*0Sstevel@tonic-gatedata | .data.rel; 46